我继承了一个包含挂载点的系统/var/lib/couchdb-backups
。我认为这是使用 LVM 管理的卷。因为磁盘位于/dev/mapper/*
.
然而系统上没有安装用于管理lvm卷的工具。它们被删除的可能性很小。
- 光伏显示
- 光伏发电
- lv显示
- 左扫描
- 等等....
fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes
181 heads, 40 sectors/track, 5793 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeb5e1fcc
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 41941319 20969636 83 Linux
Disk /dev/vdb: 1342.2 GB, 1342177280000 bytes
16 heads, 63 sectors/track, 2600634 cylinders, total 2621440000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x08040000
Disk /dev/vdb doesn't contain a valid partition table
Disk /dev/mapper/couchdb-backups: 1342.2 GB, 1342175182848 bytes
255 heads, 63 sectors/track, 163176 cylinders, total 2621435904 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/couchdb-backups doesn't contain a valid partition table
cat /etc/fstab
/dev/vda1 / ext4 rw,relatime,data=ordered 0 1
/swapfile none swap defaults 0 0
none /run/shm tmpfs rw,noexec,nosuid,nodev,relatime 0 0
/dev/mapper/couchdb-backups /var/lib/couchdb ext4 noauto 0 0
如何验证这是 LVM 卷?除此之外还有
其他工具可以用来创建它吗?pvdisplay
pvs
更新
感谢 Viveks 的评论,我发现我错误地认为它是 LVM 磁盘,而实际上它是加密磁盘。
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 364K 0 rom
vda 253:0 0 20G 0 disk
└─vda1 253:1 0 20G 0 part /
vdb 253:16 0 1.2T 0 disk
└─couchdb-backups (dm-0) 252:0 0 1.2T 0 crypt /var/lib/couchdb
答案1
lsblk
应该有助于显示卷是否为lvm!
前任:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 200M 0 part
├─sda2 8:2 0 1G 0 part
├─sda3 8:3 0 464.6G 0 part
└─md126 9:126 0 465.8G 0 raid1
├─md126p1 259:0 0 200M 0 md /boot/efi
├─md126p2 259:1 0 1G 0 md /boot
└─md126p3 259:2 0 464.6G 0 md
├─rhel-root 253:0 0 50G 0 lvm /
├─rhel-swap 253:1 0 15.7G 0 lvm [SWAP]
└─rhel-home 253:2 0 398.9G 0 lvm /home
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 200M 0 part
├─sdb2 8:18 0 1G 0 part
├─sdb3 8:19 0 464.6G 0 part
└─md126 9:126 0 465.8G 0 raid1
├─md126p1 259:0 0 200M 0 md /boot/efi
├─md126p2 259:1 0 1G 0 md /boot
└─md126p3 259:2 0 464.6G 0 md
├─rhel-root 253:0 0 50G 0 lvm /
├─rhel-swap 253:1 0 15.7G 0 lvm [SWAP]
└─rhel-home 253:2 0 398.9G 0 lvm /home