File systems for WAS MQ
WAS file system for MQ
The following shows how to add logical volumes and filesystems for use by MQ on an AIX system. The procedure uses command-line, but you can also create using smit. For reference, use: 10.60.102.14
- Log on to target 10.45.110.86 as user root
- First confirm disk is part of volume group
root@mhost / # lsvg -p appvg appvg: PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION hdisk0 active 399 399 80..80..79..80..80- Next, determine how many free physical partitions we have to work with
root@mhost / # lspv hdisk0 PHYSICAL VOLUME: hdisk0 VOLUME GROUP: appvg PV IDENTIFIER: 00c609d7bdbe5686 VG IDENTIFIER 00c609d700004c0000000141bdbe56dc PV STATE: active STALE PARTITIONS: 0 ALLOCATABLE: yes PP SIZE: 256 megabyte(s) LOGICAL VOLUMES: 0 TOTAL PPs: 399 (102144 megabytes) VG DESCRIPTORS: 2 FREE PPs: 399 (102144 megabytes) HOT SPARE: no USED PPs: 0 (0 megabytes) MAX REQUEST: 512 kilobytes FREE DISTRIBUTION: 80..80..79..80..80 USED DISTRIBUTION: 00..00..00..00..00 MIRROR POOL: None- Create logical volumes, filesystems, then mount.
For mklv we calculate size based on no of PP's and size. For example, if appvg has a pp size of 256Mb, for a 40 GB filesystem we need 160 PPs.
echo "Making logical volumes"
mklv -y fslv01 -t jfs2 appvg 120 hdisk0
mklv -y fslv02 -t jfs2 appvg 120 hdisk0
echo "Making filesystems"
crfs -v jfs2 -d fslv01 -m /usr/mqm -A yes -p rw -a agblksize=4096 -a isnapshot=no
crfs -v jfs2 -d fslv02 -m /var/mqm -A yes -p rw -a agblksize=4096 -a isnapshot=no
echo "Mounting filesystems"
mount /usr/mqm
mount /var/mqmTo erase your work...
unmount /usr/mqm
unmount /var/mqm
rmfs /usr/mqm
rmfs /var/mqm
rmlv -f fslv01
rmlv -f fslv02- Verify...
# df -g Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 0.56 0.37 36% 10317 11% / /dev/hd2 2.44 0.15 94% 47456 54% /usr /dev/hd9var 2.06 1.71 18% 8713 3% /var /dev/hd3 3.12 3.12 1% 62 1% /tmp /dev/hd1 3.06 3.06 1% 5 1% /home /dev/hd11admin 10.00 9.63 4% 31 1% /admin /proc - - - - - /proc /dev/hd10opt 0.44 0.17 61% 9070 19% /opt /dev/fslv01 7.50 7.50 1% 4 1% /usr/mqm /dev/fslv02 7.50 7.50 1% 4 1% /var/mqm