Operating System - Linux
1826004 Members
3430 Online
109690 Solutions
New Discussion

Re: Create lv on local disk when GFS is installed

 

Create lv on local disk when GFS is installed

Hi,

I've got 2 BL25P's with RHEL4.3 ES with GFS6.1 installed and configured. That is working without any problems.

However, if I try to create a vg and a lv on a local disk (/dev/cciss/c0d0p4) it fails when I try to create the lv:

[root@imtest01 ~]# lvcreate -n lv01 -l 12837 vg01
Error locking on node imtest01: Internal lvm error, check syslog
Error locking on node imtest02: Internal lvm error, check syslog
Failed to activate new LV.
[root@imtest01 ~]#

LVSCAN shows it is in "inactive" state

[root@imtest01 ~]# lvscan
inactive '/dev/vg01/lv01' [50.14 GB] inherit
.... SNIP
[root@imtest01 ~]#

VGS shows that:
vg01 1 1 0 wz--nc 50.14G 0


How do I create a 'non-shared' volume group(local) when GFS is installed?


Any help appreciated
/M


3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: Create lv on local disk when GFS is installed

If the lv is created probably it can be used activating the VG and creating a normal file system on it. Now, for the error check this link:

http://www.redhat.com/archives/linux-cluster/2005-November/msg00041.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Create lv on local disk when GFS is installed

Shalom,

You need to look at vgdisplay and see if you have any space in a volume group and pvdisplay to see if there is space on the disk.

Then pvcreate,lvcreate,lvextend,mkfs.ext3

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Create lv on local disk when GFS is installed

Hi,

SEP - This is a completely empty partition with 50GB of free space. If I just create the ext3 filesystem on the partition (not using LVM) it works. If I remove GFS completely and create the ext3-filesystem (with LVM) it works. The only time it doesnt work is when GFS is installed and I try to create a filesystem on the empty partition (with LVM).

I'm guessing it has to do with the fact that after the lvm2-cluster package is installed this line in "/etc/lvm/lvm.conf":
locking_type=1 is changed to
locking_type=2,
and that it somehow expects the volumegroups you create to be shared between the nodes, or it tries to propagate the LVM information throughout the cluster?

VGS shows that the newly created volumegroup vg01 has the cluster flag 'C' set:
vg01 1 1 0 wz--nc 50.14G 0

I tried to vgchange vg01 to a 'non-clustered' vg, but I still get the error, though only on the local node.

There must be a way to use LVM on local disks?

any help appreciated
/M