On Sun, 24 Dec 2006, Regis Decamps wrote:

Jorge Almeida wrote:
 I'm about to start using LVM.

LVM-user or LVM2?
LVM2. (Don't know about the former...)

 So, what's the problem? The problem is that vgdisplay, vgscan, vgchange,
 pvdisplay, lvdisplay all say there are no volumes to be found!
 What did I miss?

Have you modified lvm.conf?
Yes, I changed the filter line:
        filter = [ "a|/dev/hdb]|", "r/.*/" ]
And, of course, this is the problem! I copied the line in
http://www.gentoo.org/doc/en/lvm2.xml, but since I have a physical
volume only at /dev/hdb5, I deleted the '[a' and forgot about the
closing ']'! Things are working now.

Can you provide /etc/lvm/.cache?
Here it goes, although I suppose it's not needed any more:
persistent_filter_cache {
        valid_devices=[
                "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part2",
                "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part1",
                "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part3",
                "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part3",
                "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part1",
                "/dev/hdb6",
                "/dev/disk/by-uuid/203d7cab-0dd9-4a52-a376-02ee721de134",
                "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part2",
                "/dev/disk/by-uuid/d6d0a50f-16dc-4425-9047-66758c5b13d9",
                "/dev/hdb5",
                "/dev/disk/by-uuid/3a5288ad-f1a4-4370-a5ed-6058467de4e8",
                "/dev/disk/by-uuid/38415f62-cea0-4c2a-aee2-567932993d2d",
                "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part6",
                "/dev/hdb1",
                "/dev/disk/by-id/ata-SAMSUNG_SP0802N_S00JJ30X191824-part5",
                "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part5",
                "/dev/hdb2",
                "/dev/disk/by-path/pci-0000:00:1f.1-ide-0:1-part6",
                "/dev/hdb3"
        ]
}


 One other thing i don't understand is what to do regarding init scripts.

The gentoo init script already manages lvm.

Could you elaborate on this? What init script? Something in /etc/init.d?
Something to be managed by rc-update?

Thanks. (Great list, where you can get help on XMAS eve!)
--
Jorge
--
gentoo-user@gentoo.org mailing list

Reply via email to