kimchi-project / ginger

WoK plugin for host management
Other
66 stars 41 forks source link

Storage Devices: SCSI drives not being recognized. #501

Open biancafc opened 7 years ago

biancafc commented 7 years ago

I've added 3 type of hard drives (sata, IDE and SCSI), but ginger is not listing SCSI drives in Storage Devices tab.

fdisk -l:

Disco /dev/sda: 10 GiB, 10737418240 bytes, 20971520 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes

Disco /dev/sdb: 10 GiB, 10737418240 bytes, 20971520 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes

Disco /dev/sdc: 20 GiB, 21474836480 bytes, 41943040 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
Tipo de rótulo do disco: dos
Identificador do disco: 0x9dceddfa

Disco /dev/sdd: 10 GiB, 10737418240 bytes, 20971520 setores
Unidades: setor de 1 * 512 = 512 bytes
Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes

sdc and sdd are both scsi and are not listed below:

captura de tela 2016-12-05 as 17 17 14 captura de tela 2016-12-05 as 17 17 20 captura de tela 2016-12-05 as 17 17 25
ramonmedeiros commented 7 years ago

Seems that ginger is listing devices by id. Which is strange is that my OS (CentOS), isn't listing all devices by id:

[root@localhost ~]# lsblk 
NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0              11:0    1   603M  0 rom  
vda             252:0    0    10G  0 disk 
├─vda1          252:1    0   500M  0 part /boot
└─vda2          252:2    0   9.5G  0 part 
  ├─centos-root 253:0    0   8.5G  0 lvm  /
  └─centos-swap 253:1    0     1G  0 lvm  [SWAP]
vdb             252:16   0   5.2G  0 disk 
vdc             252:32   0 531.7M  0 disk 
[root@localhost ~]# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx. 1 root root  9 Dec  5 13:52 ata-QEMU_DVD-ROM_QM00003 -> ../../sr0
lrwxrwxrwx. 1 root root 10 Dec  5 13:52 dm-name-centos-root -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Dec  5 13:52 dm-name-centos-swap -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Dec  5 13:52 dm-uuid-LVM-1FUXPSUJPBGRyDLZ7P4Y0kqvqSpjLoREGBsMmcT868eq5Wnds2lvXHVNTOXoBzeG -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Dec  5 13:52 dm-uuid-LVM-1FUXPSUJPBGRyDLZ7P4Y0kqvqSpjLoREtZVV1SVoToO2075cjas3pnZEgckNwhei -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Dec  5 13:52 lvm-pv-uuid-1do6Dj-rs2H-1sDm-l2FG-fxdQ-vjCR-3jQf7R -> ../../vda2
lrwxrwxrwx. 1 root root  9 Dec  5 13:52 lvm-pv-uuid-pC6Yc2-UALk-w0EM-uzMz-YHYD-HsoH-F3naUh -> ../../vdc

In my case, only vdc was visible at storage devices

lcorreia commented 7 years ago

On Ubuntu 16.10, neither vdX nor sdX are listed. List is empty.