LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: werix

LVM也疯狂 - 没条件兄弟们的福音

[复制链接]
发表于 2003-12-14 11:44:07 | 显示全部楼层
那會不會製造額外的碎片呢?
发表于 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.
 楼主| 发表于 2003-12-15 17:06:59 | 显示全部楼层
有人实验了吗,我自己顶一下
发表于 2003-12-15 20:34:26 | 显示全部楼层
还没来得及下手,我也顶一下
 楼主| 发表于 2003-12-16 05:53:08 | 显示全部楼层
我刚刚看到一篇中文LVM的全面介绍,非常详细:
http://www.linuxaid.com.cn/articles/9/5/952926342.shtml
发表于 2003-12-16 14:49:28 | 显示全部楼层
这两天准备再装个debian用一下, 以前的盘改装bsd了, 试试!
发表于 2004-11-15 10:58:56 | 显示全部楼层
为什么会出现类似这样的警告:
vgscan -- WARNING: This program does not do a VGDA backup of your volume group.

最后在挂载文件系统时又出错,要指定文件类型
mount /dev/loop0 /mnt
指定文件类型后又说错误的文件类型
mount -t ext3 /dev/loop0 /mnt

说明,都已经格式化成ext3了
发表于 2004-11-16 17:22:15 | 显示全部楼层
再顶一下,每人帮我解决吗?
发表于 2004-11-17 21:59:49 | 显示全部楼层
单位的IBM服务器6块scsi硬盘用raid5做在一起,然后在安装操作系统

如果作成LVM,难道就不作raid5了?

我个人人为LVM是软件方式实现的raid不知道对不对

而IBM的服务器上,如果我空间不够了,我就买新硬盘插进去,然后用独立于操作系统的raid管理软件把新硬盘加入raid5,就ok了,这样何必要用LVM呢?
发表于 2004-12-1 02:19:29 | 显示全部楼层
LVM不是raid,LVM只是动态管理
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表