About Us

RSInfoMinds, a web based IT Training and Consultancy firm. It is established with high dreams in training people in IT Infrastructure Field. We provide Online and Class Room training in various fields of IT Infrastructure Management.

Join Us: http://www.facebook.com/RSInfoMinds
Mail Us: rsinfominds@gmail.com
Twitter: @RSInfoMinds

We are specialized in the below courses:

Redhat Linux Admin Redhat Linux Cluster
Redhat Virutualization IBM AIX Admin
IBM AIX Virtualization IBM AIX Cluster
HP Unix Admin HP Unix Cluster
HP Unix Virtualization Shell Scripting
Veritas Volume Manager Veritas Cluster
Oracle Core DBA VMWare


We provide training in such a way, So that you get in depth knowledge on the Courses you look for.

And we ensure you are very confident from each and every Techincal aspect that the IT Industry needs and expects from you.

We also conduct Workshops on the latest technology and the real time faculties sharing their work experiences to make you the best.

Wednesday 30 March 2011

Split and Joining a Volume Group in AIX

Splitting refers to the process of a breaking a mirrored Volume Group, which can be imported and used in a different AIX Machine or a LPAR. Applicaton Portability with less downtime are executed using the Splitting and Join Operation.

Scenario:

Consider an application configured on a volume group called "Application" which is made up of hdisk0 and hdisk1. And the application is mirrored.

Note: Only a mirrored volume group can be splitted.

Steps to Split:

1) # lsvg -o

2) # lsvg -l application /* Check the VG is mirrored */

3) # lsvg -p application  /* PV's used to make the Volume Group*/

4) # splitvg -y <new vgname> -c 2 application /* Splitting application VG to a new VG, if no new name is givethen the VG is created with the default name vg00 */

5) New VG name is given as say "backupappln"

6) The VG "backupappln" is created in the PV hdisk. Where hdisk1 was a part of mirrored VG application.

7) Verify the new VG Created.

8) # lsvg - l backupappln

9) # lsvg -l application

10)  # lsvg -p application

The output will still show that the VG application is made up of hdisk0 and hdisk1 but the state of hdisk1would be snapshotlv.


11) # lsvg -p backupappln

The output will show only the hdisk1

12) Now we export the VG backupappln to be used in a different machine. Before exporting the VG backupappln make sure that there is no Open Logical Volume and Varyoff the VG.
    
     # varyoffvg backupappln
 
13) # exportvg backupappln

14) # rmdev -Rdl hdisk1 /* The disk hdisk1 has been removed from the AIX Machine */

15) # lsdev -l hdisk1 /* Ensure the hdisk1 is not shown */

16) Connect the hdisk1 to the required machine.

17) # cfgmgr /* Look for the newly connected device */

18) # lsdev -l hdisk1 /* Check the status of hdisk */

19) # importvg -y VG Name PV Name

VG Name : backupappln and PV Name : hdisk1

20) # lsvg -o /* Output will show the VG backupappln */

21) # lsvg -l backappln /* List the LV's in the VG */

22) By default all the LV's  and mountpoints are prefixed with "fs".

23) # chlv -n newname oldname /* To change the name of the LV's

24) # chfs -m newmount point filesystem /* To change the mount point */

25) # mount -a /* To mount the file system *.




No comments:

Post a Comment