Tag Archives: volume

Useful Commands for Redhat LVM and increasing Filesystem

– Scan New Hardware: scsi-rescan rescan-scsi-bus.sh –forcerescan – For Physical Volumes: pvdisplay pvscan pvcreate /dev/sdb – For Volume Groups: vgdisplay vgscan vgextend VGNAME PVNAME lvextend -L+50G LVNAME resize2fs LVNAME

Volume Group Status Area (VGSA)

Information about which PPs that are stale and which PVs are missing within a VG. The LVM and SCSI driver reserves somewhere between 7-10% of the available disk space for LVM maps, etc. Ref: http://www.datadisk.co.uk/html_docs/hp/aix_lvm.htm

Volume Group Descriptor Area (VGDA)

Information about all the LVs and PVs within a VG. The first 64K of a PV is reserved for this area – defined in <sys/bootrecord.h>. The VGDA consists of BOOTRECORD: – first 512 bytes. Allows the Read Only System (ROS) … Continue reading

Volume Group Characteristics

You can find below the meaning of each parameter on Volume Group Characteristics (the output from lsvg vg command):   Volume Group: Name of Volume Group. VG State: active/partial. Partial indicates that some of the Physical Volumes in the Volume … Continue reading

LVM

LVM :- Logical Volume Manager and it’s a disk Management for Linux/UNIX Systems.

how to know the Major Number for Specific Volume Group

to list the Major number for Specific Volume Group, use the following Command : “lvgenmajor VOLUME_GROUP_NAME” for example : # lvgenmajor rootvg 10 and the following link show how to display the available Major Numbers:

how to list file system inside specific volume group

You can use command ‘lsvgfs’ to list all file systems inside specific volume group like the following example: # lsvgfs rootvg / /usr /var /tmp /home /opt /admin /var/adm/ras/livedump /oracle_osb /u01/app/oracle /u02/oradata /iso_image /TestFs

how to know the volume group of specified logical volume

if you need to know the volume group of specified logical volume(AIX System with HACMP), you can run the following command : #/usr/es/sbin/cluster/utilities/clgetvg -l hd5 rootvg

display next availale major number

run the following command to get the next available major number : # lvlstmajor

0516-082 varyonvg: Unable to access a special device file

if you got the following errot while you trying to vary on a volume group: #varyonvg testvg 0516-082 varyonvg: Unable to access a special device file. Execute redefinevg and synclvodm to build correct environment.