1824971 Members
3243 Online
109678 Solutions
New Discussion юеВ

Change hfs vxfs

 
SOLVED
Go to solution
castro_2
Regular Advisor

Change hfs vxfs

In 10.20 there is some way to change the hfs to vfs.?
Thanks
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Change hfs vxfs

Yes.

1) Backup.

2) umount

3) newfs -F vxfs

4) mount

5) restore

You can do this on any filesystem except /stand which MUST be hfs.

There is no "magic" way to convert a filesystem.
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: Change hfs vxfs

You cannot do this direclty. As mentioned, you need to take full system backup and recreate each file systems. There are tools available to upgrade JFS from one version to other, not for hfs.
Life is a promise, fulfill it!
castro_2
Regular Advisor

Re: Change hfs vxfs

and with online JFS
Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: Change hfs vxfs

Sorry, even with OnlineJFS there is no way to do this "on the fly".
If it ain't broke, I can fix that.
Helen French
Honored Contributor

Re: Change hfs vxfs

No. Even with online JFS, you cannot convert an hfs file system to vxfs.
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: Change hfs vxfs

Or if you have additional disk space, you can create a new vxfs FS and cpio the data over. For example .. existing HFS mounted filesystem(/prodata say 1.2GB)on /dev/vg01/lvol1. You can create (either on the same VG or different VG - if space permit). Lets assume on the same VG.
# lvcreate -L 1200 -n lvol3 /dev/vg01
==> lvol3 is new to vg01
# newfs -F vxfs /dev/vg01/rlvol3
# mkdir /dest ; mkdir /source
# umount /prodata
==> Can only be umounted if users are not accessing.
# mount /dev/vg01/lvol1 /source
# mount /dev/vg01/lvol3 /dest
# cd /source
# find . -xdev -depth -print | cpio -pudlmv /dest
# umount /source ; umount /dest
# vi /etc/fstab
==> Change the mount entries accordingly. It can look like this ..
/dev/vg01/lvol3 /prodata vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
# mount -a

Once confirmed ok .. clean up ..
# rmdir /source /dest
# lvremove /dev/vg01/lvol1
James R. Ferguson
Acclaimed Contributor

Re: Change hfs vxfs

Hi Castro:

Here's another good reason to move from ancient 10.20 to 11i operating system. In 11i you have the ability you desire with the 'vxfsconvert(1M)' utility. See here for more information:

http://docs.hp.com/hpux/onlinedocs/B2355-90692/B2355-90692.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Change hfs vxfs

Don't do this to the /stand filesystem. Kernel sits there. MUST be HFS.

Not unless you don't like your system to boot.

There may be other filesystems in 10.20 that can not be converted as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com