** Description changed:
- While trying to set up lvm2 under Dapper (two SATA drives; partitions
- sda13 and sdb1, for a total of about 540GB), I was unable to get a
- volume group set up.
+ Kernel version: 2.6.15-25-k7
+ lvm2: 2.02.02-1ubuntu1
+
+
+ While trying to set up lvm2 under Dapper (two SATA drives; partitions sda13
and sdb1, for a total of about 540GB), I was unable to get a volume group set
up.
Pvcreate worked fine:
[EMAIL PROTECTED]:/etc/default# pvcreate -vv /dev/sda13
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
Logging initialised at Thu Aug 24 17:43:25 2006
Set umask to 0077
pvcreate Setting global/locking_type to 1
pvcreate Setting global/locking_dir to /var/lock/lvm
pvcreate File-based locking enabled.
pvcreate Locking /var/lock/lvm/P_orphans WB
pvcreate /dev/sda13: No label detected
pvcreate /dev/sda13: size is 515847087 sectors
pvcreate metadata/pvmetadatasize not found in config: defaulting to 255
pvcreate metadata/pvmetadatacopies not found in config: defaulting to 1
pvcreate /dev/sda13: size is 515847087 sectors
pvcreate Set up physical volume for "/dev/sda13" with 515846703 available
sectors
pvcreate Scanning for labels to wipe from /dev/sda13
pvcreate Zeroing start of device /dev/sda13
pvcreate Writing physical volume data to disk "/dev/sda13"
pvcreate /dev/sda13: Writing label to sector 1
pvcreate Physical volume "/dev/sda13" successfully created
pvcreate Unlocking /var/lock/lvm/P_orphans
pvcreate Wiping internal VG cache
[EMAIL PROTECTED]:/etc/default# pvcreate -vv /dev/sdb1
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
Logging initialised at Thu Aug 24 17:44:28 2006
Set umask to 0077
pvcreate Setting global/locking_type to 1
pvcreate Setting global/locking_dir to /var/lock/lvm
pvcreate File-based locking enabled.
pvcreate Locking /var/lock/lvm/P_orphans WB
pvcreate /dev/sdb1: No label detected
pvcreate /dev/sdb1: size is 625137282 sectors
pvcreate metadata/pvmetadatasize not found in config: defaulting to 255
pvcreate metadata/pvmetadatacopies not found in config: defaulting to 1
pvcreate /dev/sdb1: size is 625137282 sectors
pvcreate Set up physical volume for "/dev/sdb1" with 625136898 available
sectors
pvcreate Scanning for labels to wipe from /dev/sdb1
pvcreate Zeroing start of device /dev/sdb1
pvcreate Writing physical volume data to disk "/dev/sdb1"
pvcreate /dev/sdb1: Writing label to sector 1
pvcreate Physical volume "/dev/sdb1" successfully created
pvcreate Unlocking /var/lock/lvm/P_orphans
pvcreate Wiping internal VG cache
Howewver, vgcreate fails:
[EMAIL PROTECTED]:/etc/default# vgcreate -v myth_disks /dev/sda13 /dev/sdb1
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
Logging initialised at Thu Aug 24 17:46:03 2006
Set umask to 0077
vgcreate Wiping cache of LVM-capable devices
vgcreate Adding physical volume '/dev/sda13' to volume group 'myth_disks'
vgcreate No physical volume label read from /dev/sda13
vgcreate /dev/sda13 not identified as an existing physical volume
vgcreate Unable to add physical volume '/dev/sda13' to volume group
'myth_disks'.
vgcreate Wiping internal VG cache
This happens with either of the two partitions.
Now:
[EMAIL PROTECTED]:/home/rcs# pvscan
File descriptor 4 left open
Logging initialised at Thu Aug 24 20:55:25 2006
Set umask to 0077
pvscan Wiping cache of LVM-capable devices
pvscan Wiping internal VG cache
pvscan Walking through all physical volumes
pvscan PV /dev/evms/sda13 lvm2 [245.97 GB]
pvscan PV /dev/evms/sdb1 lvm2 [298.09 GB]
pvscan Total: 2 [544.06 GB] / in use: 0 [0 ] / in no VG: 2 [544.06 GB]
pvscan Wiping internal VG cache
Looks good, but:
[EMAIL PROTECTED]:/home/rcs# pvdisplay
File descriptor 4 left open
Logging initialised at Thu Aug 24 20:56:56 2006
Set umask to 0077
pvdisplay Scanning for physical volume names
pvdisplay Wiping cache of LVM-capable devices
pvdisplay --- NEW Physical volume ---
pvdisplay PV Name /dev/evms/sda13
pvdisplay VG Name
pvdisplay PV Size 245.97 GB
pvdisplay Allocatable NO
pvdisplay PE Size (KByte) 0
pvdisplay Total PE 0
pvdisplay Free PE 0
pvdisplay Allocated PE 0
pvdisplay PV UUID ovTzb3-iP63-Dg81-UJ7W-F9zC-xXSV-AExBzC
pvdisplay
pvdisplay --- NEW Physical volume ---
pvdisplay PV Name /dev/evms/sdb1
pvdisplay VG Name
pvdisplay PV Size 298.09 GB
pvdisplay Allocatable NO
pvdisplay PE Size (KByte) 0
pvdisplay Total PE 0
pvdisplay Free PE 0
pvdisplay Allocated PE 0
pvdisplay PV UUID xrYOXP-SyKs-MFaE-nRKr-QsWx-bB0U-T9rHpq
pvdisplay
pvdisplay Wiping internal VG cache
Neither partition is allocatable.
Since the volume group was never created, there's nothing here:
[EMAIL PROTECTED]:/home/rcs# vgscan
File descriptor 4 left open
Logging initialised at Thu Aug 24 20:58:58 2006
Set umask to 0077
vgscan Wiping cache of LVM-capable devices
vgscan Wiping internal VG cache vgscan Reading all physical volumes. This may
take a while...
vgscan Finding all volume groups
vgscan Wiping internal VG cache
NOW...the kicker here is that I also have Mandriva 2006.0 installed on the
same machine. It was able to create the physical volumes and the volume group
without any problems, and thereafter the logical volume, which formatted (under
jfs) and mounted.
So it appears there is a bug in pvcreate (or maybe vgcreate)???
Thanks -
Bob
--
Can create physical volumes, but not volume groups
https://launchpad.net/bugs/57960
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs