Translate this Page


In this posting, we will learn how to create Filesystem on IBM AIX. If we have a cluster system, then we need to create the same filesystem definition in all servers that used in cluster system. For this reason, we only exportvg in a server and import it to another servers.
0. Scan your new LUN/Disk

 # cfgmgr -v

1. List up Available PV (Phisycal Volume)

# lspv
 hdisk0          00c3a6b534737131                    rootvg          active
 hdisk1          00c3a6b5bf30a665                    rootvg          active
 hdisk2          00c3a6b5c2bc7f66                    vg01            active
 hdisk22         none                                None

2. Create VG (Volume Group, -S Scalable, -f Force, -y VGName)

# mkvg -S -f -y vg19 hdisk22

3. Assure the VG size

# lsvg vg19
 VOLUME GROUP:       vg19             VG IDENTIFIER:  00c3a7a500004c000000012
 VG STATE:           active           PP SIZE:        32 megabyte(s)
 VG PERMISSION:      read/write       TOTAL PPs:      1117 (35744 megabytes)
 MAX LVs:            256              FREE PPs:       1117 (35744 megabytes)
 LVs:                0                USED PPs:       0 (0 megabytes)
 OPEN LVs:           0                QUORUM:         2 (Enabled)
 TOTAL PVs:          1                VG DESCRIPTORS: 2
 STALE PVs:          0                STALE PPs:      0
 ACTIVE PVs:         1                AUTO ON:        yes
 MAX PPs per VG:     32768            MAX PVs:        1024
 LTG size (Dynamic): 256 kilobyte(s)  AUTO SYNC:      no
 HOT SPARE:          no               BB POLICY:      relocatable

4. Create Log LV (filesystem type jfs2 need loglv for journaling)  

# mklv -y loglv19 -t jfs2log vg19 1

5. Create LV (Create Logical Volume with filesystem type jfs2)   

# mklv -y lv19 -t jfs2 vg19 35000M

 OR using FREE PP – 1

# mklv -y lv19 -t jfs2 vg19 1116

6. Create FileSystem

# crfs -v jfs2 -d /dev/lv19 -a log=/dev/loglv19 -m /u01/apps

7. Mounting Filesystem

# mount /dev/lv19

To Check the filesystem already mounted or not :

# df -g

Import VG to Destination server :
1. Umount File system on source server:

# umount /dev/lv19

2. Deactivate VG on source server

# varyoffvg vg19

3. Activate VG and unlock it on source server:

# varyonvg -b -u vg19

4. Check Phisical name in destination server, if phisycal name as same as source server we can used Phisycal name
   otherwise if physical name in source server different with destination server, we can used path address.

# lspv
 hdisk22         00c3a81592bdbb4e                    vg19            active

5. Import VG on destination server:     

# importvg -y vg19 hdisk22


 # importvg -y vg19 00c3a81592bdbb4e

6. All definition of VG19 already add on destination server. We can mounted it in destination server,
   but before we mount, we should deactivate vg on source server.  
   In Source server :

# varyoffvg vg19

   In Destination server :

# mount /dev/lv19

Done, now you can mounting the filesystem in source system and target system alternately. ;)

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2012 LevICORP's webnote Suffusion theme by Sayontan Sinha