'/dev/sdh' cannot hit rescan

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Running 4.5.8-0
Recently plugged in two disks that came from a previous backup appliance. When I go to rescan disks to see if it shows up this error occurs. I am fairly new to rockstor and I am not sure what to make of this error. When moving the disks to a different spot on the backplane it still has the error. I just pulled the two disks and I can hit the rescan button when they are not connected. I thought maybe it didnt like that they were recently added and it did not like me hot swapping the disks in and let it reboot with the drives in. It did not make a difference.

Detailed step by step instructions to reproduce the problem

Only steps are to navigate in the gui, click disks then click the rescan button

Web-UI screenshot

[Drag and drop the image here]
![image|690x319](upload://uirPlK8EEcDb3xhbV


qCgqGTHIYi.png)

Error Traceback provided on the Web-UI

        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/disk.py”, line 520, in post
return self._update_disk_state()
File “/opt/rockstor/.venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner
return func(*args, **kwargs)
File “/opt/rockstor/src/rockstor/storageadmin/views/disk.py”, line 375, in _update_disk_state
p_info = dev_pool_info[dev_name]
KeyError: ‘/dev/sdh’

2 Likes

Hi @adams , and welcome to Rockstor!

Disk management is more @phillxnet’s expertise than mine, but let’s see if I can at least help move things along a bit. It would indeed be helpful to see what your system is seeing; would you be able to provide us with the outputs from the following?

lsblk -P -p -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID

and

btrfs fi show
2 Likes

Im trying to add two 2tb drives and make another pool but it is not showing up under disks. I meant to add that if I disconnect the two drives I can hit rescan I get no errors. These are known good drives. Am I correct in thinking there isn’t any prep I need to do before adding the disks?

agc@RockstorNAS:~> lsblk -P -p -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID
NAME=“/dev/sda” MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“191921D47AF5” SIZE=“839.4G” TRAN=“sas” VENDOR=“ATA " HCTL=“0:0:0:0” TYPE=“disk” FS
TYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdb" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“191921D4ADCB” SIZE=“839.4G” TRAN=“sas” VENDOR=“ATA " HCTL=“0:0:1:0” TYPE=“disk” FS
TYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdc" MODEL=“Micron_1100_MTFDDAV256TBN” SERIAL=“17111633E2EB” SIZE=“238.5G” TRAN=“sata” VENDOR=“ATA " HCTL=“1:0:0:0” TYPE=“disk” F
STYPE=”" LABEL=“” UUID=“”
NAME=“/dev/sdc1” MODEL=“” SERIAL=“” SIZE=“2M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“part” FSTYPE=“” LABEL=“” UUID=“”
NAME=“/dev/sdc2” MODEL=“” SERIAL=“” SIZE=“64M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“part” FSTYPE=“vfat” LABEL=“EFI” UUID=“79A7-4640”
NAME=“/dev/sdc3” MODEL=“” SERIAL=“” SIZE=“2G” TRAN=“” VENDOR=“” HCTL=“” TYPE=“part” FSTYPE=“swap” LABEL=“SWAP” UUID=“7eaf7b5f-d2db-48a1-9ac1-fef
1f6ad6373”
NAME=“/dev/sdc4” MODEL=“” SERIAL=“” SIZE=“236.4G” TRAN=“” VENDOR=“” HCTL=“” TYPE=“part” FSTYPE=“btrfs” LABEL=“ROOT” UUID=“ae33ccad-e775-4ca3-b1b
c-07c0e993e1e7”
NAME=“/dev/sdd” MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“1903218779B8” SIZE=“839.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“2:0:0:0” TYPE=“disk” F
STYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sde" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321877992” SIZE=“839.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“3:0:0:0” TYPE=“disk” F
STYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdf" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321795351” SIZE=“839.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“4:0:0:0” TYPE=“disk” F
STYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdg" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321877A9A” SIZE=“839.4G” TRAN=“sata” VENDOR="ATA " HCTL=“5:0:0:0” TYPE=“disk” F
STYPE=“btrfs” LABEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”

2nd command

RockstorNAS:~ # btrfs fi show
Label: ‘ROOT’ uuid: ae33ccad-e775-4ca3-b1bc-07c0e993e1e7
Total devices 1 FS bytes used 2.29GiB
devid 1 size 236.41GiB used 3.38GiB path /dev/sdc4

Label: ‘backups’ uuid: 4c05d345-17e2-41f9-96f5-272e4cc06fd8
Total devices 6 FS bytes used 1.12TiB
devid 1 size 839.40GiB used 839.40GiB path /dev/sdf
devid 2 size 839.40GiB used 839.40GiB path /dev/sde
devid 3 size 839.40GiB used 839.40GiB path /dev/sdd
devid 4 size 839.40GiB used 839.40GiB path /dev/sdg
devid 5 size 839.40GiB used 835.40GiB path /dev/sda
devid 6 size 839.40GiB used 835.40GiB path /dev/sdb

Im sorry I had the two disks not plugged in. Did both commands again while the 2 extra drives were plugged in. The 2nd command btrfs fi show did not look any different.

RockstorNAS:~ # lsblk -P -p -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTY PE,LABEL,UUID
NAME=“/dev/sda” MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“191921D47AF5” SIZE=“83 9.4G” TRAN=“sas” VENDOR=“ATA " HCTL=“0:0:0:0” TYPE=“disk” FSTYPE=“btrfs” LAB EL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdb" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“191921D4ADCB” SIZE=“83 9.4G” TRAN=“sas” VENDOR=“ATA " HCTL=“0:0:1:0” TYPE=“disk” FSTYPE=“btrfs” LAB EL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdc" MODEL=“Micron_1100_MTFDDAV256TBN” SERIAL=“17111633E2EB” SIZE=“23 8.5G” TRAN=“sata” VENDOR=“ATA " HCTL=“1:0:0:0” TYPE=“disk” FSTYPE=”" LABEL=" " UUID=“”
NAME=“/dev/sdc1” MODEL=“” SERIAL=“” SIZE=“2M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“pa rt” FSTYPE=“” LABEL=“” UUID=“”
NAME=“/dev/sdc2” MODEL=“” SERIAL=“” SIZE=“64M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“p art” FSTYPE=“vfat” LABEL=“EFI” UUID=“79A7-4640”
NAME=“/dev/sdc3” MODEL=“” SERIAL=“” SIZE=“2G” TRAN=“” VENDOR=“” HCTL=“” TYPE=“pa rt” FSTYPE=“swap” LABEL=“SWAP” UUID=“7eaf7b5f-d2db-48a1-9ac1-fef1f6ad6373”
NAME=“/dev/sdc4” MODEL=“” SERIAL=“” SIZE=“236.4G” TRAN=“” VENDOR=“” HCTL=“” TYPE =“part” FSTYPE=“btrfs” LABEL=“ROOT” UUID=“ae33ccad-e775-4ca3-b1bc-07c0e993e1e7”
NAME=“/dev/sdd” MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“1903218779B8” SIZE=“83 9.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“2:0:0:0” TYPE=“disk” FSTYPE=“btrfs” LA BEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sde" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321877992” SIZE=“83 9.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“3:0:0:0” TYPE=“disk” FSTYPE=“btrfs” LA BEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdf" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321795351” SIZE=“83 9.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“4:0:0:0” TYPE=“disk” FSTYPE=“btrfs” LA BEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdg" MODEL=“Micron_1300_MTFDDAK1T0TDL” SERIAL=“190321877A9A” SIZE=“83 9.4G” TRAN=“sata” VENDOR=“ATA " HCTL=“5:0:0:0” TYPE=“disk” FSTYPE=“btrfs” LA BEL=“backups” UUID=“4c05d345-17e2-41f9-96f5-272e4cc06fd8”
NAME=”/dev/sdh" MODEL=“ST2000LX001-1RG174” SERIAL=“WDZMST6Z” SIZE=“1.8T” TRAN=“s as” VENDOR=“ATA " HCTL=“0:0:2:0” TYPE=“disk” FSTYPE=“btrfs” LABEL=“NASVMS1” UUID=“36c1e3b7-4320-4a0b-8e35-292beb5ed704”
NAME=”/dev/sdh1" MODEL=“” SERIAL=“” SIZE=“450M” TRAN=“” VENDOR=“” HCTL=“” TYPE=" part" FSTYPE=“ntfs” LABEL=“Recovery” UUID=“BC0862CB086283EC”
NAME=“/dev/sdh2” MODEL=“” SERIAL=“” SIZE=“99M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“p art” FSTYPE=“vfat” LABEL=“” UUID=“C062-EB82”
NAME=“/dev/sdh3” MODEL=“” SERIAL=“” SIZE=“16M” TRAN=“” VENDOR=“” HCTL=“” TYPE=“p art” FSTYPE=“” LABEL=“” UUID=“”
NAME=“/dev/sdh4” MODEL=“” SERIAL=“” SIZE=“139.4G” TRAN=“” VENDOR=“” HCTL=“” TYPE =“part” FSTYPE=“ntfs” LABEL=“” UUID=“309664109663D53E”
NAME=“/dev/sdi” MODEL=“ST2000LX001-1RG174” SERIAL=“ZDZ9R949” SIZE=“1.8T” TRAN=“s as” VENDOR=“ATA " HCTL=“0:0:3:0” TYPE=“disk” FSTYPE=“btrfs” LABEL=“NASVMS1” UUID=“36c1e3b7-4320-4a0b-8e35-292beb5ed704”
NAME=”/dev/sdi1" MODEL=“” SERIAL=“” SIZE=“128M” TRAN=“” VENDOR=“” HCTL=“” TYPE=" part" FSTYPE=“” LABEL=“” UUID=“”
NAME=“/dev/sdi2” MODEL=“” SERIAL=“” SIZE=“999.9G” TRAN=“” VENDOR=“” HCTL=“” TYPE =“part” FSTYPE=“ntfs” LABEL=“Database” UUID=“26147C5F147C3441”

2 Likes

Looks like these 2 disks have, among other things, some ntfs partitions on them (/dev/sdi & /dev/sdi1, and /dev/sdh & /dev/sdh1 to 4)? The VFAT partition listed there I think corresponds to FAT32.

You likely have to clean those up (i.e. wipe the disks) before you can add them. Would make sense to have them as one large partition to deal with on each disk.

2 Likes