[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] LVM cannot initilize

Hi Bryn,

>From example:
On each cluster node, edit /etc/lvm/lvm.conf and change the volume_list
field to
match the boot volume (myvg) and name of the node cluster interconnect
This restricts the list of volumes available during system boot to only
the root volume
and prevents cluster nodes from updating and potentially corrupting the
metadata on
the HA-LVM volume:
volume_list = [ "myvg", "@ha-web1" ]

so I added volume_list = [ " vg_pdcpicpl01 " , "@PDC-PIC-PL-01" ]

PDC-PIC-PL-01 : is my hostname

# dracut --hostonly --force /boot/initramfs-$(uname -r).img $(uname -r)
# shutdown -r now "Activating ramdisk LVM changes"


I have /dev/HA-Web-VG/ha-web-lv also, but after reboot I cannot initialize
my volume it throws  nor create logical volume
lvcreate gets error message "not activating volume group lv does not pass
activation filter"

-----Original Message-----
From: Bryn M. Reeves [mailto:bmr redhat com] 
Sent: Monday, 8 October, 2012 8:47 PM
To: linux clustering
Cc: Shanti Pahari
Subject: Re: [Linux-cluster] LVM cannot initilize

Hash: SHA1

On 10/08/2012 01:13 PM, Shanti Pahari wrote:
> volume_list = [ "vg_pdcpicpl01", "@PDC-PIC-PL-01" ]
> where my vg_pdcpicpl01 is Volume group rather than logical volume.
> This is my root volume .

Either a tag "@tagname", a volume group as "vgname", or a logical volume
name as "vgname/lvname" (otherwise the tools cannot know which LV you mean
if there are multiple LVs with the same name in different VGs).

In your earlier example you seemed to have an LV name:

>> Volume_list  =  [ "myrootvolume", "@hostname" ]

Which won't work since the LV name is unqualified by a VG. Your later

> volume_list = [ "vg_pdcpicpl01", "@PDC-PIC-PL-01" ]

Looks correct assuming that vg_pdcpicpl01 is the name of a VG on your

> In example I saw that I have to specify only VG of root .

It's up to you whether you want to specify just an LV or a whole VG.

> Can you help me where I am wrong ?

It's hard to say. What error do you get initialising LVM? Try adding more
-v if there's nothing useful printed (normally syntax errors in lvm.conf
give a useful message).

Failing that you could post your full lvm.conf to a pastebin somewhere and
mail the link so that others can review your config.

Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]