After installing the cluster stuff (GFS), lvscan and lvdisplay stopped working with the following error: [uphill@zürich]: lvscan connect() failed on local socket: Connection refused Locking type 2 initialisation failed. It's trying to talk to the cluster manager, but I haven't set that up yet, I still need my groups though, so I had to turn off the cluster aware bit. [root@zürich]# lvmconf --disable-cluster [uphill@zürich]: lvscan inactive '/dev/vol0/data' [350.00 GB] normal inactive '/dev/vol0/disk' [500.00 GB] normal Ok, not lvm decided to inactivate my groups, no worries [root@zürich ]# vgchange -a n 0 logical volume(s) in volume group "vol0" now active [uphill@zürich ]# lvscan inactive '/dev/vol0/data' [350.00 GB] normal inactive '/dev/vol0/disk' [500.00 GB] normal [root@zürich ]# vgchange -a y 2 logical volume(s) in volume group "vol0" now active [uphill@zürich ]# lvscan ACTIVE '/dev/vol0/data' [350.00 GB] normal ACTIVE '/dev/vol0/disk' [500.00 GB] normal [root@zürich ]# mount /dev/vol0/data /data [root@zürich ]# When you have your cluster stuff going and you want lvm to show the cluster again, turn it back on with this: [root@zürich ]# lvmconf --enable-cluster --lockinglibdir /usr/lib

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

About the Author...