Missing volume group device
Hi,
I like to change the size of one of my logical volumes but the volume group device is missing:
[root]# vgscan
Reading all physical volumes. This may take a while... Found volume group "vg01" using metadata type lvm2
[root]# lvscan
ACTIVE '/dev/vg01/slow' [242.77 GB] inherit ACTIVE '/dev/vg01/usr' [3.91 GB] inherit ACTIVE '/dev/vg01/home' [5.86 GB] inherit ACTIVE '/dev/vg01/tmp' [1000.00 MB] inherit
But:
[root]# ls -l /dev/vg*
ls: /dev/vg*: No such file or directory
I am running Mandrake 10.1:
[root]# uname -a
Linux xxx.xxx.xxx 2.6.8.1-10mdk #1 Wed Sep 8 17:00:52 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz unknown GNU/Linux
Any hints what to do?
Matt
Quoted 2 lines · langelino
[root]# ls -l
/dev/vg*
ls:/dev/vg*: No such file or directory
Just a guess, but what about vgmknodes?
~David
Quoted 4 lines · David Mohr
Quoted 2 lines · langelino
[root]# ls -l
/dev/vg*
ls:/dev/vg*: No such file or directoryJust a guess, but what about vgmknodes?
And LVM2 tools ignore any '/dev/' prefix anyway in this context - 'lvresize vg01/lvol1' is sufficient.
Alasdair
Signature · 1 line
[email protected]
Quoted 6 lines · Alasdair G Kergon
Quoted 3 lines · David Mohr
On Fri, 2004-10-15 at 19:00, langelino wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
[root]# ls -l
/dev/vg*
ls:/dev/vg*: No such file or directoryJust a guess, but what about vgmknodes?
Great. This was it. Thanks! This command appears to be a bit hidden. It's neither mentioned in the lvm-howto nor in the lvm2 man-page.
Quoted 5 lines
And LVM2 tools ignore any '
/dev/' prefix anyway in this context - 'lvresize vg01/lvol1' is sufficient.
Well, yes but if one wants to shrink the filesystem on a logical volume the tools to do so, like "resize_reiserfs", expect afaik a proper device.
Matt