Skip to main content

Posts

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...

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.

Resizing a logical volume RHEL6

To reduce the size of a logical volume, use the lvreduce command. If the logical volume contains a file system, be sure to umount it and reduce the file system first. Umount the file system # umount   /file_system_name Check if all data structures of you logical volume are cleaned. # fsck -f /dev/vgname/lvname   Resize the file system # resize -p /dev/vgname/lvname 500M Reduce the logical volume  # lvreduce -L 500M /dev/vgname/lvname  Checking   df -h /file_system_name

Growing Logical Volume in RHEL 6

To increase the size of a Logical Volume, use the   lvextend command. After extending the Logical volume, you will need to increase the size of associated file system , # lvextend -L 1500M /dev/vgname/lvname After it is necessary to increase the file system size to match. # resize2fs -p /dev/vgname/lvname -p option show the progress of the operation.