* [linux-lvm] lvm2 tools can't locate pvs on entire disks
@ 2005-05-10 1:16 Miles Crawford
2005-05-10 6:08 ` Klaus Strebel
0 siblings, 1 reply; 4+ messages in thread
From: Miles Crawford @ 2005-05-10 1:16 UTC (permalink / raw)
To: linux-lvm
I'm running into trouble here, getting the lvm scanning tools to
notice PVs I have created on entire disks, like this:
pvcreate /dev/hdd
Some output:
root@end root # lvm version
LVM version: 2.01.04 (2005-02-09)
Library version: 1.01.00-ioctl (2005-01-17)
Driver version: 4.1.0
root@end root # uname -a
Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686
GNU/Linux
root@end root # lvmdiskscan
/dev/hda1 [ 111.79 GB]
/dev/hdb1 [ 18.63 GB]
/dev/hdd1 [ 186.31 GB]
/dev/hdb2 [ 127.59 GB]
/dev/hdb3 [ 2.83 GB]
0 disks
5 partitions
0 LVM physical volume whole disks
0 LVM physical volumes
root@end root # pvscan
No matching physical volumes found
Well that's odd, I know they're there. Lets try this:
root@end root # losetup /dev/loop0 /dev/hda
root@end root # losetup /dev/loop1 /dev/hdd
root@end root # pvscan
PV /dev/loop0 VG media_vg lvm2 [111.79 GB / 0 free]
PV /dev/loop1 VG media_vg lvm2 [186.31 GB / 0 free]
Total: 2 [298.10 GB] / in use: 2 [298.10 GB] / in no VG: 0 [0 ]
There, now that they're not raw disks anymore I can find them with all
the scanning utiliies and vgchange -a y them back to life.
Is this expected behavior?
-Miles
______________
Miles Crawford
Software Developer, The Catalyst Group
Educational Partnerships & Learning Technologies
University of Washington
206.616.8156
http://catalyst.washington.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] lvm2 tools can't locate pvs on entire disks
2005-05-10 1:16 [linux-lvm] lvm2 tools can't locate pvs on entire disks Miles Crawford
@ 2005-05-10 6:08 ` Klaus Strebel
2005-05-10 15:13 ` Miles Crawford
0 siblings, 1 reply; 4+ messages in thread
From: Klaus Strebel @ 2005-05-10 6:08 UTC (permalink / raw)
To: LVM general discussion and development
Miles Crawford schrieb:
>
> I'm running into trouble here, getting the lvm scanning tools to notice
> PVs I have created on entire disks, like this:
>
> pvcreate /dev/hdd
>
> Some output:
>
> root@end root # lvm version
> LVM version: 2.01.04 (2005-02-09)
> Library version: 1.01.00-ioctl (2005-01-17)
> Driver version: 4.1.0
> root@end root # uname -a
> Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686 GNU/Linux
> root@end root # lvmdiskscan
> /dev/hda1 [ 111.79 GB]
> /dev/hdb1 [ 18.63 GB]
> /dev/hdd1 [ 186.31 GB]
> /dev/hdb2 [ 127.59 GB]
> /dev/hdb3 [ 2.83 GB]
> 0 disks
> 5 partitions
> 0 LVM physical volume whole disks
> 0 LVM physical volumes
> root@end root # pvscan
> No matching physical volumes found
>
> Well that's odd, I know they're there. Lets try this:
>
> root@end root # losetup /dev/loop0 /dev/hda
> root@end root # losetup /dev/loop1 /dev/hdd
> root@end root # pvscan
> PV /dev/loop0 VG media_vg lvm2 [111.79 GB / 0 free]
> PV /dev/loop1 VG media_vg lvm2 [186.31 GB / 0 free]
> Total: 2 [298.10 GB] / in use: 2 [298.10 GB] / in no VG: 0 [0 ]
Hi Miles,
the disks hda and hdb obviously are partitioned (they are shown as
/dev/hda1 and /dev/hdb1), so don't trying to detroy these partitions, he
doesn't know what the contents of, is good behaviour of lvm, isn't it ;-).
Ciao
Klaus
--
Mit freundlichen Gr�ssen / best regards
Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] lvm2 tools can't locate pvs on entire disks
2005-05-10 6:08 ` Klaus Strebel
@ 2005-05-10 15:13 ` Miles Crawford
2005-05-11 9:02 ` Klaus Strebel
0 siblings, 1 reply; 4+ messages in thread
From: Miles Crawford @ 2005-05-10 15:13 UTC (permalink / raw)
To: LVM general discussion and development
On Tue, 10 May 2005, Klaus Strebel wrote:
> Miles Crawford schrieb:
>>
>> I'm running into trouble here, getting the lvm scanning tools to notice PVs
>> I have created on entire disks, like this:
>>
>> pvcreate /dev/hdd
>>
>> Some output:
>>
>> root@end root # lvm version
>> LVM version: 2.01.04 (2005-02-09)
>> Library version: 1.01.00-ioctl (2005-01-17)
>> Driver version: 4.1.0
>> root@end root # uname -a
>> Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686 GNU/Linux
>> root@end root # lvmdiskscan
>> /dev/hda1 [ 111.79 GB]
>> /dev/hdb1 [ 18.63 GB]
>> /dev/hdd1 [ 186.31 GB]
>> /dev/hdb2 [ 127.59 GB]
>> /dev/hdb3 [ 2.83 GB]
>> 0 disks
>> 5 partitions
>> 0 LVM physical volume whole disks
>> 0 LVM physical volumes
>> root@end root # pvscan
>> No matching physical volumes found
>>
>> Well that's odd, I know they're there. Lets try this:
>>
>> root@end root # losetup /dev/loop0 /dev/hda
>> root@end root # losetup /dev/loop1 /dev/hdd
>> root@end root # pvscan
>> PV /dev/loop0 VG media_vg lvm2 [111.79 GB / 0 free]
>> PV /dev/loop1 VG media_vg lvm2 [186.31 GB / 0 free]
>> Total: 2 [298.10 GB] / in use: 2 [298.10 GB] / in no VG: 0 [0 ]
> Hi Miles,
>
> the disks hda and hdb obviously are partitioned (they are shown as /dev/hda1
> and /dev/hdb1), so don't trying to detroy these partitions, he doesn't know
> what the contents of, is good behaviour of lvm, isn't it ;-).
>
> Ciao
> Klaus
So, you're saying that although the lvm PVs are _not_ on partitions,
the disklabel still describes some partition on the disk, so lvm is
ignoring the disk as a whole as a possible PV?
-miles
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] lvm2 tools can't locate pvs on entire disks
2005-05-10 15:13 ` Miles Crawford
@ 2005-05-11 9:02 ` Klaus Strebel
0 siblings, 0 replies; 4+ messages in thread
From: Klaus Strebel @ 2005-05-11 9:02 UTC (permalink / raw)
To: LVM general discussion and development
Miles Crawford schrieb:
>
> On Tue, 10 May 2005, Klaus Strebel wrote:
>
>> Miles Crawford schrieb:
>>
>>>
>>> I'm running into trouble here, getting the lvm scanning tools to
>>> notice PVs I have created on entire disks, like this:
>>>
>>> pvcreate /dev/hdd
>>>
>>> Some output:
>>>
>>> root@end root # lvm version
>>> LVM version: 2.01.04 (2005-02-09)
>>> Library version: 1.01.00-ioctl (2005-01-17)
>>> Driver version: 4.1.0
>>> root@end root # uname -a
>>> Linux end.snip.net 2.6.8 #6 Sat Oct 9 20:59:02 PDT 2004 i686 GNU/Linux
>>> root@end root # lvmdiskscan
>>> /dev/hda1 [ 111.79 GB]
>>> /dev/hdb1 [ 18.63 GB]
>>> /dev/hdd1 [ 186.31 GB]
>>> /dev/hdb2 [ 127.59 GB]
>>> /dev/hdb3 [ 2.83 GB]
>>> 0 disks
>>> 5 partitions
>>> 0 LVM physical volume whole disks
>>> 0 LVM physical volumes
>>> root@end root # pvscan
>>> No matching physical volumes found
>>>
>>> Well that's odd, I know they're there. Lets try this:
>>>
>>> root@end root # losetup /dev/loop0 /dev/hda
>>> root@end root # losetup /dev/loop1 /dev/hdd
>>> root@end root # pvscan
>>> PV /dev/loop0 VG media_vg lvm2 [111.79 GB / 0 free]
>>> PV /dev/loop1 VG media_vg lvm2 [186.31 GB / 0 free]
>>> Total: 2 [298.10 GB] / in use: 2 [298.10 GB] / in no VG: 0 [0 ]
>>
>> Hi Miles,
>>
>> the disks hda and hdb obviously are partitioned (they are shown as
>> /dev/hda1 and /dev/hdb1), so don't trying to detroy these partitions,
>> he doesn't know what the contents of, is good behaviour of lvm, isn't
>> it ;-).
>>
>> Ciao
>> Klaus
>
>
> So, you're saying that although the lvm PVs are _not_ on partitions, the
> disklabel still describes some partition on the disk, so lvm is ignoring
> the disk as a whole as a possible PV?
That's what it looks like, i'd guess lvm will use your whole-disk PVs if
you get the partition table cleared. Without this, he'd destroy
partitions of unknown types.
Ciao
Klaus
--
Mit freundlichen Gr�ssen / best regards
Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-11 9:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-10 1:16 [linux-lvm] lvm2 tools can't locate pvs on entire disks Miles Crawford
2005-05-10 6:08 ` Klaus Strebel
2005-05-10 15:13 ` Miles Crawford
2005-05-11 9:02 ` Klaus Strebel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.