On Tue, 13 Mar 2012 16:00:08 +0700
Pandu Poluan <pa...@poluan.info> wrote:

> On Tue, Mar 13, 2012 at 15:15, Canek Peláez Valdés <can...@gmail.com>
> wrote:
> >
> > You are; but in an incredible complicated and convulted way.
> >
> > If I'm understanding you, you want:
> >
> > fstab:
> > /dev/XX   /mnt/p1   ...
> > /dev/YY   /mnt/p2   ...
> >
> > and then
> >
> > /usr/portage -> /mnt/p1
> > /usr/src -> /mnt/p2
> >
> > (or using bindmounting, whatever).
> >
> > This makes no sense at all (at least not to me), when you can
> > simply:
> >
> > fstab:
> > /dev/XX   /usr/portage   ...
> > /dev/YY   /usr/src   ...
> >
> > and get the same split filesystem, but without all the complication
> > you are proposing.
> >
> > Unless there is something I don't understand, in which case I'm not
> > following your reasoning.
> >
> 
> The point is: It's not just 2 (two) directories, but several of them,
> and I just can't see myself creating a partition (or an LV) for each
> and everyone of them.
> 
> So, here's my thoughts:
> 
> There are 2 filesystems that are suitable for different purposes:
> * reiserfs = for space efficiency (w/o notail option) and/or no inode#
> limitation
> * ext4 = for general purpose
> 
> The directories I'm going to split:
> 
> /usr/share ==> ext4
> /usr/portage ==> reiserfs
> /usr/portage/packages ==> ext4
> /usr/portage/distfiles ==> ext4
> /usr/src ==> reiserfs
> /var/cache/rtorrent (don't ask) ==> reiserfs
> /var/spool/postfix ==> ext4
> /var/lib/postgresql ==> ext4
> 
> Now, I create 2 partitions:
> 
> /dev/sdc1 (reiserfs) --> /mnt/Persistent1
> /dev/sdd1 (ext4) --> /mnt/Persistent2
> 
> Then I create subdirectories:
> 
> /mnt/Persistent1/portage
> /mnt/Persistent1/src
> /mnt/Persistent1/rtorrent
> 
> /mnt/Persistent2/share
> /mnt/Persistent2/packages
> /mnt/Persistent2/distfiles
> /mnt/Persistent2/postfix
> /mnt/Persistent2/postgresql
> 
> Finally, I need to redirect the directories-I-want-to-split to the
> above subdirs under /mnt/Persistent[12]
> 
> SO.
> 
> mount -o bind ... or ln -s ?
> 
> Rgds,

Ah, now I see. You have many sub-directories of /usr that you don't
want to be part of the same volume as /usr. This is quite valid, I can
think of several lines of reasoning:

- you'd rather not have the pain of dealing with many smaller
  filesystems even if LVM is available.
- you just want a large storage area for "stuffs", and don't feel like
  finding out how much space each one needs
- you'd rather keep the bulk of /usr static and don't growing much

So instead make two big mount points in /mnt, one each for the
destination filesystem types you are interested in and link the
subdirectories there to the right place in /usr.

You want bindmounts for that.

Someone else here (I forget whom) did the same thing with his home
directories and /var. It's a valid need, but rare. And nobody else
understood his reasoning for a long time either :-)


OT: I can't wait for the day when ZFS- and btrfs-like filesystems are
the norm and we can dispense with all this physical disk, partitions,
LVM, volumes, file systems and mounting nonsense.

I want this model: I have X bytes of storage, I would like Y bytes to
be mounted here with these charactertics, and Z bytes mounted there
with those characteristics. Kernel, make it so, thanksverymuch and
have a nice day

-- 
Alan McKinnnon
alan.mckin...@gmail.com


Reply via email to