Skip to main content

Posts

Showing posts from July, 2012

Aix: Moving File system to a new Volume group

Step 1 Close the source LV  # umount  /fs_on_rootvg Step 2 Copy the source logical volume to the desired volume group. # cplv -v  new_vg  lv_source  this will return  the name of the new logicla volum, such as lv00 Step 3 JFS and JFS2 file systems require a log device. run  lsvg -l <vg_name> , if JFS or JFS2 log does not exist you have to create it. To make a  new JFS2 log, enter  # mklv -t jfs2log  <vg_name>  1  This will return a new jfs2log volume, such as loblv00. This new log volume will need to be formatted with the logform command .   # logform /d ev/log lv00 Answer yes to destroy. Step 4 change file system's lv and log device  # chfs -a dev=/dev/lv00 -a log=/dev/loblv00 /myfilessytem Step 5 run fsck  to ensure file system integrity. # fsck -p /dev/lv00 Step 6  rmove the source logical volume # rmlv lv_source

Mirror Aix Rootvg

These steps describe how to mirror a Rootvg in Aix  environnement. Step1: extend a rootvg to a new pv (hdisk1)            # extendvg rootvg hdisk1 Step2: mirror rootvg           # mirrorvg rootvg  hdisk1 Step3: Make the new disk bootable          # bosboot -ad /dev/ hdisk1 Step4 : Define boot order          # bootlist -m normal hdisk0 hdisk1  Step5: Synchronize Rootvg          # syncvg rootvg  

View HBA in HP-ux

To  find out how  many HBA you have in your Hp-ux system run : # ioscan -fknC fc  Class     I  H/W Path   Driver S/W State   H/W Type     Description ================================================================= fc        0  0/0/4/1/0  fcd   CLAIMED     INTERFACE    HP AB378-60101      4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)                         /dev/fcd0 fc        1  0/0/6/1/0  fcd   CLAIMED     INTERFACE    HP AB378-60101      4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)                         /dev/fcd1 fc        2  1/0/4/1/0  fcd   CLAIMED     I...