On Friday, September 16, 2011 11:58:11 AM Dale wrote:
> Alan McKinnon wrote:
> > On Fri, 16 Sep 2011 10:47:01 -0500
> > 
> > Dale<rdalek1...@gmail.com>  wrote:
> >> Mick wrote:
> >>> You will need to patch your kernel (in your sdb test OS) and then
> >>> you will also need to make a reiser4 fs on your sdb partition(s)
> >>> (for that you'll need to emerge sys-fs/reiser4progs). If you want
> >>> to be able to mount reiser4 from within your sda OS, you will need
> >>> of course to patch your current kernel to start with, alternatively
> >>> use a LiveCD like sysrescue which comes already patched. For
> >>> patches look in here:
> >>> http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4
> >>> -for-2.6/ The way I do what you are trying to do is start with the
> >>> existing OS on sda, partition sdb, tar contents of sda partitions
> >>> into
> >>> corresponding sdb partitions and then modify fstab. Depending on
> >>> what you want to test you may not need grub installed into sdb's
> >>> MBR and you may not need a /boot in sdb. As long as you are not
> >>> going to remove sda from the machine you should be able to add a
> >>> couple of lines in the original grub.conf to select to
> >>> boot /dev/sdb, while using sda's MBR and /boot partition. HTH.
> >> 
> >> I could have swore reiserfs4 was in the kernel.  Sure enough, it
> >> ain't. I'll wait then.  I don't want to take the chance that
> >> something goes belly up then not have a bootable way to fix things.
> > 
> > reiser4 was never in the kernel and the odds of it ever making it there
> > were about zero (coding style issues and many other things that pissed
> > Linux off). And that was in the days when Hans was physically located
> > in a place where he was allowed to code.
> > 
> > For all practical purposes Reiser4 is dead. I haven't heard a peep out
> > of anyone claiming to maintain it for a few years now.
> 
> New question.  I'm playing with LVM.  What is the best file system to
> use that with?  I know LVM can shrink and grow so a file system should
> be able to do the same, online would be great but not required.  That
> would be good for a / partition but not needed for the rest.  I can
> always go to single user and resize things.

LVM is great, when installing a large package, downloading large files or 
finding out I need a lot more diskspace for the VMs I am running to do some 
testing, I can simply increase the LV (LVM-partition) and then increase the 
filesystem to match. All this while the filesystem is being written to.

> I don't want XFS tho.  I used it before and it was a total disaster.  I
> have a UPS but I also recall having to pull the plug when hal showed up
> too.  No need for a repeat.

I know from personal experience that the following support online resizing: 
ext2/3, reiserfs (v3), XFS, JFS.
I would expect ext4 to also support that.

One thing to remember, the online resizing only allows growing of the 
filesystem. For shrinking, you still need to umount it first.
Also, XFS and JFS don't support shrinking at all.

For testing, I would suggest starting with ext3 and/or reiserfs. Both work.
I haven't tried ext4 yet, maybe someone who runs that on top of LVM can 
comment?

> Hmm, maybe I am thinking of ext4?  Life's confusing.  :/

I think you might be thinking of ext4.

Btw, a brief description on how resizing would work.
When growing the filesystem:
1) lvextend .....
2) "resizefs" (different filesystems, different commands)
This will work for all filesystems supporting online resizing. (I know of one 
that actually only allows growing when it IS mounted)

When shrinking a filesystem:
1) umount
2) "resizefs" to less then what you want to shrink it to
3) lvreduce ....
4) "resizefs"

The "resizefs" will default to growing to the full extend of the partition/LV 
it resides on.

--
Joost

PS. With LVM, I find it easier to make the partitions smaller to start with 
and leave un-assigned space in the VG for the LVs to grow.

Reply via email to