1835499 Members
3300 Online
110078 Solutions
New Discussion

filesystem on lv

 
subhashni
Regular Advisor

filesystem on lv

Hi
I would like to change filesystem on a logical volume from hfs to vxfs.with out lose in data.
Any help?appreciated
unix4me
6 REPLIES 6
erics_1
Honored Contributor

Re: filesystem on lv

Subhashni,

The solution is in the knowledge base. Check out document id #S3100004311. Make sure to create a backup of the filesystem before proceeding.

Best Regards,
Eric
A. Clay Stephenson
Acclaimed Contributor

Re: filesystem on lv

Hi:

1) Backup the HFS filesystem and VERIFY the backup.
2) umount the /hfs filesystem.
3) Run newfs -F vxfs on the same logical volume and them modify the /etc/fstab entries to reflect vxfs and any desired mount options.
4) Mount the vxfs filesystem.
5) Restore from backup.

Man newfs_vxfs and mount_vxfs for details.



Regards, Clay
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: filesystem on lv

Hi,

Try these steps:

1) Take a full backup of the file system.

Assuming your file system mount point is 'test' and the lvname is '/dev/vg01/lvol1'

2) umount /test
3) newfs -F vxfs /dev/vg01/rlvol1
4) fsck /dev/vg01/lvol1
5) mount /dev/vg01/lvol1 /test
6) fstyp /dev/vg01/lvol1
7) Edit /etc/fstab and add new entries for vxfs instead of hfs.

HTH,
Shiju
Life is a promise, fulfill it!
Helen French
Honored Contributor

Re: filesystem on lv

Hi again,

Missed one step:

8) Restore your data back to file system

Shiju

Life is a promise, fulfill it!
melvyn burnard
Honored Contributor

Re: filesystem on lv

If you are running 11i of HP-UX, there is a command called vxfsconvert to do this for you.

man vxfsconvert

vxfsconvert - convert a file system to a vxfs file system
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Uday_S_Ankolekar
Honored Contributor

Re: filesystem on lv

Hi,

Create a make-Recovery tape before you start converting!

And also have a fresh Backup.


-USA..

Good Luck..