From: Jonathan <arbitraryuser@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] pvcreate is successful but nothing is reported by pvdisplay
Date: Mon, 28 May 2007 01:57:49 +0200 [thread overview]
Message-ID: <7dd6ce6e0705271657y151dd198wc1a7f617d4267ee7@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 9161 bytes --]
Hi all,
I've been running LVM for about a year on non-raided gear and just recently
got two 500gb drives to RAID 1. I've got a 15gig OS partition, 2gigs swap
and the rest is going to the LVM where it will be joined later by additional
raided drive pairs.
My problem is that my pvcreate *appears* to work but my pvdisplay doesn't
seem to agree as it always reports no physical volumes.
I've pasted all the relevant bits and pieces below. I'd love to get some
feedback!
Thanks in advance.
Jonathan.
############################################
First some history
############################################
root@dingo:~# lvm version
LVM version: 2.02.06 (2006-05-12)
Library version: 1.02.08 (2006-07-17)
Driver version: 4.11.0
root@dingo:~# lvmdiskscan
/dev/ram0 [ 64.00 MB]
/dev/md0 [ 14.65 GB]
/dev/ram1 [ 64.00 MB]
/dev/md1 [ 1.95 GB]
/dev/ram2 [ 64.00 MB]
/dev/md2 [ 449.16 GB] LVM physical volume
/dev/ram3 [ 64.00 MB]
/dev/ram4 [ 64.00 MB]
/dev/ram5 [ 64.00 MB]
/dev/ram6 [ 64.00 MB]
/dev/ram7 [ 64.00 MB]
/dev/ram8 [ 64.00 MB]
/dev/ram9 [ 64.00 MB]
/dev/ram10 [ 64.00 MB]
/dev/ram11 [ 64.00 MB]
/dev/ram12 [ 64.00 MB]
/dev/ram13 [ 64.00 MB]
/dev/ram14 [ 64.00 MB]
/dev/ram15 [ 64.00 MB]
0 disks
18 partitions
0 LVM physical volume whole disks
1 LVM physical volume
####################################
And now the verbose pvcreate
####################################
root@dingo:~# pvcreate /dev/md2 -vv
Setting global/locking_type to 1
Setting global/locking_dir to /var/lock/lvm
File-based locking enabled.
Locking /var/lock/lvm/P_orphans WB
/dev/md2: lvm2 label detected
/dev/md2: lvm2 label detected
Wiping cache of LVM-capable devices
/dev/sndstat: stat failed: No such file or directory
/dev/ram0: size is 131072 sectors
/dev/ram0: size is 131072 sectors
/dev/ram0: No label detected
/dev/sda: size is 976773168 sectors
/dev/md0: size is 30716032 sectors
/dev/md0: size is 30716032 sectors
/dev/md0: No label detected
/dev/ram1: size is 131072 sectors
/dev/ram1: size is 131072 sectors
/dev/ram1: No label detected
/dev/sda1: size is 30716217 sectors
/dev/sda1: size is 30716217 sectors
/dev/md1: size is 4096384 sectors
/dev/md1: size is 4096384 sectors
/dev/md1: No label detected
/dev/ram2: size is 131072 sectors
/dev/ram2: size is 131072 sectors
/dev/ram2: No label detected
/dev/sda2: size is 4096575 sectors
/dev/sda2: size is 4096575 sectors
/dev/md2: size is 941955072 sectors
/dev/md2: size is 941955072 sectors
/dev/md2: lvm2 label detected
/dev/ram3: size is 131072 sectors
/dev/ram3: size is 131072 sectors
/dev/ram3: No label detected
/dev/sda3: size is 941955210 sectors
/dev/sda3: size is 941955210 sectors
/dev/ram4: size is 131072 sectors
/dev/ram4: size is 131072 sectors
/dev/ram4: No label detected
/dev/ram5: size is 131072 sectors
/dev/ram5: size is 131072 sectors
/dev/ram5: No label detected
/dev/ram6: size is 131072 sectors
/dev/ram6: size is 131072 sectors
/dev/ram6: No label detected
/dev/ram7: size is 131072 sectors
/dev/ram7: size is 131072 sectors
/dev/ram7: No label detected
/dev/ram8: size is 131072 sectors
/dev/ram8: size is 131072 sectors
/dev/ram8: No label detected
/dev/ram9: size is 131072 sectors
/dev/ram9: size is 131072 sectors
/dev/ram9: No label detected
/dev/ram10: size is 131072 sectors
/dev/ram10: size is 131072 sectors
/dev/ram10: No label detected
/dev/ram11: size is 131072 sectors
/dev/ram11: size is 131072 sectors
/dev/ram11: No label detected
/dev/ram12: size is 131072 sectors
/dev/ram12: size is 131072 sectors
/dev/ram12: No label detected
/dev/ram13: size is 131072 sectors
/dev/ram13: size is 131072 sectors
/dev/ram13: No label detected
/dev/ram14: size is 131072 sectors
/dev/ram14: size is 131072 sectors
/dev/ram14: No label detected
/dev/ram15: size is 131072 sectors
/dev/ram15: size is 131072 sectors
/dev/ram15: No label detected
/dev/sdb: size is 976773168 sectors
/dev/sdb1: size is 30716217 sectors
/dev/sdb1: size is 30716217 sectors
/dev/sdb2: size is 4096575 sectors
/dev/sdb2: size is 4096575 sectors
/dev/sdb3: size is 941955210 sectors
/dev/sdb3: size is 941955210 sectors
/dev/md2: size is 941955072 sectors
metadata/pvmetadatasize not found in config: defaulting to 255
metadata/pvmetadatacopies not found in config: defaulting to 1
/dev/md2: size is 941955072 sectors
Set up physical volume for "/dev/md2" with 941954688 available sectors
Scanning for labels to wipe from /dev/md2
/dev/md2: Wiping label at sector 1
Zeroing start of device /dev/md2
Writing physical volume data to disk "/dev/md2"
/dev/md2: Writing label to sector 1
Physical volume "/dev/md2" successfully created
Unlocking /var/lock/lvm/P_orphans
###################################
And now the verbose pvdisplay
###################################
root@dingo:~# pvdisplay -vvv
Processing: pvdisplay -vvv
O_DIRECT will be used
Setting global/locking_type to 1
Setting global/locking_dir to /var/lock/lvm
File-based locking enabled.
Scanning for physical volume names
/dev/ram0: Not using O_DIRECT
Opened /dev/ram0 RO
/dev/ram0: block size is 1024 bytes
/dev/ram0: No label detected
Closed /dev/ram0
Opened /dev/md0 RO O_DIRECT
/dev/md0: block size is 4096 bytes
/dev/md0: No label detected
Closed /dev/md0
/dev/ram1: Not using O_DIRECT
Opened /dev/ram1 RO
/dev/ram1: block size is 1024 bytes
/dev/ram1: No label detected
Closed /dev/ram1
Opened /dev/md1 RO O_DIRECT
/dev/md1: block size is 4096 bytes
/dev/md1: No label detected
Closed /dev/md1
/dev/ram2: Not using O_DIRECT
Opened /dev/ram2 RO
/dev/ram2: block size is 1024 bytes
/dev/ram2: No label detected
Closed /dev/ram2
Opened /dev/md2 RO O_DIRECT
/dev/md2: block size is 4096 bytes
/dev/md2: lvm2 label detected
lvmcache: /dev/md2: now orphaned
Closed /dev/md2
/dev/ram3: Not using O_DIRECT
Opened /dev/ram3 RO
/dev/ram3: block size is 1024 bytes
/dev/ram3: No label detected
Closed /dev/ram3
/dev/ram4: Not using O_DIRECT
Opened /dev/ram4 RO
/dev/ram4: block size is 1024 bytes
/dev/ram4: No label detected
Closed /dev/ram4
/dev/ram5: Not using O_DIRECT
Opened /dev/ram5 RO
/dev/ram5: block size is 1024 bytes
/dev/ram5: No label detected
Closed /dev/ram5
/dev/ram6: Not using O_DIRECT
Opened /dev/ram6 RO
/dev/ram6: block size is 1024 bytes
/dev/ram6: No label detected
Closed /dev/ram6
/dev/ram7: Not using O_DIRECT
Opened /dev/ram7 RO
/dev/ram7: block size is 1024 bytes
/dev/ram7: No label detected
Closed /dev/ram7
/dev/ram8: Not using O_DIRECT
Opened /dev/ram8 RO
/dev/ram8: block size is 1024 bytes
/dev/ram8: No label detected
Closed /dev/ram8
/dev/ram9: Not using O_DIRECT
Opened /dev/ram9 RO
/dev/ram9: block size is 1024 bytes
/dev/ram9: No label detected
Closed /dev/ram9
/dev/ram10: Not using O_DIRECT
Opened /dev/ram10 RO
/dev/ram10: block size is 1024 bytes
/dev/ram10: No label detected
Closed /dev/ram10
/dev/ram11: Not using O_DIRECT
Opened /dev/ram11 RO
/dev/ram11: block size is 1024 bytes
/dev/ram11: No label detected
Closed /dev/ram11
/dev/ram12: Not using O_DIRECT
Opened /dev/ram12 RO
/dev/ram12: block size is 1024 bytes
/dev/ram12: No label detected
Closed /dev/ram12
/dev/ram13: Not using O_DIRECT
Opened /dev/ram13 RO
/dev/ram13: block size is 1024 bytes
/dev/ram13: No label detected
Closed /dev/ram13
/dev/ram14: Not using O_DIRECT
Opened /dev/ram14 RO
/dev/ram14: block size is 1024 bytes
/dev/ram14: No label detected
Closed /dev/ram14
/dev/ram15: Not using O_DIRECT
Opened /dev/ram15 RO
/dev/ram15: block size is 1024 bytes
/dev/ram15: No label detected
Closed /dev/ram15
#####################################
The not so verbose pvdisplay
#####################################
root@dingo:~# pvdisplay -v
Scanning for physical volume names
root@dingo:~#
[-- Attachment #2: Type: text/html, Size: 16618 bytes --]
next reply other threads:[~2007-05-27 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-27 23:57 Jonathan [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-29 7:51 [linux-lvm] pvcreate is successful but nothing is reported by pvdisplay Jonathan
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=7dd6ce6e0705271657y151dd198wc1a7f617d4267ee7@mail.gmail.com \
--to=arbitraryuser@gmail.com \
--cc=linux-lvm@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).