Operating System - HP-UX
1752701 Members
5979 Online
108789 Solutions
New Discussion юеВ

Re: extend LVM without onlineJFS

 
SOLVED
Go to solution
Ganesan R
Honored Contributor
Solution

Re: extend LVM without onlineJFS

Hi,

If you are using automount/autofs on client side, you don't need to do much on NFS cients.

Make sure no clients are currently mounted the filesystem and after confirmation just unexport the /usr/sap on NFS server using #exportfs -u /usr/sap

Now you can extend the filesystem as we described earlier.
Best wishes,

Ganesh.
TTr
Honored Contributor

Re: extend LVM without onlineJFS

The steps for extending without onlineJFS are

1. lvextend -L 20480 /dev/vg01/usrsap

2. umount /usr/sap

3. extendfs -F vxfs /dev/vg01/rusrsap

4. mount /usr/sap

Yes, you can run lvextend without unmounting first, minimizes the unmount time. Using extendfs is safer than fsadm, no number of sectors needed.

Take a look at the "man lvextend" this very same example is towards the bottom.
subodhbagade
Regular Advisor

Re: extend LVM without onlineJFS

Hi ,

please follow the steps :----

(1)umount /usr/sap

(2)if it is showing device is busy then
fuser -cu /usr/sap
fuser -ku /usr/sap
kill pid or kill -9 pid

(3) lvextend -L 20480 dev/vg01/usrsap

(4)extendfs /dev/vg01/rusrsap

(5)mount /dev/vg01/rusrsap /usr/sap

(6)check the new size using bdf

(7)Start the nfs service on server
/sbin/init.d/nfs.server start

(8)NFS shared FS on client machine will mount automaticaly.

Regards,
Subodh.
Tingli
Esteemed Contributor

Re: extend LVM without onlineJFS

I wonder whether there should be a backup of the file system before the umount.
UVK_1
Advisor

Re: extend LVM without onlineJFS

Instead of fsadm step in ur procedure just use #extendfs /dev/vg01/rusrsap

and you are all set to go
amdtaufik
Occasional Advisor

Re: extend LVM without onlineJFS

To All, Tqvm for the helps and guides ...

I have successfully extend my /usr/sap mount point to another 10gb. here was the steps taken ...

1. remove all nfs client connected to /usr/sap
2. unexport the /usr/sap nfs
exportfs -u /usr/sap/trans

3. umount /usr/sap
# umount /usr/sap

4. extend the fs
# lvextend -L 20480 /dev/vg01/usrsap
# extendfs /dev/vg01/rusrsap

5. mount back the fs
# mount /usr/sap

6. check the new size (20Gb)
# bdf /usr/sap
Filesystem kbytes used avail %used Mounted on
/dev/vg01/usrsap 20971520 10123384 10170186 50% /usr/sap

7. export back the unexported nfs file
# exportfs -a

8. mount back all the nfs share at the relevant client.


Tqvm.
amdtaufik
Occasional Advisor

Re: extend LVM without onlineJFS

Tqvm to all that has helped.