Sunday, April 26, 2009

IBM AIX Operating System an Overview

Click the following link for information on: IBM AIX Operating System an Overview

FAQ on AIX

Click the following link for information on: FAQ on AIX

IBM AIX Version 6.1 Differences Guide

Click the following link for more information on: IBM AIX Version 6.1 Differences Guide

AIX - LVM - List File System

IBM - AIX - List File System

We can list file system details using lsfs command

#lsfs – List all filesystems in the /etc/filesystems entry

#lsfs –q (List all filesystems with detailed info)

#lsfs –a (list all filesystems (default)

#lsfs –l (specify the output in the list format)

#lsfs –c (specify the output in the column format)

#lsfs –v jfs (List all jfs filesystems)

AIX - LVM - Change File System

AIX - LVM - Change File System

Using chfs command we can rename and increase the size of the file system online

We want to increase file system size

#chfs –a size=+block size /filesystem name
#chfs –a size=+32m /filesystem name
#chfs-a size=+4g /filesystem name

+block size – We can mention the size using blocks (2048 blocks = 1MB)
+32m – We can mention the size using MB
+4g – We can mention the size using GB


After increasing the file system size, we can verify using commands

#df –k
#ls –q /newfs

Rename the file system using chfs command

#lsfs /newfs
It will display /newfs details
#

Now we want to rename /newfs to /testfs then your command will be

#chfs –m /testfs /newfs

After executing the above command /newfs renamed as /testfs

We can auto mount the file system while booting using chfs command

#chfs –A /testfs

AIX - LVM - Create File System

AIX - LVM - Create File System

Create FS

Using crfs command we can create a file system. File systems belongs to LV’s

Whenever we create the file system we should mention the LV name

#crfs –v jfs2 –d testlv –m /newfs (Normal creation)

The /newfs file system created on testlv.

#crfs –v jfs2 –g testvg –a size=64465 –m /newfs (Directly we can create /fs from VG
This case lv name will be lv00 or lv01 like this after that also we can rename the lv name)

AIX - LVM - Remove Logical Volume

AIX - LVM - Remove Logical Volume

If we want to LV testlv from server

#rmlv testlv (If data is available in testlv It will ask confirmation)

#rmlv –f testlv (It won’t ask any confirmation, directly it will delete the data)

After executing the above command testlv removed from the server.