it's will be really simple to do that, ofcourse if there are space available on the volume group ( vg )
--sample-
this is the sample for our experimental learning :
bash-3.2# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 1.50 0.00 100% 4495 50% /
/dev/hd2 4.50 1.35 70% 50922 14% /usr
/dev/hd9var 2.75 1.50 46% 8420 3% /var
/dev/hd3 2.25 1.94 14% 890 1% /tmp
and for this sample also we already know that /usr is on rootvg
bash-3.2# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 62 62 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 6 6 1 open/syncd /
hd2 jfs2 30 30 1 open/syncd /usr
hd9var jfs2 11 11 1 open/syncd /var
and for some kind of reason we need to extend /usr partition to 2GB or more.
--the story--
ok..... , for the first time we should do is make sure that space is available. for that reason you need to run this command on your console :
bash-3.2# lsvg -L rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00f7590e00004c000000013f5ad3954d
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1092 (279552 megabytes)
MAX LVs: 256 FREE PPs: 956 (244736 megabytes)
LVs: 13 USED PPs: 136 (34816 megabytes)
OPEN LVs: 12 QUORUM: 2 (Enabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
--the command--
nah... all preparation is complet and all what we need is here, so let start to extend /usr filesystem with this command
chfs -a size=+2G /usr
that's it........ only that command ... OK......
now test on your own box
- The “M” stands for megabytes
- The “G” stands for gigabytes
- The “+” is relative sizing: change the current amount by adding this much
- Without the “+” is absolute sizing: change the current amount TO this much
- NOTE: You can use “-” to decrease a filesystem size. Generally speaking for LVs, it is harder to shrink a filesystem. Sometimes it cannot be done while the filesystem is mounted, and sometimes depending on fragmentation it may not be able to be done at all. I have found AIX to be more robust in this department than various Linux LVM implementations. Generally speaking, though, when you increase your filesystem size, it is best to think of it as permanent .. (for the most part).
What those mean
*note : do with your own risk.. ^_^
comment please ... ConversionConversion EmoticonEmoticon