How To Create Lpar In Aix
The requirement is to create a new filesystem on the AIX server.
I have created the new Volume on the SAN and mapped it to the Host cluster.
Logged on to the VIOS1 Server
oem_setup_env
# lspv
hdisk18 none None
hdisk0 00fa38a67a5f5f71 rootvg active
hdisk1 00fa38a67a81b582 rootvg active
hdisk2 00fa38a6a108c8ff None
hdisk3 00fa38a6a109043f None
hdisk4 00fa38a6a109237f None
hdisk5 00fa38a6a1093635 None
hdisk6 00fa38a696ac0b62 None
hdisk7 00fa38a6a1095500 None
hdisk8 00fa38a6a1096b0a None
hdisk9 00fa38a6a1097f94 None
hdisk10 00fa38a6a109959f None
hdisk11 00fa38a6a109a733 None
hdisk12 00fa38a6a109ba4f None
hdisk13 00fa38a6a109d7d1 None
hdisk14 00fa38a6a10a0f80 None
hdisk15 00fa38a69a45bb0f None
hdisk16 00fa38a6826b601b None
hdisk17 00fa38a6827b2ee7 None
hdisk19 00fa38a6af66dcce None
hdisk20 00fa38a6120c5147 None
hdisk21 00fa38a6120c8383 None
The newly created disk is not listing as expected.
Run cfgmgr command and check again.
# cfgmgr
# lspv
hdisk18 none None
hdisk0 00fa38a67a5f5f71 rootvg active
hdisk1 00fa38a67a81b582 rootvg active
hdisk2 00fa38a6a108c8ff None
hdisk3 00fa38a6a109043f None
hdisk4 00fa38a6a109237f None
hdisk5 00fa38a6a1093635 None
hdisk6 00fa38a696ac0b62 None
hdisk7 00fa38a6a1095500 None
hdisk8 00fa38a6a1096b0a None
hdisk9 00fa38a6a1097f94 None
hdisk10 00fa38a6a109959f None
hdisk11 00fa38a6a109a733 None
hdisk12 00fa38a6a109ba4f None
hdisk13 00fa38a6a109d7d1 None
hdisk14 00fa38a6a10a0f80 None
hdisk15 00fa38a69a45bb0f None
hdisk16 00fa38a6826b601b None
hdisk17 00fa38a6827b2ee7 None
hdisk19 00fa38a6af66dcce None
hdisk20 00fa38a6120c5147 None
hdisk21 00fa38a6120c8383 None
hdisk22 none None
Newly added disk hdisk22 is now visible
Make sure hdisk22 is not reserved for anything else. You will notice (reserve_policy – no_reserve)
# lsattr -El hdisk22
Get Client Partition ID and matching vhost ID of the LPAR where you would like to create the new filesystem by running the below command.
#lsmap -all
Or by logging into the LPAR run the below command. In this case, the Partition number is 5.
# lparstat -i
Apply the below command to bind the newly created disk to the LPAR
$ mkvdev -vdev hdisk22 -vadapter vhost2 -dev boy_backupvg
boy_backupvg Available
You will have to do this on both VIOS servers.
Once completed logon to the LPAR and configure the Volume Group and mount the directory.
#lspv to list the physical volumes. The newly disk is not visible at this stage.
Run cfgmgr to scan the disk changes. The newly created disk hdisk5 is visible now.
hdisk5 none None
lspath shows available vscsi paths, if this is not correct check cfgmgr again.
Create Logical Volume
# mklv -t jfs2 -y backup_lv backup_vg 2950 hdisk5
backup_lv
Create Filesystem
# crfs -v jfs2 -d backup_lv -A yes -m /backup
File system created successfully.
3093204596 kilobytes total disk space.
New File System size is 6186598400
Mount the directory by executing the below command
# mount /backup
How To Create Lpar In Aix
Source: https://cloudcomputingwithme.wordpress.com/2020/04/14/create-new-filesystem-on-an-aix-lpar/
Posted by: lomaxpoccour.blogspot.com

0 Response to "How To Create Lpar In Aix"
Post a Comment