1832763 Members
2947 Online
110045 Solutions
New Discussion

Extending Filesystem

 
SOLVED
Go to solution
kunjuttan
Super Advisor

Extending Filesystem

Hi Gurus,
I am having an Hp rx7640 server running hp-ux11.23 os.Now I just want to confirm the steps to extend the filesystem.Please help.i am giving the steps below.pls tell me if there is any error.
Existing Fs size is 50GB.I want to make it 100GB.SO what will be the size I have to give with lvextend command??

Create PV,
#ioscan -fnC disk
#pvcreate /dev/rdsk/cxtxdx

Extend the existing VG,
#vgextend vgsapdata1 /dev/dsk/cxtxdx

Extend the LV,
#lvextend -L xxxM /dev/vgsapdata1/lvsapdata1

Unmount the FS,
#umount /db2/PBI/sapdata1

Extending the FS,
#extendfs -F vxfs /dev/vgsapdata1/rlvsapdata1

Mount the extended FS,
#mount /db2/PBI/sapdata1


5 REPLIES 5
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: Extending Filesystem

hi,

lvextend -L 102400 /dev/vgsapdata1/lvsapdata1

1GB = 1024 MB so if you like to have a 100 GB you need to multiply this value.


mikap
S-M-S
Valued Contributor

Re: Extending Filesystem

Hi Mashe !

In your lvextend command , give the value for xxxM in MB equal to 100 GB
ani007
Super Advisor

Re: Extending Filesystem

If you have online JFS then you can extend the filesystem without unmounting.

#swlist -v|grep -i "OnlineJFS"
rariasn
Honored Contributor

Re: Extending Filesystem

Hi,

If you have MirrorDisk/UX then you can extend the filesystem with mirror option.

# lvextend -m 1 /dev/vgsapdata1/lvsapdata1

rgs,

kunjuttan
Super Advisor

Re: Extending Filesystem

Thanx...