Posts Tagged ‘lsfs’
Additional Information On AIX System Administration – IV
# lsfs command gives the following output:
Hd1 – home
Hd2 – USR
HD3 – TMP
HD4 – Root
HD5 – BLV
HD6 – Paging Space (2 types: primary, secondary)
HD7 – Not Found
HD8 – JFS
HD9 – VAR
HD10 – MNT
HD11 – admin (available in AIX V 6.1)
LED code 0c0 means successful completion of dump.
To view extended permissions, command used is:
# ls –e <filename>
Command used to set tty port for bidirectional mode:
# share <port attributes>
Commands used to setup quota for file system for end users are:
# vi /etc/<file system>
# edquota /<file system> <username>
# quotaon <file system>
# quotaon /<file system>
To initiate system dump, command used is:
# sysdumpstart –P (for primary)
# sysdumpstart –S (for secondary)
SNAP is generally used to gather system information.
Some of the SNAP commands are:
# snap –a
# snap –g
# snap –D
Image.data contains information about VG’s and LV’s.
Bosinst.data contains information about installation flow control.
To view mksysb tape and to restore particular file from mksysb tape, commands used are:
# tctl –f /dev/<tape drive name>
# restore –tvf /dev/<tape drive name>
# restore –xvf /dev/<tape drive name>
For eg:
# tctl –f /dev/rmt0
# restore – tvf /dev/rmt0
# restore – xvf /dev/rmt0
Tctl command is basically used to rewind the tape drive.
To list NIM objects, command used:
# lsnim
NIM stands for network installation management.
To see NIM log, command used is:
# nim –o showlog –a full_log = yes –a log_type = logtype NIMclient
Logtype can be boot, script etc.
NIMClient is the hostname / ip address of the client machine.
Sources of this command : IBM AIX Forum
# smit system command is used to change the server time.
# smit date command is used to change system date.
Time synchronization is either done by running time demon or ntp demon.
P5 family:
- Entry :
i. P5 510
ii. P5 520
iii. P5 550
- Mind Range :
i. P5 570
- High End :
i. P5 575
ii. P5 590
iii. P5 595
Physical Volume (PV) id can be found in Cuat ODM class.
Device in defined state means there is an entry in ODM class CuDV.
Procedure to change bootlist from hdisk0 to hdisk1:
Go to SMS mode by pressing F1 and change the bootlist by running the following command:
# bootlist –m normal hdisk0 hdisk1
If a machine keeps rebooting and repeating POST, it means either there is invalid bootlist or corrupted BLV or hardware failure of boot device.
More we will discuss about AIX System Administration in the coming posts.
Till then,
Happy Learning !
Steps To Increase/Decrease A FS Size
Steps To Increase/Decrease A FS Size
A FS once created, can be increased (for jfs/jfs2) or decreased (for jfs2) as per the end user requirements by the administrator.
Increasing the FS will automatically increase the size of LV. Increase the size of LV will not increase the size of FS but will make provision for increasing the size of FS later when required.
Steps involved for increasing the size of a FS
# chfs –a size = 1 GB /ora
This command will increase the size of /ora FS to 1 GB.
To raise the size by 1 GB will alter the above command as follows:
# chfs –a size = + 1 GB /ora
To verify the above command is executed properly or not:
# lsfs
OR
# df –m
Steps involved to reduce/decrease the size of FS
Reduction of size is only possible for jfs2 types of FS. Reduction is not possible in jfs type of FS. Also, one of the limitations of a LVM is that reduction of size of LV is not possible. Refer:
Run the following command to reduce the size of FS:
# chfs –a size = 512M /ora
OR
# chfs –a size = -512M /ora
Verify the same by:
# lsfs
OR
# df –m
Chfs command is basically used when needs to increase the size of FS for end user as per the requirement.
Next we weill discuss about steps to reduce/extend a VG.
Happy Learning !
Steps To Create A VG With User Defined Name
Steps To Create A VG With User Defined Name
This Blogpost deals about steps to create a VG with user defined name. Initially we discussed about how to create a VG with default name.
End users in an environment sometimes require VG LV creation with a defined name as per requirement. In this case, users cannot rely on default naming provided by the OS.
The various commands used in creating a VG and LV with user defined name will be discussed here in this particular post.
Check the PV information by running:
# lspv
Create a VG with user defined name “oracle_vg” (for eg) by running the following command:
# mkvg –y oracle_vg –S 32 hdisk0 hdisk5
Interpretation for the above command:
# mkvg –y vgname –S (for scalable), -N (for Normal), -B (for Big) <PP size> PV
Admin can verify the VG information by running the following commands:
# lsvg
OR
# lsvg oracle_vg
OR
# lsvg –p oracle_vg
Once a VG is created, a LV with user defined name (oracle_lv) is created on top of it by running the following command:
# mklv –y oracle_lv –t jfs/jfs2 oracle_vg 10 hdisk5
Interpretation for the above command:
# mklv –y lvname –t <type of LV> <vgname> <Number of LPs> PV
Admin can verify the LV creation by running:
# lslv oracle_lv
OR
# lslv –l oracle_lv
Next Step is to create a directory:
# mkdir /ora
Then create a FS on oracle_lv with /ora as mount directory:
# crfs –v jfs/jfs2 –d oracle_lv –m /ora –A yes
Now Mount the FS:
# mount /ora
Verify the FS:
# mount
Complete FS information:
# lsfs
Complete PV, VG information:
# Lsvg –o | lsvg –il
Next, I will discuss Steps to increase/decrease size of a FS.
Happy Learning !
Steps For Unmounting A Default FS
Steps For Unmounting A Default FS
First Check the complete FS information by running the following command:
# df –m
OR
# lsfs
Unmount the FS by running the following command:
# umount
Once unmounted, verify and confirm that the FS does not exists anymore by running:
# lsfs
Remove the FS:
# rmfs /test01
FS will not be listed anymore.
Now delete the LV:
# rmlv lv00
Remove the log created for each LV created:
# rmlv loglv00
After LV removal, run command to remove the VG:
# Reducevg vg00 hdisk0
Finally, run the lspv command to check the PV information:
# lspv
This command will show hdisk0 not assigned to any VG.
These are the steps used to unmount a FS and delete LV, VG from the PV.
Happy Learning !

