나는 마운트 지점이 포함된 시스템을 물려받았습니다 /var/lib/couchdb-backups
. LVM을 사용하여 관리되는 볼륨인 것 같습니다. 디스크가 /dev/mapper/*
.
그러나 시스템에는 lvm 볼륨 관리를 위한 도구가 설치되어 있지 않습니다. 삭제될 확률은 희박합니다.
- 광전지 디스플레이
- PV
- 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