Re: LVM cannot initilize

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

 



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
(ha-web1).
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"

Reboot

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@xxxxxxxxxx] 
Sent: Monday, 8 October, 2012 8:47 PM
To: linux clustering
Cc: Shanti Pahari
Subject: Re:  LVM cannot initilize

-----BEGIN PGP SIGNED MESSAGE-----
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
example:

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

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

> 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.

Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlByy0EACgkQ6YSQoMYUY95VEgCdFK9QqeTOGAiiYnZiuAJ6iHY5
BrUAmwbCBULcq9gEVBtqOg8wAAGXph5M
=UsOX
-----END PGP SIGNATURE-----

-- 
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux