NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vgcreate confused by PVs on whole disk





On 3/2/12 4:37 PM, Steve wrote:
Are you using redundant links to SAN or SAN like storage?
That is what this looks like.

Do a pv display on the disks in questions, you might find that the
drives are already in use.



Nope. They are straight-up Xen-backend (xbd) drives. In the DOM0 they are just sparse files. pvdisplay was returning nothing before I created the new PVs.

Louis



Steve

On 2012-03-02 14:16, Louis Guillaume wrote:
Hi,

I'm trying to create a volume group with 2 disk members that are
available to my system. There's no need for bootability, so I'm using
the whole raw disk partition. When it gets to "vgcreate" I get an
error like this:

Found duplicate PV 5ei5O3Q1MfECIBfK52fKHotRoHhntt2v: using
/dev/rxbd1d not /dev/rxbd1a
/dev/rxbd2e: open failed: Device not configured


The VG is still created, but the message makes me nervous. Is this
message as serious as it sounds?

Details about the setup are below. Any help would be great. Thanks!


Louis



--

This is on netbsd-5.99.59, amd64, XEN3_DOMU. The disks were prepared
like this...

== Wiped like this... ==

# dd if=/dev/zero of=/dev/rxbd2d bs=1k count=1000
1000+0 records in
1000+0 records out
1024000 bytes transferred in 5.995 secs (170809 bytes/sec)

== gpt'd like this ==

# gpt create xbd1
# gpt create xbd2
# gpt show xbd1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 4194237
4194271 32 Sec GPT table
4194303 1 Sec GPT header
# gpt show xbd2
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 12582845
12582879 32 Sec GPT table
12582911 1 Sec GPT header



== Disklabeled like this ==

# size offset fstype [fsize bsize cpg/sgs]
d: 4194304 0 unused 0 0 # (Cyl. 0
- 2047)

# size offset fstype [fsize bsize cpg/sgs]
d: 12582912 0 unused 0 0 # (Cyl. 0
- 6143)


== PVs created ==

# lvm pvcreate /dev/rxbd1d
Physical volume "/dev/rxbd1d" successfully created
# lvm pvcreate /dev/rxbd2d
Physical volume "/dev/rxbd2d" successfully created


== VG creation with errors ==

# lvm vgcreate slowvg /dev/rxbd1d /dev/rxbd2d
Found duplicate PV 5ei5O3Q1MfECIBfK52fKHotRoHhntt2v: using
/dev/rxbd1d not /dev/rxbd1a
/dev/rxbd2e: open failed: Device not configured
Found duplicate PV zXxt1AWCwPdoHeTd2PO9R6ELmZJbcLWv: using
/dev/rxbd2a not /dev/rxbd2d
Volume group "slowvg" successfully created




Home | Main Index | Thread Index | Old Index