你们都是我的客户,所以,我对你们是透明的
分类: AIX
2015-10-16 15:55:51
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 558 376 111..42..00..111..112
hdisk1 active 558 382 111..48..00..111..112
创建lv lv_root 大小30G
# mklv -t jfs2 -y lv_oracle rootvg 30G
lv_oracle
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 1 2 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 10 20 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 2 4 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 90 180 2 open/syncd /home
hd10opt jfs2 9 18 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 6 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
lv_oracle jfs2 60 60 1 closed/syncd N/A
# crfs -v jfs2 -d lv_oracle -m
/oracle -A 'yes' -p 'rw' -a agblksize='4096' -a logname='INLINE'
File system created successfully.
31333236 kilobytes total disk space.
New File System size is 62914560
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 1 2 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 10 20 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 2 4 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 90 180 2 open/syncd /home
hd10opt jfs2 9 18 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 6 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
lv_oracle jfs2 60 60 1 closed/syncd /oracle
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 3.91 22% 10333 2% /
/dev/hd2 20.00 10.08 50% 53993 3% /usr
/dev/hd9var 1.00 0.51 49% 8464 7% /var
/dev/hd3 10.00 7.99 21% 1910 1% /tmp
/dev/hd1 45.00 44.99 1% 9 1% /home
/dev/hd11admin 0.50 0.50 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 4.50 4.24 6% 9047 1% /opt
/dev/livedump 0.50 0.50 1% 4 1% /var/adm/ras/livedump
/dev/datalv 1022.50 1022.34 1% 5 1% /data
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 1 2 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 10 20 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 2 4 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 90 180 2 open/syncd /home
hd10opt jfs2 9 18 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 6 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
lv_oracle jfs2 60
60 1 closed/syncd /oracle
挂载
# mount /oracle
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 1 2 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 10 20 2 open/syncd /
hd2 jfs2 40 80 2 open/syncd /usr
hd9var jfs2 2 4 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 90 180 2 open/syncd /home
hd10opt jfs2 9 18 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 6 1 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
lv_oracle jfs2 60 60 1 open/syncd /oracle
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 3.91 22% 10333 2% /
/dev/hd2 20.00 10.08 50% 53993 3% /usr
/dev/hd9var 1.00 0.51 49% 8464 7% /var
/dev/hd3 10.00 7.99 21% 1910 1% /tmp
/dev/hd1 45.00 44.99 1% 9 1% /home
/dev/hd11admin 0.50 0.50 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 4.50 4.24 6% 9047 1% /opt
/dev/livedump 0.50 0.50 1% 4 1% /var/adm/ras/livedump
/dev/datalv 1022.50 1022.34 1% 5 1% /data
/dev/lv_oracle 30.00 29.88 1% 4 1% /oracle
#