Okay, this is related to bug #107326

the installer tried to sync the gpt partition into a msdos(?) partition
table:

[EMAIL PROTECTED]:/mnt# fdisk -l

Disk /dev/sda: 1073 MB, 1073741312 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000bcfc4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         130     1044193+  83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util
fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4498.8 GB, 4498858705408 bytes
255 heads, 63 sectors/track, 546955 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       12257    98449375   83  Linux
[EMAIL PROTECTED]:/mnt# 

[EMAIL PROTECTED]:/mnt# parted /dev/sdb print

Disk /dev/sdb: 4499GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  4499GB  4499GB                     lvm  

Information: Don't forget to update /etc/fstab, if necessary.

[EMAIL PROTECTED]:/mnt#

With this false information for /dev/sdb1 -- no wonder lvcreate or dm
fail.

I've reinstalled gutsy, using the workaround detailed in
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/107326/comments/5
and now i have a correct partition table:

[EMAIL PROTECTED]:~# fdisk -l /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util
fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4498.8 GB, 4498858705408 bytes
255 heads, 63 sectors/track, 546955 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT
[EMAIL PROTECTED]:~# parted /dev/sdb print

Disk /dev/sdb: 4499GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  4499GB  4499GB                     lvm  

Information: Don't forget to update /etc/fstab, if necessary.

[EMAIL PROTECTED]:~#

with this, i can create LVs again:

[EMAIL PROTECTED]:~# lvcreate -n test -L 3500G raid6
  Logical volume "test" created
[EMAIL PROTECTED]:~# lvs
  LV        VG    Attr   LSize  Origin Snap%  Move Log Copy% 
  dom0      raid6 -wi-ao 10.00G                              
  dom0-swap raid6 -wi-ao 32.00G                              
  test      raid6 -wi-a-  3.42T                              
[EMAIL PROTECTED]:~# 

So, the unterlying error is the broken parted shipped with gutsy.

-- 
lvcreate fails to create new lv
https://bugs.launchpad.net/bugs/183359
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to