I try to configure some persistent storage using a tutorial. In this tutorial I am instructed to get an ID for a partition like this:
*#scsi_id -g -s /block/sdg/sdg1*
The command above doesn't return anything, but
*#scsi_id -g -s /block/sdg*
does (so I can obtain an ID fo the disk but not for the partition).
Now I have to create a rule in /etc/udev/rules.d/ using the id using the ID:
KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -s %p", RESULT=="14f504e46494c450073564b3158472d7943766d2d4c736459" , NAME="ocrdisk01", OWNER="root", GROUP="oinstall", MODE="0640"
but I don't know what to do. I'm only having the disk ID but the tutorial refers to a partition on that disk.
What should I do?
I use OpenFiler and iSCSI.
I've added options=-g in */etc/scsi_id.config*.
The system is OEL5
It looks a little different from what I've expected.
Forgot to say, but the partition is already made.
I don't need an ext2 filesystem on that partition. Probably it will be OCFS later in the tutorial.
I can't use the method described in tutorial since +/sbin/scsi_id -g -s+ doesn't return anything for +/block/sdg/sdg1+: KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -s %p", RESULT=="14f504e46494c450073564b3158472d7943766d2d4c736459" , NAME="ocrdisk01", OWNER="root", GROUP="oinstall", MODE="0640"
That might be the issue. What is the reason for OpenFiler and iSCSI in Virtualbox? Is VirtualBox part of the tutorial?
Are the virtual disks connected to a SATA or SCSI controller? For what it's worth, under Virtualbox, scsi_id does not provide information if you query a disk connected to a virtual SCSI controller, but it does when using a SATA controller:
# scsi_id -g -s /block/sdb/sdb1
SATA VBOX HARDDISK VB1ad3d086-22cda9aa