Operating System - HP-UX
1836617 Members
2092 Online
110102 Solutions
New Discussion

Re: Migration from HFS to JFS

 
SOLVED
Go to solution
Stuart Powell
Super Advisor

Migration from HFS to JFS

Our production software is running in a ServiceGuard environment with disk arrays. We have 3 two node clusters. The disk arrays are all HFS and I want to find the most efficient way to move to JFS. We will be installing two new disk arrays over the next couple of months that will be replacing two existing arrays. The data migration plan is to build mirrors on the new arrays, and drop mirrors and primaries on the existing arrays. Is it possible to have a JFS mirror on an HFS system?
Sometimes the best answer is another question
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: Migration from HFS to JFS

NO, you can not mirror hfs to jfs. Your best bet is to either have both the old and new filesystems mounted and use "cp -rp" or backup to tape and restore. Plus with a tape backup, you'll insure you have a back out procedure.

live free or die
harry
Live Free or Die
eran maor
Honored Contributor
Solution

Re: Migration from HFS to JFS

Hi

i will give you few ways to do this :

a. A recovery tape created with make_recovery(1M) can be used for converting from HFS to JFS. make_recovery is provided as part of
the Ignite-UX product, which is available free of charge on the pplications Release media or at URL: http://www.software.hp.com

b. Converting an Existing HFS File System to a JFS File System
------------------------------------------------------------
If you have an existing HFS non-root file system that you wish to convert
to a JFS file system, follow these steps:

1. Back up the data residing on the HFS file system.
Note: JFS does not support the access control lists (ACLs) security feature nor is it available on a trusted system.

If your HFS file system supports ACLs, then during a tar(1) or cpio(1) backup, if an ACL is detected, you will be warned that ACLs will not be restored to JFS. You then have the
option of aborting the conversion process.

2. Create a new JFS file system on the logical volume or non-LVM disk which you will use to replace the HFS file system.

3. Mount the new JFS file system.

4. Restore the file data from the backup performed above on to the JFS file system.


c.
The following steps will guide you through the conversion of your
HFS filesystem to an VXFS filesystem:


1. umount /log

2. newfs -F vxfs /dev/vg03/rlvol1

3. mount /dev/vg03/lvol1

Note: The output from this is: the file system is corrupted

4. fsck -F vxfs /dev/vg03/lvol1

5. mount /dev/vg03/lvol1

6. fstyp /dev/vg03/lvol1

Note: The output from this is 'vxfs' which confirms your
filesystem is now VXFS.

7. Restore from the backup.


hope that this answer your que,
love computers
Stuart Powell
Super Advisor

Re: Migration from HFS to JFS

Thanks. That's not the answer I wanted, but sometimes the truth hurts . . .
Follow up question: Would "find /filesystem -cpio new_array" work better than cp -rp?
Sometimes the best answer is another question
harry d brown jr
Honored Contributor

Re: Migration from HFS to JFS

Stuart,

"find" will work, providing you don't have any special device type files, like sockets. BUT, find with cpio will not be faster than "cp".

live free or die
harry
Live Free or Die