On Mar 13, 2012 2:42 PM, "Canek Peláez Valdés" <[email protected]> wrote:
>
> On Tue, Mar 13, 2012 at 3:00 AM, Pandu Poluan <[email protected]> wrote:
> > On Tue, Mar 13, 2012 at 15:15, Canek Peláez Valdés <[email protected]>
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 ?
>
> OK, now I understand. I still think is kinda crazy, but to each its own.
>
> I would definitely use symlinks.
>
> Regards.
> --
> Canek Peláez Valdés
> Posgrado en Ciencia e Ingeniería de la Computación
> Universidad Nacional Autónoma de México
>

For critically performance wise, I think bindmounts would do better because
it is done at kernel level whereas symlinks will have to be resolved on
access, no dobut a kernel maintains cache but I can't really say much about
it because I don't know the code behind either.

--
Nilesh Govindrajan
http://nileshgr.com

Reply via email to