Skip to contentSkip to conversation

lvm and scsidev

linux-lvm Tommaso Cecchi 2 participants 2 messages Jan 15, 2004

lore
Share & tools
lore
#0 lore raw

I'm trying to use lvm-1.0.5-51 on a linux box (SuSE SLES 8) with the scsidev utility (scsi-1.7_2.31_1.05_0.10-63).

I have a LUN that is seen either as /dev/sdc and as /dev/scsi/sdc2b0t0u3 thanks to the scsidev utility (I created it running scsidev -fde) and I would use this second name to be sure it does not change as I assign or unassign other LUNs

The problem I'm facing is that pvcreate doesn't seem to
get the partition information from the device when I use the "scsidev" name. Infact, once I created a partition on the device, here is what I get :

tom:~ # pvcreate -v /dev/scsi/sdc2b0t0u3p1
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/scsi/sdc2b0t0u3p1" pvcreate -- getting physical volume size
pvcreate -- can't open physical volume "/dev/scsi/sdc2b0t0u3p1" to get its size

On the other hand if I use the corresponding device I get the usual message:

node255:~ # pvcreate -v /dev/sdc1

Moreover this problem shows an unpredictable behaviour cause if I rerun the command after a while:

node255:~ # pvcreate -v /dev/scsi/sdc2b0t0u3p1

it seems to complete correctly.

Nevertheless, even if I succeed in creating a PV over "scsidev devices", this kind of devices are not very well recognized by lvm, infact running pvscan or lvmdiskscan they don't appear in the list.
But they are recognized as PV if I run a pvdisplay:

node255:~ # pvdisplay /dev/scsi/sdc2b0t0u3p1
pvdisplay -- "/dev/scsi/sdc2b0t0u3p1" is a new physical volume of 136.49 GB

Finally these PV seems not to be suitable to build a VG, infact:

node255:~ # vgcreate homevg /dev/scsi/sdc2b0t0u3p1 /dev/scsi/sdc2b0t1u2p1 vgcreate -- no valid physical volumes in command line

What I guess is that devices created by scsidev are not visible under /proc/partitions but I'm not sure about that.
Does anybody else can suggest me something?
Thanks

Tommaso

Signature · 5 lines
================================================================
|     Tommaso Cecchi                          CINECA
| System Management Group              Via Magnanelli 6/3 40033 | e-mail: [email protected]             Casalecchio di Reno | Tel: 051/6171411                         Bologna - ITALY
| Fax 051/6132198                       http://www.cineca.it
================================================================
#1 lore raw
Quoted 2 lines · Tommaso Cecchi

What I guess is that devices created by scsidev are not visible under /proc/partitions but I'm not sure about that.

this is the right guess, lvm1 only works with device names defined in proc partitions, you will find this issue discussed multiple times in this list, mostly concerning devfs issues.

Regards,
L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \