在这种情况下如何设置LVM?

http://prntscr.com/bhyu4k

我有一个看起来像这样的设置,我需要在/ home文件夹下有sda3和sdb,都是一样的。 我不在乎目前的/ home目录的内容,所有的东西都可以被删除。

1) LVM work has never been done on this system. sda, sda1, sda2, (sda3), sda4 can be left as is before going to the further steps? They are set up the standard way. 2) There is no need to partition the sda3 as 8e (the LVM type)? 3) Do not create a parition on sdb, or maybe create a partition of the LVM type (8e)? 4) pvcreate /dev/sdb - create a physical volume 5) pvcreate /dev/sda2 - create physical volume 6) vgcreate volgrp1 /dev/sdb /dev/sda2 - create volume group named volgrp1 7) lvcreate volgrp1 (can define size, name and probably other things, but this is the most basic form, default naming convention will be used) 8) create an ext4 filesystem on it, just like with regular partitions 9) mkdir /home 10) mount lvol1 (default name given by the lvcreate command) on it 11) So the (sda), sda1, sda2, sda4 will be non-lvm and thats ok? 

这是正确的,还是我错过了什么或做错了什么?

谢谢。

你应该做一个复制粘贴,而不是一个截图:)这是它的样子:

 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8TO disk |-sda1 8:1 0 1004.5KO part |-sda2 8:2 0 19.5GO part / |-sda3 8:3 0 1.8TO part /home \-sda4 8:4 0 15.6GO part [SWAP] sdb 8:16 0 1.8TO disk 
  • 你需要卸载/home ,你不需要mkdir /home 。 您还需要以root身份login或以单用户模式启动,以避免卸载/home出现问题。
  • 一个你已经卸载/ home,你可以进行到第2步,即标记sda3为8e LVM。 我不太积极,你需要这样做,但你可能确实需要。
  • 在第3步中,不需要创build分区。 pvcreate将创build需要的东西(如果已经有东西的话可能会抱怨)
  • 在第5步和第6步,你写的sda2但你当然是指你的/home sda3 。 搞砸了,这将把你的系统搞乱,从头开始重新安装会更容易。 这自然使我想到了下一点。 。 。
  • 如果您有任何关心的数据,请务必先进行备份! 最轻微的错误(你或我的)会使系统崩溃!

否则,我认为你看起来事情正确。 将sda1,sda2和sda4保持为非LVM是绝对不成问题的。