How to add disk on AIX LVM

This entry was posted in Linux and tagged on June 17, 2012, by

Following is the steps to add DISK in AIX logical volume manager

1. First add the physical disk to the system

2. Scan the hardware to detect the new disk

# cfgmgr

3. Now check the new disk, suppose it is hdisk2

# lsdev -Cc disk

# lspv

4. Assign new disk to volume group called datavg

# mkvg -y datavg hdisk2

5. Look at the size of hdisk2

# lspv hdisk2

6. Create a log logical volume. type is jfs2log and alos look for new logical name

# mklv -t jfs2log datavg 1

where 1 is 1 physical partition

Look for the logical name

# lsvg

# lsvg -l datavg

say suppose it is loglv00

7. Create logical volume now name prodlv

# mklv -t jfs2 -y prodlv datavg 30g

where 30g is the size

8. Now next is to create filesystem

# mkfs -o log =/dev/loglv00 -V jfs2 /dev/prodlv

9 . Mount the file sytem

# mkdir /mountpoint

# mount -o log=/dev/loglv00 /dev/prodlv / mountpoint

10 Add it to /etc/filesystem

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.