Operating System - HP-UX
1833042 Members
2385 Online
110049 Solutions
New Discussion

Re: Will there be any data loss while increasing a Filesys size...?

 
Saravana kumar_4
New Member

Will there be any data loss while increasing a Filesys size...?

Hi All,

I need to increase the size of a existing file system (user created) in HPUX.

Will there be any data loss while unmounting during size change.....?

Plz Reply me ...

Thanks in advance...
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Will there be any data loss while increasing a Filesys size...?

Hi:

There will be no data loss if you perform the resize correctly. You will not need to unount the filesystem if you have OnlineJFS.

Regards!

...JRF...
Yogeeraj_1
Honored Contributor

Re: Will there be any data loss while increasing a Filesys size...?

hi,

As mentioned by JRF, if you follow the steps right then there are no risks of data loss. As a precautionary measure, you may wish to backup your data before doing any manipulations.

good luck!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: Will there be any data loss while increasing a Filesys size...?

There are two steps to increasing the filesystem: physical space is added using lvextend, and the directory is reorganized to use the new space using fsadm -b. There will be no -b option if you do not have OnlineJFS product. Check with:

swlist -l product | grep -i OnlineJFS

Without OnlineJFS, you can extend the logical volume at any time but you must unmount the filesystem before running extendfs to reorganize the directory.


Bill Hassell, sysadmin
Shrikant Lavhate
Esteemed Contributor

Re: Will there be any data loss while increasing a Filesys size...?

Hi,

Already Olympics have answered your question so nothing to add more. Just wanna give you list of command you may ask afterwards, in advance!

Regular method:

#umount

#fuser -ku #To kill active user sessions.

#lvextend -L /dev/vg??/lvol?
size is increased size in MB

#extendfs -F vxfs /dev/vg??/rlvol?
Assuming FS is vxfs type.

#mount /dev/vg??/lvol?

Online JFS:
#swlist -l product| grep -i jfs

#fsadm -b /mount_point

As already mentioned having backup in hand before you play around in LVM is good practice.
-=ShRi=-


Will it remain a personal, if I broadcast it here!
Saravana kumar_4
New Member

Re: Will there be any data loss while increasing a Filesys size...?

Hi All,

Thanks ... Thanks for all for giving good info.

I dont have online JFS ... of course

I followed ur steps and could resolve the problem.

Thanks again to all...