1820879 Members
3522 Online
109628 Solutions
New Discussion юеВ

NFS Online Extension

 
Premgy Varghese
Occasional Advisor

NFS Online Extension

I have NFS mounted from NAS on my HP-UX 11.11 box. On the NAS box they can extend the exported filesystem online.
Is there a way for me to get the new size on my hp-ux NFS client without unmount & mount again?

Thanks
Premgy
3 REPLIES 3
whiteknight
Honored Contributor

Re: NFS Online Extension


Premgy,

In your NFS server mount point, make sure your online JFS where you can extend the filesystem size without reboot the server.

you can use fsadm command to do that.

WK
Problem never ends, you must know how to fix it
Premgy Varghese
Occasional Advisor

Re: NFS Online Extension

Request more clarity on this. I doubt is that how will I get the extended size on NFS client without unmount? Does fsadm help any filesystem other than vxfs ?
Dave Olker
Neighborhood Moderator

Re: NFS Online Extension

Hello Premgy,

I don't think you should have to do anything at the NFS layer on the client to get it to see the new filesystem size. You may have applications running that cache filesystem sizes and those applications may need to be restarted, but at the NFS layer you shouldn't have to do anything.

I just tested this on my 11.11 NFS client. I created a new filesystem on my 11.31 NFS server that is 100 MB in size. I shared this filesystem and mounted it on my 11.11 client. It looks like this:

# bdf -t nfs
Filesystem kbytes used avail %used Mounted on
192.1.1.12:/test 106496 1760 98200 2% /hp-1


I then expanded the size of the filesystem on the 11.31 server via OnlineJFS to 150 MB. On the client all I did was another bdf command and I see this:


# bdf -t nfs
Filesystem kbytes used avail %used Mounted on
192.1.1.12:/test 155648 1768 144272 1% /hp-1


I didn't unmount/remount the filesystem or do anything else other than issue a 2nd bdf command. The bdf command causes the client to issue an FSSTAT request and the reply from the server contains the new filesystem size.

Again, you may have an application running on the client that has the old filesystem size cached, and that application may need to be stopped/started to see the new increased size, but at the NFS layer no change was needed.

I hope this helps,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo