Problem:
Getting an error when booting and SMART is starting (SMART is showing failed in the startup output). I think this is leading to some shares not being mounted.
Backstory:
This is a bit of a long story, but I realized that I ran out of space when I accidentally wrote to the wrong mount location when trying to do a backup through rsync. I was able to delete the location, but somehow this was copied to .snapshots as well. This actually caused me to run out of space on startup and the webUI was not starting because of this. I tried to fix this the only way I knew by trying to manually delete the snapshot in the .snapshots folder. I was unable to do this in the beginning because it gave me the error âunable to delete due to filesystem being read-onlyâ. I found a forum post where @phillxnet informed someone to use âbrtfs property set /dir/you/want ro falseâ so I proceeded to do that to the directory I wanted to delete and it allowed me to do so. I proceeded to delete the snapshot (still has some /mnt links in there because it says I canât delete those⊠not sure about that), but everything else is gone and I got my space back.
After all of that I the webUI was able to start again, but I realized that some of the shares I had were not mounting. I looked in the logs and found that it seemed like there was now an issue of the SMART application. It seems to be throwing a flag when trying to load the Seagate external drive I have. Weird thing is is that the shares on that drive seem to be mounting properly. Below is the log output:
[07/May/2023 01:09:01] ERROR [storageadmin.views.disk:480] Error running a command. cmd = /usr/sbin/smartctl --info /dev/disk/by-id/usb-Seagate_Expansion_NA82LGB6-0:0. rc = 2. stdout = [âsmartctl 7.2 2021-09-14 r5237 [x86_64-linux-5.14.21-150400.24.60-default] (SUSE RPM)â, âCopyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.orgâ, ââ, âRead Device Identity failed: scsi error unsupported field in scsi commandâ, ââ, âA mandatory SMART command failed: exiting. To continue, add one or more â-T permissiveâ options.â, ââ]. stderr = [ââ]
Traceback (most recent call last):
File â/opt/rockstor/src/rockstor/storageadmin/views/disk.pyâ, line 477, in _update_disk_state
do.name, do.smart_options
File â/opt/rockstor/src/rockstor/system/smart.pyâ, line 338, in available
[SMART, ââinfoâ] + get_dev_options(device, custom_options)
File â/opt/rockstor/src/rockstor/system/osi.pyâ, line 227, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/sbin/smartctl --info /dev/disk/by-id/usb-Seagate_Expansion_NA82LGB6-0:0. rc = 2. stdout = [âsmartctl 7.2 2021-09-14 r5237 [x86_64-linux-5.14.21-150400.24.60-default] (SUSE RPM)â, âCopyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.orgâ, ââ, âRead Device Identity failed: scsi error unsupported field in scsi commandâ, ââ, âA mandatory SMART command failed: exiting. To continue, add one or more â-T permissiveâ options.â, ââ]. stderr = [ââ]
I have no idea if any of this has anything to do with why the shares not being mounted. I thought I would ask if there was a solution that someone could think of, but I am pretty close to the âreinstall everythingâ step if I canât find a path forward. I would have already started reinstalling everything, but I am not confident that I would be able to do that without losing data on my pools or what the correct process is to set them up again when everything is reinstalledâŠ
Thanks for any help that anyone can give me.
Sweepy