I'm not familiar with file systems and partitions. so can I ask you a question?
I installed CentOS6.10 on the on-prem server before. I didn't think much about partitions at the time, so I chose "Use All Space" to partition it.
I found that the disk capacity became insufficient. I investigated the cause and I noticed that the capacity under "/home" was large as shown below.
-----------------
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_test-lv_root
50G 42G 5.2G 89% /
tmpfs 95G 0 95G 0% /dev/shm
/dev/sda1 477M 98M 355M 22% /boot
/dev/mapper/vg_test-lv_home
1.6T 114M 1.5T 1% /home
-------------
Is it possible to change the capacity under this "/home" to root"/" ?
for your information, the result of "fdisk -l" is as shown below.
--------------
Disk /dev/sda: 1798.9 GB, 1798920208384 bytes
255 heads, 63 sectors/track, 218706 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000a17b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 218707 1756244992 8e Linux LVM
Disk /dev/mapper/vg_test-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_test-lv_swap: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_test-lv_home: 1740.4 GB, 1740409667584 bytes
255 heads, 63 sectors/track, 211592 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
---------
User contributions licensed under CC BY-SA 3.0