Excuse me,
I'm trying to enlarge space for a directory in a RHEL 7.5 host and the partition is not managed by LVM.
This host is virtual machine and I would like to increase size for /home/ext to use, which is located on device sdc. Device sdc is an independent VM disk and I'm planning to increase size for it directly, and eventually assign all the partition space sdc1 to directory /home/ext without reboot.
The output from "lsblk" and "df -Th /dev/sdc1" are shown below:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 201G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 200G 0 part
├─host-root 253:0 0 168G 0 lvm /
└─host-swap 253:1 0 32G 0 lvm [SWAP]
sdb 8:16 0 1000G 0 disk
└─sdb1 8:17 0 1000G 0 part /home
sdc 8:32 0 2T 0 disk
└─sdc1 8:33 0 2T 0 part /home/ext
sdd 8:48 0 2T 0 disk
└─sdd1 8:49 0 2T 0 part /home/ext2
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdc1 xfs 2.0T 1.8T 206G 90% /home/ext
I did googling and found a quick answer here, which uses gdisk/growpart.
However, not sure whether this size-increasing behavior will affect the current data read/write on this directory(partition).
Does anyone know whether such kind of task will impact on data and filesystem, such as crash?
forgive me, I know only a little to linux..