我有两个硬盘,我要建立一个备份系统。现在我想知道哪种解决方案是最好的。
在这两种情况下。如果其中一个硬盘损坏了会发生什么。如果我按照第一选择构建系统,至少我可以打开其中一个磁盘,而且卷组可能会包含一些文件,对吗?
但是如果我根据第二种选择来配置它,如果其中一个硬盘损坏了,我甚至可以打开逻辑卷的加密吗?
发布于 2018-07-12 10:06:14
如果是我的话,我会和你一起去。
如果你用2和松开一个驱动器,你的所有数据将丢失。
对于1,仍然可以使用lvm部分选项。
-P, --partial
When set, the tools will do their best to provide access to
Volume Groups that are only partially available
(one or more Physical Volumes belonging to the Volume Group are
missing from the system). Where part of a logical volume is missing,
/dev/ioerror will be substituted, and you could use dmsetup(8)
to set this up to return I/O errors when accessed, or create it
as a large block device of nulls. Metadata may not be changed
with this option. To insert a replacement Physical Volume of
the same or large size use pvcreate -u to set the uuid to
match the original followed by vgcfgrestore(8).在这两种情况下。如果其中一个硬盘损坏了会发生什么。如果我按照第一选择构建系统,至少我可以打开其中一个磁盘,而且卷组可能会包含一些文件,对吗?
是的,它将包含一些文件和部分丢失的文件。在这种情况下,可以使用部分选项恢复一些文件(见上文)。
但是如果我根据第二种选择来配置它,如果其中一个硬盘损坏了,我甚至可以打开逻辑卷的加密吗?
不,您将无法打开逻辑卷(我的意思是,如果您有时间,一切都是可能的,代价是数据丢失)
1的另一个优点是,如果您需要更多的空间,那么添加新的物理卷就更容易了。
https://serverfault.com/questions/920585
复制相似问题