[Vserver] Vserver and Reiserfs3

From: Michael S. Zick <mszick_at_morethan.org>
Date: Sun 18 Dec 2005 - 23:25:15 GMT
Message-Id: <200512181725.15812.mszick@morethan.org>

Group,

A collection of notes on adding vserver to
a system with an existing ReiserFS-3 filesystem.

When configuring your shiny new vps-linux:

Under Filesystems on menuconfig;
enable
ReiserFS extended attributes
and
ReiserFS POSIX access control lists

if not already configured (mine where not).
- - - -

Continue with configuration as described in the
on-line documents.
Build and Install this kernel as described.
- - - -

Build and Install the util-vserver tools as described.
- - - -

If the ReiserFS on your system has ever been used
by a kernel WITHOUT the above two options,
then:
boot the shiny new vps-linux in 'single user' mode
and run:
reiserfsck --clean-attributes <device>
on any devices with a ReiserFS-3 filesystem on them.
- - - -

Edit the lines in your /etc/fstab for the ReiserFS-3
filesystems to include the additional options: "attrs,acl"
- - - -

Reboot now, using your shiny new vps-linux
- - - -

The "testme.sh" script should run without errors.
- - - -

The "testfs.sh" script expects there to be a mkfs.reiserfs, so:
locate where your mkfs.* programs are and where the
mkreiserfs program is hiding - create a sym-link to meet
the expectations of "testfs.sh" - the following works for me:
ln -s /usr/sbin/mkreiserfs /sbin/mkfs.reiserfs
- - - -

Create the test device as a file of zeros that is loop mounted:
# dd bs=1024k count=1024 if=/dev/zero of=1gb.test
# losetup /dev/loop0 ./1gb.test
- - - -

Now the "testfs.sh" script should run, try it:
# ./testfs.sh -D /dev/loop0 -M /mnt
or for only ReiserFS:
# ./testfs.sh -F reiser -D /dev/loop0 -M /mnt
- - - -

Running the test script for the ReiserFS-3 filesystem
only leaves the loop file formated as a ReiserFS-3
and unmounted.
- - - -

Mount it again so you can play with it:
mount -o attrs,acl /dev/loop0 /mnt
- - - -

I worked through the examples in the SuSE in
the administrators guide, found here:
<www.suse.de/~agruen/acl/chapter/fs_acl-en.pdf>

A note on those examples: use a user name and
a group name that already exists on your machine,
not the names in the examples.

Note how a subdirectory inherits the default acl of
its parent. Now you have an alternative or supplement
to hard linking files into all of your vserver contexts.

- - - -
Backing up a filesystem with acl information requires
an "acl aware" program - the "star" program is one such.

- - - -
One more note - you had better find the most recent
versions of all system utilities this involves - I can't give
minimum versions, since I just built the 'most current'
of everything to get this to work.
- - - -

enjoy
Mike

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Dec 18 23:25:42 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 18 Dec 2005 - 23:25:47 GMT by hypermail 2.1.8