I made vfs = jfs2 and options = rw, possibly a couple of other changes
too.
Here's an excerpt from my edited /etc/filesystems file.
/:
dev = /dev/hd4
vfs = jfs2
log = /dev/hd8
mount = automatic
check = false
type = bootfs
vol = root
free = true
account = true
options = rw
/home:
dev = /dev/hd1
vfs = jfs2
log = /dev/hd8
mount = true
check = true
free = false
account = true
options = rw
/usr:
dev = /dev/hd2
vfs = jfs2
log = /dev/hd8
mount = automatic
check = false
type = bootfs
free = false
account = true
options = rw
After this, I took a mksysb (without the -i flag of course), restored
it and saw no problems.
Thanks for the suggestions.
Iain.
Full procedure for converting a system from JFS to JFS2
=======================================================
If you have an existing installed system and want to convert the
filesystems from JFS to JFS2, there is no way to directly convert them
(at least, not that I know of right now). You need to back up the
files, delete the old filesystem, create a new one and restore the
files. This is fine for data or apps volume groups but won't work
for filesystems like /tmp, /var or /usr.
You could do an installation from scratch and then get the old files
across, but that might be too much of a pain.
This procedure allows you to take a mksysb of your JFS system and
restore the mksysb such that the system comes up as JFS2. Its worked
when I've tried it but no guarantees or anything like that of course.
If it doesn't work for you, sorry.
1. Create an /image.data file
# mkszfile
2. Edit the /image.data file to create JFS2 filesystems
I edited each of the fsdata stanzas converting
fs_data:
FS_NAME= /opt
FS_SIZE= 131072
FS_MIN_SIZE= 12320
FS_LV= /dev/hd10opt
FS_FS= 512
FS_NBPI= 4096
FS_COMPRESS= no
FS_BF= false
FS_AGSIZE= 8
to
fs_data:
FS_NAME= /opt
FS_SIZE= 131072
FS_MIN_SIZE= 12320
FS_LV= /dev/hd10opt
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
I edited each jfs lv, changing "TYPE = jfs" to "TYPE = jfs2".
I also edited the jfslog to be TYPE = jfs2log.
3. Edit /etc/filesystems and for each jfs filesystem in rootvg, change
"jfs" to "jfs2" in the vfs line. Check that each filesystem has
options = rw.
4. Take the mksysb, but without the -i flag (since that will create a
new /image.data file, overwriting your amended one).
5. Restore the mksysb as normal.
Iain.
johann