Known Issues with FreeBSD Slices on Disks?
Hello!
Are there any known Problems when you want to use a Partition from a Disk also containg a FreeBSD Slice as a PV?
The disk has four Partitions at the Moment:
$ fdisk -l /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 7297 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 765 6144831 b Win95 FAT32 /dev/hda2 766 2040 10241437+ a5 FreeBSD /dev/hda3 2041 3315 10241437+ c Win95 FAT32 (LBA) /dev/hda4 3316 7297 31985415 8e Linux LVM
/dev/hda2 is a FreeBSD Partition/Slice and is detected by the Kernel (which has Support for BSD-Disklabels) as:
hda: hda1 hda2 hda3 hda4
hda2: <bsd: hda5 hda6 hda7 hda8 hda9 hda10 >
System is Debian Unstable with:
ii lvm10 1.1rc1-1 The Logical Volume Manager for Linux
and Kernel 2.4.19-pre5.
When I add this Partiton to a existing VG and then try to lvcreate another LV from the added Space, I get a
lvcreate -- ERROR "Operation not permitted" opening logical volume "/dev/pile/test"
(Attached is a Logfile which shows this in Context, and more Info)
Since this worked without Problems on the other Disks in this System, and the only difference I can see is the FreeBSD Slice on hda -- might this be a Problem?
I already tried repartitioning in case there was something wrong -- hda3 and hda4 were a single partition before.
I'm relativly new to LVM, so I don't really know if I'm doing something wrong here.
TIA, Eike
Signature · 2 lines
Eike Bernhardt http://unorganized.net/ ICQ: 11256658 "Every man dies, not every man really lives." -- William Wallace, Braveheart
Hello!
Quoted 4 lines · On Fri Apr 5 19:29:33 2002 CEST Eike Bernhardt wrote:
lvcreate -- ERROR "Operation not permitted" opening logical volume "
/dev/pile/test"(Attached is a Logfile which shows this in Context, and more Info)
*arg* OK, so this time with the Log attached ...
Bye, Eike
Signature · 3 lines
Eike Bernhardt http://unorganized.net/ ICQ: 11256658
"PEOPLE'S WHOLE LIVES DO PASS IN FRONT OF THEIR EYES BEFORE THEY DIE.
THE PROCESS IS CALLED 'LIVING'." Death -- (Terry Pratchett, The Last Continentroot@teefax:~ # fdisk -l /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 7297 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 765 6144831 b Win95 FAT32 /dev/hda2 766 2040 10241437+ a5 FreeBSD /dev/hda3 2041 3315 10241437+ c Win95 FAT32 (LBA) /dev/hda4 3316 7297 31985415 8e Linux LVM
root@teefax:~ # pvcreate -v /dev/hda4
pvcreate -- locking logical volume manager
pvcreate -- checking physical volume name "/dev/hda4"
pvcreate -- getting physical volume size
pvcreate -- checking maximum physical volume size
pvcreate -- checking partition type
pvcreate -- checking volume group name
pvcreate -- creating new physical volume
pvcreate -- setting up physical volume for /dev/hda4 with 63970830 sectors pvcreate -- writing physical volume data to disk "/dev/hda4" pvcreate -- physical volume "/dev/hda4" successfully created pvcreate -- unlocking logical volume manager
root@teefax:~ # vgdisplay pile
--- Volume group ---
VG Name pile VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 1 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 2 Act PV 2 VG Size 85.52 GB PE Size 4 MB Total PE 21892 Alloc PE / Size 21892 / 85.52 GB Free PE / Size 0 / 0 VG UUID 7F14se-04WD-dxtR-gHMd-PpLz-oGqw-Ceh56p
root@teefax:~ # vgextend pile /dev/hda4
vgextend -- INFO: maximum logical volume size is 255.99 Gigabyte vgextend -- creating archive of volume group "pile" in "/etc/lvmconf" vgextend -- volume group "pile" successfully extended
root@teefax:~ # vgdisplay pile
Max PV 256 Cur PV 3 Act PV 3 VG Size 116.01 GB PE Size 4 MB Total PE 29699 Alloc PE / Size 21892 / 85.52 GB Free PE / Size 7807 / 30.50 GB VG UUID 7F14se-04WD-dxtR-gHMd-PpLz-oGqw-Ceh56p
root@teefax:~ # lvcreate -v -n test -L 100 pile
--- Volume group ---
VG Name pile VG Access read/write VG Status available/resizable VG # 1 MAX LV 256 Cur LV 1 Open LV 1 MAX LV Size 255.99 GBlvcreate -- checking volume group name "pile"
lvcreate -- reading volume group data of volume group "pile" from disk(s) lvcreate -- checking volume group activity
lvcreate -- checking logical volume path "/dev/pile/test"
lvcreate -- checking stripe count
lvcreate -- checking stripe size
lvcreate -- locking logical volume manager
lvcreate -- getting volume group status from VGDA in kernel
lvcreate -- checking stripe size against volume group physical extent size lvcreate -- checking logical volume maximum size
lvcreate -- checking volume group free space
lvcreate -- checking stripe count against physical volume count lvcreate -- checking for maximum logical volume count
lvcreate -- setting up logical volume
lvcreate -- setting read ahead sectors
lvcreate -- creating logical volume VGDA in kernel
lvcreate -- storing logical volume VGDA on disk(s)
lvcreate -- creating device special file
lvcreate -- opening logical volume "/dev/pile/test" for init
lvcreate -- ERROR "Operation not permitted" opening logical volume "/dev/pile/test" root@teefax:~ #
Quoted 5 lines · Eike Bernhardt
Hello!
Are there any known Problems when you want to use a Partition from a Disk also containg a FreeBSD Slice as a PV?
I doubt it's to do with FreeBSD slices - I have tried LVM on disks with all sorts of partition schemes. That error does sound familar though.
patrick
Hello!
Quoted 6 lines · On Mon Apr 8 16:26:41 2002 CEST Patrick Caulfield wrote:
Quoted 2 lines · Eike Bernhardt
Are there any known Problems when you want to use a Partition from a Disk also containg a FreeBSD Slice as a PV?
I doubt it's to do with FreeBSD slices - I have tried LVM on disks with all sorts of partition schemes. That error does sound familar though.
Hm, I have no Idea why, but if I create a second VG which only consists of /dev/hda4, there are no problems creating and using a LV in this VG.
http://134.106.120.23/lvm/lvm-create-second-vg.log.gz contains a log of doing this.
Since this worked, I vgremove'd the newly created VG, and tried extending my already existing VG with the now unused PV. But .. same problem as before:
lvcreate -- ERROR "Operation not permitted" opening logical volume "/dev/pile/test"
A log of this operation is avaliable at
http://134.106.120.23/lvm/lvm-remove-and-readd.log.gz
If you need different/more Information, please tell me.
Thanks, Eike!
Signature · 3 lines
Eike Bernhardt http://unorganized.net/ ICQ: 11256658
"I'm a mean green Mother from Outer Space"
Audrey II -- Little Shop of HorrorsQuoted 3 lines · Eike Bernhardt
Hello!
On Mon Apr 8 16:26:41 2002 CEST Patrick Caulfield wrote:
It sounds a lot like
http://lists.sistina.com/pipermail/lvm-devel/2002-March/000873.html
Can you try removing the lines
/* Check parallel LV spindown (LV remove) */
if (lv_ptr->lv_status & LV_SPINDOWN)
return -EPERM;in lvm_blk_open() and see if that fixes the problem please ?
patrick
Hi!
Quoted 6 lines · On Wed Apr 10 09:39:25 2002 CEST Patrick Caulfield wrote:
Quoted 1 line · Eike Bernhardt
On Mon Apr 8 16:26:41 2002 CEST Patrick Caulfield wrote:
It sounds a lot like
http://lists.sistina.com/pipermail/lvm-devel/2002-March/000873.html
Hm, must have missed that one while searching for similar problems.
Quoted 9 lines
Can you try removing the lines
/* Check parallel LV spindown (LV remove) */ if (lv_ptr->lv_status & LV_SPINDOWN) return -EPERM;in
lvm_blk_open()and see if that fixes the problem please ?
The "operation not permitted" is happening with a unpatched 2.4.19-pre5 Kernel, and also when the Kernel is patched to lvm-1.1-rc1.
When removing the lines quoted above, it is possible to create another VG without the "operation not permitted" Problem.
I don't know how to debug this further, so if anyone needs more specific Information, please tell me.
Signature · 3 lines
Eike Bernhardt http://unorganized.net/ ICQ: 11256658
"Duct tape is like the force. It has a light side, and a dark side,
and it holds the universe together." -- Carl Zwanzig