如果我有一个卷组跨越多个PV,当我创build一个新的LV,我可以指定它存储在哪个PV? 快照怎么样?
我在设想一个由SSD和更大硬盘组成的卷组。 我希望我的root和home LV驻留在SSD上,但是使用HDD来获得更多的存储和瞬态快照。
看起来这可以通过从VG中的一个磁盘开始,创build主分区到其范围(作为线性types),然后添加第二个磁盘并将VG扩展到它。 我想知道是否有一个实际支持的方式来做到这一点。 在lvcreate手册页中看不到任何东西。
从官方的LVM文档:
To create a logical volume to be allocated from a specific physical volume in the volume group, specify the physical volume or volumes at the end at the lvcreate command line. The following command creates a logical volume named testlv in volume group testvg allocated from the physical volume /dev/sdg1, lvcreate -L 1500 -ntestlv testvg /dev/sdg1