LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1594|回复: 5

Logical Volume Manager (LVM)

[复制链接]
发表于 2003-4-23 18:09:02 | 显示全部楼层 |阅读模式
那位高手帮忙解释一下下面一段是什么意思啊Multiple Partitions with One Filesystem
The Logical Volume Manager (LVM) enables you to set up one filesystem on
multiple partitions. For example, assume you’re adding more users and are running
out of room in your /home directory. You don’t have any unpartitioned space available
on your current hard disk.
With the LVM, all you need to do is add another hard disk, configure some
partitions, back up /home, and use the LVM tools to combine the new partition and
the one used by /home into a volume set. You may need to install the LVMrpm. Once it
is installed, the steps are fairly straightforward:
1. Add a new hard disk.
2. Create new partitions. Assign the Linux LVM filesystem to one or more
of these partitions. This can be easily done with the Linux fdisk utility.
3. Back up /home. Assign the LVM filesystem to that partition.
4. Scan for Linux LVM filesystems with the /sbin/vgscan utility, to create
a database for other LVM commands.
5. Create volumes for the set with the /sbin/pvcreate /dev/partition command.
6. Add the desired volumes to a specific volume group with the /sbin/vgcreate
groupname /dev/partition1 /dev/partition2 … command.
7. Finally, you can create a logical volume. Use the /sbin/lvcreate -L xyM -n
volname groupname command, where xy is the size of the volume in MB,
and the groupname is the volume group name from the previous step.
8. Now you can format the logical volume with the mkfs command for the
desired filesystem (usually ext2 or ext3), using the device name returned
by the lvcreate command.
As of this writing, the LVM code is new to Red Hat and may not be fully
supported. Before using LVM on Red Hat Linux, consult with Red Hat,
possibly through one of the Red Hat sponsored mailing lists.
A detailed discussion of this procedure is available in the LVM-HOWTO, available
from the Linux Documentation Project.
虽然每个单词都认识
但是还是不太明白,请指教
谢谢
 楼主| 发表于 2003-4-24 12:23:58 | 显示全部楼层
帮帮忙啊
发表于 2003-4-24 15:00:49 | 显示全部楼层
这个我也不懂,不要急,我们先找点资料。
发表于 2003-4-24 15:44:49 | 显示全部楼层
首先我申明我不太懂LINUX,刚学了一个月,不过懂几个英文,文采很烂
翻译如下:
拥有多分区的文件系统,LVM能够令你把一个文件系统建立在多分区上.举例来说,假如你想增加更多用户,然而你发现你的/home 的空间已经快用光了,并且在该块硬盘上没有任何可以使用的未分区的空间.
这个时候,通过LVM的工具,你所需要做的就是再挂一块硬盘,配置几个分区,
back up(不太懂,估计是建立,就是跟原先一样)/Home
,使用LVM工具把新的分区(就是挂了/home的分区)和先前的/home分区并到一个卷(volume),你可能需要安装LVM rpm(redhat),一旦安装了,下面的步骤相当的
straightforward:
1,add a new hard disk
2.建立新的分区,assign the LINUX lvm filesystme to one or more of these partitions.利用Linux FDISK工具可以设置.
3.备份/home,挂装lvm filesystem
4.用/sbin/vgscan 来scan linux LVM filesystems
,来为其他lvm命令建立一个数据库(不知所云)
5.create volumes for the set with the /sbin /pvcreate /dev/partition command
6.
7.8.
很简单嘛
你照着操练一下就肯定OK
国文不好,翻译不好
发表于 2003-4-24 16:11:06 | 显示全部楼层
刚刚看了一会儿书:补充
1,创建logical volume
找个新的硬盘,分区,挂装LVM文件系统(或者是可以识别的系统).(如果添加物理分区,它还包括设置正确的分区类型,以及运行 pvcreate 命令。
)
2.创建卷组
就是把建立的新的logical volume add(del) ,
3,然后可以挂装文件系统(EXT2,ReiserFS)使用了
 楼主| 发表于 2003-4-25 00:15:43 | 显示全部楼层
谢谢大家的帮助
我又找了一下
发现这个
也希望对大家有帮助
看起来这个软件还比较有用呢
http://www.linuxeden.com/edu/doctext.php?docid=2901
http://www.sistina.com/products_lvm.htm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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