1 |
On Tue, Mar 13, 2012 at 15:15, Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
> |
3 |
> You are; but in an incredible complicated and convulted way. |
4 |
> |
5 |
> If I'm understanding you, you want: |
6 |
> |
7 |
> fstab: |
8 |
> /dev/XX /mnt/p1 ... |
9 |
> /dev/YY /mnt/p2 ... |
10 |
> |
11 |
> and then |
12 |
> |
13 |
> /usr/portage -> /mnt/p1 |
14 |
> /usr/src -> /mnt/p2 |
15 |
> |
16 |
> (or using bindmounting, whatever). |
17 |
> |
18 |
> This makes no sense at all (at least not to me), when you can simply: |
19 |
> |
20 |
> fstab: |
21 |
> /dev/XX /usr/portage ... |
22 |
> /dev/YY /usr/src ... |
23 |
> |
24 |
> and get the same split filesystem, but without all the complication |
25 |
> you are proposing. |
26 |
> |
27 |
> Unless there is something I don't understand, in which case I'm not |
28 |
> following your reasoning. |
29 |
> |
30 |
|
31 |
The point is: It's not just 2 (two) directories, but several of them, |
32 |
and I just can't see myself creating a partition (or an LV) for each |
33 |
and everyone of them. |
34 |
|
35 |
So, here's my thoughts: |
36 |
|
37 |
There are 2 filesystems that are suitable for different purposes: |
38 |
* reiserfs = for space efficiency (w/o notail option) and/or no inode# |
39 |
limitation |
40 |
* ext4 = for general purpose |
41 |
|
42 |
The directories I'm going to split: |
43 |
|
44 |
/usr/share ==> ext4 |
45 |
/usr/portage ==> reiserfs |
46 |
/usr/portage/packages ==> ext4 |
47 |
/usr/portage/distfiles ==> ext4 |
48 |
/usr/src ==> reiserfs |
49 |
/var/cache/rtorrent (don't ask) ==> reiserfs |
50 |
/var/spool/postfix ==> ext4 |
51 |
/var/lib/postgresql ==> ext4 |
52 |
|
53 |
Now, I create 2 partitions: |
54 |
|
55 |
/dev/sdc1 (reiserfs) --> /mnt/Persistent1 |
56 |
/dev/sdd1 (ext4) --> /mnt/Persistent2 |
57 |
|
58 |
Then I create subdirectories: |
59 |
|
60 |
/mnt/Persistent1/portage |
61 |
/mnt/Persistent1/src |
62 |
/mnt/Persistent1/rtorrent |
63 |
|
64 |
/mnt/Persistent2/share |
65 |
/mnt/Persistent2/packages |
66 |
/mnt/Persistent2/distfiles |
67 |
/mnt/Persistent2/postfix |
68 |
/mnt/Persistent2/postgresql |
69 |
|
70 |
Finally, I need to redirect the directories-I-want-to-split to the |
71 |
above subdirs under /mnt/Persistent[12] |
72 |
|
73 |
SO. |
74 |
|
75 |
mount -o bind ... or ln -s ? |
76 |
|
77 |
Rgds, |
78 |
-- |
79 |
FdS Pandu E Poluan |
80 |
~ IT Optimizer ~ |
81 |
|
82 |
• LOPSA Member #15248 |
83 |
• Blog : http://pepoluan.tumblr.com |
84 |
• Linked-In : http://id.linkedin.com/in/pepoluan |