Quantcast
Channel: Rockstor Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 1938

Shares showing up unmounted, but I think it is failing before mounting during SMART startup

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1938

Trending Articles