HACMP – LVM Command

If you run into the job to create many LVs within a HACMP cluster better use scripting than smitty (it’s a pain to create 50LVs within smitty).

Here are 2 commands (more will follow):

Delete a LV

  • /usr/sbin/cluster/cspoc/smitlvm -8 ‘HACMP_CLUSTER_RESOURCE_NAME’ ‘lvNAME’

Create a LV

automatically spread the LV over all volumes:

  • /usr/sbin/cluster/cspoc/smitlvm -17 ‘HACMP_CLUSTER_RESOURCE_NAME’ -y’lvNAME’ -t’typ[jfs2]’ -e’x’ -x'<number>’ VGNAME PP

specify one volume on current host to create LV

  • /usr/sbin/cluster/cspoc/smitlvm -17 -R’hostname’ ‘HACMP_CLUSTER_RESOURCE_NAME’ -y’lvNAME’ -t’typ[jfs2]’ -e’x’ -x'<number>’ VGNAME PP <hdisk>

export configuration

  • /usr/es/sbin/cluster/utilities/cl_exportdefinition -o ‘/var/hacmp/log/cluster.haw’
This entry was posted in aix, HACMP and tagged . Bookmark the permalink.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.