Re: File Systems (190 Views)
Reply
Occasional Visitor
C.J. Ghorayeb
Posts: 1
Registered: ‎08-25-1999
Message 1 of 6 (190 Views)

File Systems

OS- HPUX 10.2

What is the fastest way to move from hfs to vxfs ?

Thank you.
Occasional Visitor
Stephen J Delli
Posts: 1
Registered: ‎08-26-1999
Message 2 of 6 (190 Views)

Re: File Systems

There isn't really a fast way to go from HFS to VXFS . you can use mkfs to
convert but this will blow away the data in what was the HFS filesystem.
do the following:
It may not be the fastest but it will save your data.

1) Backup the system or at least the filesystem you are going to convert
2) umount the filesystem
3) newfs -F vxfs /dev/vgname/rlvol_name .. yes you can use mkfs to do the same
thing.
4) vi /etc/fstab -> change the line for this file system to reflect vxfs and
the aurguments that go with it .
5) mount -a
6) bdf -> verify the file system did mount
7) restore the data

Hope that helps

Stephen Delli
Occasional Visitor
Gary M. Moore_1
Posts: 1
Registered: ‎08-31-1999
Message 3 of 6 (190 Views)

Re: File Systems

Are you using LVM? If so just migrate your existing data from the existing HFS
filesystem to a new VXFS filesystem (logical volume), then remove the old HFS
filesystem and reclaim that space for the next new VXFS (or dump your data to
tape, remove the HFS and readd it as VXFS and reload).

If you've got OS filesystems to change (I.E. /opt, /var, /usr) the process
becomes a bit different (since they are part of the OS and are by nature "busy"
filesystems) I use the hillbilly engineering approach: (might be easier in
single user mode). Make a FS of similar size, cpio everything from (example)
/var to the new FS and edit your fstab to point /var to the new "copy" device
and /var_tmp (or whatever name) to the old device. This will allow you to boot
with /var from an alternate location allowing you to remove and readd the
original as VXFS. After that, cpio your data from /var_tmp back to /var, change
your fstab back to the original device and once booted remove /var_tmp.

SHORT ANSWER: There is no quick way.
REMINDER: Don't forget that /stand requires HFS.

Good Luck!
Occasional Visitor
Jeff Huff
Posts: 4
Registered: ‎09-27-1999
Message 4 of 6 (190 Views)

Re: File Systems

The easiest way I know of, is to create a new filesytem of the
type VXFS, and just cpio the data from the old filesystem into
the new, change the mountpoints, and your on your way.
That assumes you have enough space to copy the filesystem in the first place.
Your other choice, would be to backup your existing filesytem,
umount the filesystem, rebuilt it as VXFS, and restore.

I have used both procedures, with no failures. I prefer the first method
however.
Occasional Advisor
Arun Pannase_1
Posts: 5
Registered: ‎10-05-1999
Message 5 of 6 (190 Views)

Re: File Systems

Use Ignite ver 2.0 or later.

Arun
Occasional Advisor
Arun Pannase_1
Posts: 5
Registered: ‎10-05-1999
Message 6 of 6 (190 Views)

Re: File Systems

Sorry for the incomplete Ignite suggetion..For you On Line Jfs will be the
faster way to convert from HFS to VXFS.Ignite will help you to make faster
backup of root file system and restore it on new vxfs file system.


Arun
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.