All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tommaso Cecchi <t.cecchi@cineca.it>
To: linux-lvm@sistina.com
Subject: [linux-lvm] lvm and scsidev
Date: Thu Jan 15 03:29:02 2004	[thread overview]
Message-ID: <40064F10.8080509@cineca.it> (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


-- 
================================================================
|     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
================================================================

             reply	other threads:[~2004-01-15  3:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-15  3:29 Tommaso Cecchi [this message]
2004-01-15  7:25 ` [linux-lvm] lvm and scsidev Luca Berra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40064F10.8080509@cineca.it \
    --to=t.cecchi@cineca.it \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.