I am running out of space on a particular filesystem. I know this with the following command df -H
$ sudo df -H Filesystem Size Used Avail Use% Mounted on udev 4.1G 13k 4.1G 1% /dev tmpfs 807M 73M 734M 10% /run /dev/nvme0n1p1 106G 34G 68G 33% / none 4.1k 0 4.1k 0% /sys/fs/cgroup none 5.3M 0 5.3M 0% /run/lock none 4.1G 0 4.1G 0% /run/shm none 105M 0 105M 0% /run/user /dev/mapper/vg1-log 106G 97G 3.3G 97% /mnt/logs /dev/mapper/vg1-data 732G 615G 81G 89% /mnt/data /dev/mapper/vg1-backups 317G 317G 0 100% /mnt/backups My EC2 has the following
Root device /dev/sda1 - EBS ID vol-0fe5#########3b0 Block devices /dev/sda1 /dev/sdb - EBS ID vol-0631########7560 How do I map which volume I should increase the size of ?
I ran the following commands to get any kind of mapping between the EBS ID and the /dev/device but did not find any
$ ls -l /dev/mapper total 0 crw------- 1 root root 10, 236 May 28 14:17 control lrwxrwxrwx 1 root root 7 Jun 9 18:09 vg1-backups -> ../dm-1 lrwxrwxrwx 1 root root 7 Jun 9 18:09 vg1-data -> ../dm-2 lrwxrwxrwx 1 root root 7 Jun 9 18:09 vg1-log -> ../dm-0 lrwxrwxrwx 1 root root 7 Jun 9 18:09 vg1-swap -> ../dm-3 Please share a simple process for me to map them. But I have tried more commands sudo dmsetup ls --tree, sudo df -H,
$ sudo lsblk -o KNAME,TYPE,SIZE,MODEL KNAME TYPE SIZE MODEL nvme0n1 disk 100G Amazon Elastic Block Store nvme0n1p1 part 100G nvme1n1 disk 1.2T Amazon Elastic Block Store dm-0 lvm 100G dm-1 lvm 300G dm-2 lvm 692G dm-3 lvm 8G All point to nvme0n1.