Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the past it was not possible to shrink a JFS. Has that changed in the meantime, is somebody working on it, is it planned ...?

How would it be possible to replace JFS with another FS without having to backup and restore the files?

share|improve this question
up vote 2 down vote accepted

It's not possible to shrink a JFS file system using the standard tools. Compunix provides some tools that claim to be able to shrink JFS filesystems, but there's no widespread account of their reliability or success rates.

It's generally not possible to switch filesystems in-place, unless you're changing versions of the same filesystem (ext2->ext3->ext4) or converting FAT to NTFS on certain Windows systems.

In theory, if your JFS file system doesn't take up the whole disk, and you're very lucky about where the FS is placed on the disk, you could copy files to another partition, then delete the JFS partition and grow the other partition and its filesystem (be sure to pick something that can grow, like ReiserFS or XFS).

share|improve this answer
I think the idea about creating a second partition, dumping the files and then growing the new partition is a good bet. I've done this myself when dual booting Windows and Linux. I had to grow my Linux partition (XFS) but it was at the end of the drive. So I shrank my Windows partition, created a second XFS partition between the two existing partitions, dumped the files over and grew the new partition back over the old one. Worked great. And was very easy. – baudtack May 22 '09 at 23:37

According to this post it's only possible to shrink JFS2.

Sadly, I don't think you can migrate from JFS to JFS2 online.

share|improve this answer

If you have backups in place, you could give it a shot and try convertfs - it does something similar to the suggestion from "yesterday", but in small steps and automated. (But then again, if you have backups - isn't it easier to just recreate the fs and restore? :)

In theory it should work. (I have actually used it with success...once)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.