Lets say we have two physical drives, sda and sdb. Both are 100 Megs. I put them into VolumeGroup1 and create one 200 meg LogicalVolume1.
What would happen if I create a 150 meg file? Would 100 megs physically be on sda and 50 on sdb?
正确(假设在创建文件之前文件系统为空).
If so, what tells the OS that a piece of the file is on one drive, and another piece is on the other?
LVM告诉操作系统有一个200MB的磁盘.内核的LVM部分(它分为两部分,用户空间管理工具和内核驱动程序)然后将操作系统看到的内容映射到磁盘上的物理位置/块.
What about drive failure? Assuming no RAID, if sdb fails, will all the data on sda be lost? Is there anyway to control what files are on what physical drives?
是的,请考虑数据丢失.
如果创建较小的逻辑卷,则可以使用pvmove命令将它们从磁盘移动到磁盘.
How do you generally manage LVM? Do you create one or two large Volume Groups then make partitions as it makes sense? Any other tips?
我倾向于创建大型卷组,然后根据需要创建逻辑卷.无需完全分配卷组中的所有空间;在需要时分配它.增加逻辑卷的大小很容易,而且几乎所有现代文件系统都可以轻松扩展.
2105

被折叠的 条评论
为什么被折叠?



