Skip to main content

Posts

Showing posts with the label Aix

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  

AIX RAM size memory

Command to check RAM in AIX UNIX The bootinfo command uses the device configuration databases in information searches. Just type the following command as the root user: bootinfo -r It will displays amount of real memory in kilobytes. bootinfo command may not be available in latest AIX UNIX version, try following command: $ lsattr -El sys0 | grep realmem svmon command - Captures and analyzes a snapshot of virtual memory The svmon command displays information about the current state of memory. The displayed information does not constitute a true snapshot of memory, because the svmon command runs at user level with interrupts enabled. To print out global statistics, type: # svmon -G Read the man page of svmon for more information.