Professional Documents
Culture Documents
5.2
Unit objectives
IBM Power Systems
Increased performance
Increased flexibility
Superblock
i-nodes
Data blocks
Allocation maps
Allocation groups
total
total 33
12309
12309 -rw-r-----rw-r----12307
12307 -rwxr-----rwxr----12308
12308 -rw-------rw-------
11 adminusr
adminusr security
security
11 adminusr
adminusr security
security
11 adminusr
adminusr security
security
119
119 12
12 Feb
Feb 19:43
19:43 datafile1
datafile1
254
254 27
27 Jan
Jan 18:19
18:19 .profile
.profile
156
156 28
28 Jan
Jan 14:31
14:31 .sh_history
.sh_history
## istat
istat datafile1
datafile1
Inode
File
Inode 12309
12309 on
on device
device 10/8
10/8
File
Protection:
rw-r----Protection: rw-r----Owner:
Group:
Owner: 211(adminusr)
211(adminusr)
Group: 7(security)
7(security)
Link
count:
1
Length
119
Link count:
1
Length 119 bytes
bytes
inode
number
Last
Last updated:
updated: Thu
Thu 12
12 Feb
Feb 19:44:09
19:44:09 2009
2009
Last
modified:
Thu
12
Feb
19:43:42
Last modified: Thu 12 Feb 19:43:42 2009
2009
Last
Last accessed:
accessed: Thu
Thu 12
12 Feb
Feb 19:43:42
19:43:42 2009
2009
#MountPoint:Device:Vfs:Nodename:Type:Size:Options:AutoMount:Acct
#MountPoint:Device:Vfs:Nodename:Type:Size:Options:AutoMount:Acct
/data:/dev/fslv00:jfs2:::204800:rw:no:no
/data:/dev/fslv00:jfs2:::204800:rw:no:no
(lv
(lv size
size 204800:fs
204800:fs size
size 204800:block
204800:block size
size 4096
4096
Blocksize.
(Some
output
removedfor
clarity.)
# smit crfs_j2
# crfs -v jfs2 -g datavg -a size=1G m /data
Add
Add an
an Enhanced
Enhanced Journaled
Journaled File
File System
System
Volume
Volume group
group name
name
SIZE
of
SIZE of file
file system
system
Unit
Unit Size
Size
**
Number
Number of
of units
units
** MOUNT
POINT
MOUNT POINT
Mount
Mount AUTOMATICALLY
AUTOMATICALLY at
at system
system restart?
restart?
PERMISSIONS
PERMISSIONS
Mount
Mount OPTIONS
OPTIONS
Block
Block Size
Size (bytes)
(bytes)
Logical
Logical Volume
Volume for
for Log
Log
Inline
Log
size
Inline Log size (MBytes)
(MBytes)
Extended
Extended Attribute
Attribute Format
Format
ENABLE
Quota
ENABLE Quota Management?
Management?
Enable
Enable EFS?
EFS?
Allow
Allow internal
internal snapshots?
snapshots?
[Entry
[Entry Fields]
Fields]
datavg
datavg
Gigabytes
Gigabytes
[1]
[1]
[/data]
[/data]
No
No
read/write
read/write
[]
[]
4096
4096
[]
[]
no
no
no
no
no
no
++
##
++
++
++
++
++
##
++
++
++
++
When the file system is created, the lsfs command will display
the characteristics of the file system.
## crfs
crfs -v
-v jfs2
jfs2 -g
-g datavg
datavg -a
-a size=1G
size=1G -m
-m /data
/data
File
system
created
successfully.
File system created successfully.
1048340
1048340 kilobytes
kilobytes total
total disk
disk space.
space.
New
File
System
size
is
2097152
New File System size is 2097152
## lsfs
lsfs /data
/data
Name
Name
/dev/fslv00
/dev/fslv00
Nodename
Nodename
---
## lsvg
lsvg -l
-l datavg
datavg
datavg:
datavg:
LV
TYPE
LV NAME
NAME
TYPE
POINT
POINT
loglv00
jfs2log
loglv00
jfs2log
fslv00
jfs2
fslv00
jfs2
Mount
Mount Pt
Pt
/data
/data
VFS
Options
VFS Size
Size
Options
jfs2
2097152
jfs2 2097152 ---
LPs
LPs
PPs
PPs
PVs
PVs LV
LV STATE
STATE
11
256
256
11
256
256
11
11
MOUNT
MOUNT
closed/syncd
closed/syncd N/A
N/A
closed/syncd
closed/syncd /data
/data
JFSlogautomatically
created,1LPinsize
(ifonedoesnotalready
exist)fortheVG.
Auto
Auto
no
no
## mount
mount /data
/data
Themountcommandreadsthe
stanzainthe
/etc/filesystemsfile,so
onlythemountpointis
required.
## mount
mount |egrep
|egrep '(/data|node)'
'(/data|node)'
node
mounted
mounted
node mounted
mounted over
over vfs
vfs
/dev/fslv00
/data
jfs2
/dev/fslv00 /data
jfs2
date
options
date
options
13
Feb
10:32
13 Feb 10:32 rw,log=/dev/loglv00
rw,log=/dev/loglv00
# smit crfs_j2
# crfs -v jfs2 d lv_for_data m /data2 A yes
Add
Add an
an Enhanced
Enhanced Journaled
Journaled File
File System
System
** LOGICAL
LOGICAL VOLUME
VOLUME name
name
** MOUNT
POINT
MOUNT POINT
Mount
Mount AUTOMATICALLY
AUTOMATICALLY at
at system
system restart?
restart?
PERMISSIONS
PERMISSIONS
Mount
Mount OPTIONS
OPTIONS
Block
Block Size
Size (bytes)
(bytes)
Logical
Logical Volume
Volume for
for Log
Log
Inline
Log
size
Inline Log size (MBytes)
(MBytes)
Extended
Extended Attribute
Attribute Format
Format
ENABLE
Quota
ENABLE Quota Management?
Management?
Enable
Enable EFS?
EFS?
Allow
Allow internal
internal snapshots?
snapshots?
[Entry
[Entry Fields]
Fields]
lv_for_data
lv_for_data
[/data2]
[/data2]
yes
yes
read/write
read/write
[]
[]
4096
4096
[]
[]
no
no
no
no
No
No
++
++
++
++
++
++
##
++
++
++
++
[Entry
[Entry Fields]
Fields]
/data2
/data2
[/data2]
[/data2]
Gigabytes
Gigabytes
[10]
[10]
##
++
[Entry
[Entry Fields]
Fields]
/data2
++
/data2
no
++
no
Free
Free %Used
%Used
1.10
1.10 24%
24%
0.10
0.10 97%
97%
0.24
0.24 25%
25%
0.12
6%
0.12
6%
--0.03
0.03 88%
88%
1.40
1.40 83%
83%
2.33
2.33 75%
75%
0.12
4%
0.12
4%
0.12
4%
0.12
4%
0.16
0.16 75%
75%
3.26
3.26 87%
87%
Iused
Iused %Iused
%Iused Mounted
Mounted on
on
9896
2%
/
9896
2% /
49616
8%
49616
8% /usr
/usr
1308
2%
1308
2% /var
/var
128
1%
128
1% /tmp
/tmp
--- /proc
/proc
4567
7%
4567
7% /opt
/opt
6888
3%
6888
3% /export
/export
4059
1%
4059
1% /aix
/aix
20
1%
20
1% /audit
/audit
18
1%
18
1% /admin
/admin
270
1%
270
1% /home
/home
99
1%
1% /mnt
/mnt
/var/adm/wtmp
/etc/security/failedlogin
/var/adm/sulog
/var/spool/*/*
/var/tmp/*
$HOME/smit*
$HOME/websm*
Modify the skulker shell script to suit local needs for the
removal of files.
Test carefully !!
4096 bytes
2000 bytes
1024
1024
1024
1024
Fragmentation considerations
IBM Power Systems
Used block
FileA
Free block
fsck command
Checks file system consistency and interactively repairs the file
system
If no file system name is specified, the fsck command checks all file
systems which have the check=true attribute set in the
/etc/filesystems.
Orphan files are placed in the lost+found directory.
LogicalVolume
volume
storage
Logical
Structure
hd2
hd4
hd6
hd8
/usr
/usr
hd3
Page Space
log
hd5
free
hd2
/(root)
hd1
hd2
hd9var
free
free
hd1
/home
/home
hd1
/home
/home
/tmp
hd61
free
hd1
/usr
lv00
Page Space
lv00
free
free
lv00
special DB
special DB
lv00
/blv
/var
special DB
special DB
hdisk0
hdisk1
hdisk2
hdisk3
rootvg
datavg
File Systems
/(root)
File System
File Systems
Directories
/bin
/dev
/etc
/lib
/usr
/tmp
/var
/home
Checkpoint (1 of 2)
IBM Power Systems
1.
2.
Does the size of the file system change when the size
of the logical volume it is on is increased? ________
3.
4.
5.
Checkpoint solutions (1 of 2)
IBM Power Systems
1.
2.
Does the size of the file system change when the size
of the logical volume it is on is increased? No
3.
4.
5.
Checkpoint (2 of 2)
IBM Power Systems
6.
7.
8.
____________
9.
Checkpoint solutions (2 of 2)
IBM Power Systems
6.
7.
8.
9.
Add 1 GB
chfs a size=+1G <file system>
Set the size to 5 GB
chfs a size=5G <file system>
Exercise 9
IBM Power Systems
File system
administration
Unit summary
IBM Power Systems