How to add space in
various Unix OS flavors.
- Increase
space in Linux
a) Identify the LV/mount point on which space needs to
be increased.
b) Note the current LV/mount point size using
“df –h </mount
point>”
c) Suppose you want to increase space by 1 GB , then
lvextend -L
+1G </dev/{vgname}/{lvname}>
eg. lvextend
-L +1G /dev/vg01/kirdata1
d) After increasing LV size , extend the Filesystem using
eg. resize2fs
-p /dev/mapper/vg01-kirdata1
e)
Verify the
new mount point size using
“df –h </mount
point>”
- Increase
space in AIX
a) Identify the LV/mount point on which space needs to
be increased.
b) Note the current LV/mount point size using
“df –g </mount
point>”
c) Suppose you want to increase space by 1 GB , then
chfs –a size=+1G
</mount point>
d)
Verify the
new mount point size using
“df –g </mount
point>”
- Increase space in HPUX
a) Identify
the LV/mount point on which space needs to be increased.
b) Check if
Online JFS is installed
swlist -l product | grep -i jfs
c) Note the
current LV/mount point size using
“bdf </mount point>”
d) Obtain the
current size of the Logical Volume (Mbytes)
lvdisplay </dev/volumegroup/logicalvolume>
e) Adjust the
size of the Logical Volume.
lvextend -L <new_size_in_mbytes>
{ New size ( in MB )= current size ( in MB )+ size to increase ( in
MB ) ( eg 1GB = 1024 MB) }
f) Adjust the
size of the Filesystem
fsadm -b <new_size>M </mountpoint>
g) Verify new
size by using
“bdf </mount
point>”
Thanks...
Kiran Jadhav
**Let's Share our knowledge**
No comments:
Post a Comment