Hello,
I am trying to write a script which supposedly do the following tasks on our AIX server (cluster).
1.Check the rootvg size if rootvg < 1gb then exit otherwise
create a logical volume lvxxxxx_vcl with 1 logical partiton.
2.Stop the cluster using /var/sam1/hastop -local -force
3.Rename the existing directory /var/sam1 to /var/sam1.old
4.creating a new directory
/var/sam1
5.Create and mount the filesystem /var/sam1 using the above defined LV
6.Keep the file system size as 256mb
7.copy contents of /var/sam1.old to newly created /var/sam1
8.remove /var/sam1.old
9.restart cluster using /etc/rc.d/rc2.d/hastart
Could some one help me to make this happen.either KSH or perl is fine.
I am trying to write a script which supposedly do the following tasks on our AIX server (cluster).
1.Check the rootvg size if rootvg < 1gb then exit otherwise
create a logical volume lvxxxxx_vcl with 1 logical partiton.
2.Stop the cluster using /var/sam1/hastop -local -force
3.Rename the existing directory /var/sam1 to /var/sam1.old
4.creating a new directory
/var/sam1
5.Create and mount the filesystem /var/sam1 using the above defined LV
6.Keep the file system size as 256mb
7.copy contents of /var/sam1.old to newly created /var/sam1
8.remove /var/sam1.old
9.restart cluster using /etc/rc.d/rc2.d/hastart
Could some one help me to make this happen.either KSH or perl is fine.