LinuxSysAdmin

Things I don't want to look for twice..

clustered LVM to non-clustered LVM

I had to re-configure clustered LVM to non-clustered LVM for some Lustre setup I’m working on. Thing is, clustered LVM can only be accessible if clvmd service is running. But I couldn’t start it, because I needed all cluster services down. After searching, I found that:

– to check if the LVM is clustered:

vgdisplay vgsrv1 --config 'global {locking_type = 0}' | grep Clustered
 WARNING: Locking disabled. Be careful! This could corrupt your metadata.
 Clustered yes

– to change it back to non-clustered LVM:

vgchange -cn vgsrv1 --config 'global {locking_type = 0}'

Now, to refresh your VG list type:

vgchange -ay
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: