|
发表于 2003-12-14 11:50:48
|
显示全部楼层
我想兄弟們用這方法最合適
最初由 deconvolution 发表
werix : thanks very much for your comments. I would like to present my case to explain why choose LVM.
Currenly my computer has two basic harddisks:80G and 120G. The 120G one is as my main harddisk for daily purpose. 80G is for backing up and future purpose.
My current partition table looks like this: (for 120G)
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Primary Linux XFS 1044.62
hda2 Boot Primary NTFS 6308.79
hda3 Primary Linux swap 1052.84
hda5 Logical W95 FAT32 (LBA) 31568.63
hda6 Logical Linux LVM 16919.41
hda7 Logical W95 FAT32 (LBA) 31568.63
hda8 Logical W95 FAT32 (LBA) 31568.63
hda5 contains my personal data, hda7 and hda8 contain my music.
hda1 is my root partition, my /home /usr and /var are together in hda5 by applying LVM.
There are many reasons I did the partition like this. In terms of LVM, in the future when I want more space for my Debian box, I just simple remove the hda7(even hda8) partiton, change to PVs whatever the size and enlarge the existing /var /home or /usr. My linux system wont be affected at all and I wont need to restart my computer! I dont need to take care the partition hole, re-partition problem.. etc...
I dont locate my root directory to an LV since: 1) Only about 100MB-200MB diskspace(depends on how many kernels you installed) is usually used for a typical linux root without /tmp /home /var and /usr . Its size wont dramatically rise too much if you are not a kernel hacker. I am not able to see any LVM advantages there. 2) There are many problems involved with LV root. Once your system cannot boot due to system faults, LV root is much more difficult to restore compared to the conventional approach. 3)To start such the system built on a LV root, you still need an external /boot partition for kernel and LVM actived initrd*. From my point of view, the difference between basic boot partition and small root partition are trivial in a LVM based system. Therefore, it is pointless to do this for most people , IMHO. I couldnt understand the Gentoo CEO 's motivations of his LV root plan, described in his article at IBM developer work.
*this initrd size might not be the default 4096k when your LVs size are very large: http://lists.sistina.com/piperma ... -March/011092.html. |
|