Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert jfs to jfs2 (non-rootvg) 1

Status
Not open for further replies.

spamly

MIS
Apr 1, 2004
447
0
0
US
I'm looking for a way to convert several filesystems from jfs to jfs2. Are there any ways to automate this? This isn't the root volume group, so I'd imagine that this has gotta be fairly simple. I've got the application down and I was planning on creating new jfs2 filesystems and just copying the data over, but I just wanted to check to see if there is a better way. What do you think?
 
I didn't get any immediate posts, so I converted it my own way. Here are the rough steps that I used. I'm use mock filesystem names here.

-Create a temporary filesystem (/temp-spot)
smit fs
...
- Copy data from /jfs-filesystem to new filesystem
cd /jfs-filesystem; tar -cvpf - * | (cd /temp-spot; tar xvpf -)
- Umount /jfs-filesystem
cd /; umount /jfs-filesystem
- Remove /jfs-filesystem
smit fs
...
- Create jfs2 filesystem the same size using the same mount point
smit lv I like to give my logical volumes names other than the default
smit fs
...
- Mount up the new filesystem
mount /jfs2-filesystem
- Copy data back to new jfs2 filesystem
cd /temp-spot; tar -cvpf - * | (cd /jfs2-filesystem; tar xvpf -)
- Purge data from /temp-spot
rm -r /temp-spot/*

Seems to have worked well. I converted 10 jfs filesystems this way.
 
A backup and restore is a conversion?

I was hoping for a way to convert the filesystems on the fly, but it didn't work out that way. You are right though, this ended up being essentially just a backup and restore.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top