|
|
在手册中,有这么一段:
复制代码
1 上文提到对卷组进行备份,但根据lvcreate的man手册里面所叙述的,snapshot应该是对逻辑卷(LV)进行备份的。
2 关于snapshot的大小的疑问,man手册里面说是原LV的15%-20%,这样是不是有问题,既然snapshot是某一时刻LV的精确备份,那么大小不应该小于原LV啊,即使snapshot可以通过lvextend扩展。
这是lvcreate的man手册中摘录的一段。
-s, --snapshot
Create a snapshot logical volume (or snapshot) for an existing, so called original logical volume
(ororigin). Snapshots provide a ’frozen image’ of the contents of the origin while the origin can still be updated. They enable consistent backups and online recovery of removed/overwritten data/files. The snapshot does not need the same amount of storage the origin has. In a typical scenario, 15‐20% might be enough. In case the snapshot runs out of storage, use lvextend(8) to grow it. Shrinking a snapshot is supported by lvreduce(8) as well. Run lvdisplay(8) on the snapshot in order to check how much data is allocated to it.
一点愚见,还望大家指正! |
|