有什么方法可以获取创buildlvm快照的date吗?
lvs --version LVM version: 2.02.66(2) (2010-05-20)
lvdisplay和lvs都不提供这些信息。 通过这两个命令的手册页来看,没有任何选项可以给它。 对于这个问题,是否有办法获得任何逻辑卷的创builddate?
以下是我在运行lvdisplay时看到的内容:
~# id; lvdisplay vol0/m0000700.20150108 uid=0(root) gid=0(root) groups=0(root) --- Logical volume --- LV Name /dev/vol0/m0000700.20150108 VG Name vol0 LV UUID ShKkjV-tbL4-SjKv-dfA4-7fft-2Pl1-UKThSs LV Write Access read/write LV snapshot status active destination for /dev/vol0/m0000700 LV Status available # open 0 LV Size 109.05 GiB Current LE 27918 COW-table size 110.00 GiB COW-table LE 28160 Allocated to snapshot 26.12% Snapshot chunk size 4.00 KiB Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:28
有没有办法获得任何逻辑卷的创builddate?
运行命令
sudo lvdisplay
输出将是
--- Logical volume --- LV Path /dev/vg/vol LV Name vol VG Name vg LV UUID 9M1Hxw-X4bN-t7t4-7auG-qOnb-WHh1-WJVcne LV Write Access read/write LV Creation host, time name, 2015-08-20 11:42:33 +0530 LV Status available # open 1 LV Size 18.62 GiB Current LE 4768 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0
你可以看到LV Creation host, time