* [linux-lvm] lvm and scsidev
@ 2004-01-15 3:29 Tommaso Cecchi
2004-01-15 7:25 ` Luca Berra
0 siblings, 1 reply; 2+ messages in thread
From: Tommaso Cecchi @ 2004-01-15 3:29 UTC (permalink / raw)
To: linux-lvm
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
--
================================================================
| Tommaso Cecchi CINECA
| System Management Group Via Magnanelli 6/3 40033
| e-mail: t.cecchi@cineca.it Casalecchio di Reno
| Tel: 051/6171411 Bologna - ITALY
| Fax 051/6132198 http://www.cineca.it
================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] lvm and scsidev
2004-01-15 3:29 [linux-lvm] lvm and scsidev Tommaso Cecchi
@ 2004-01-15 7:25 ` Luca Berra
0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2004-01-15 7:25 UTC (permalink / raw)
To: linux-lvm
On Thu, Jan 15, 2004 at 09:28:00AM +0100, Tommaso Cecchi wrote:
>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.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-15 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-15 3:29 [linux-lvm] lvm and scsidev Tommaso Cecchi
2004-01-15 7:25 ` Luca Berra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.