Oracle Linux – Disk resizing is not detected by the OS since rescan commands fail
in Linux
Applies to:
Linux OS – Version Oracle Linux 7, 8 and 9.
Linux x86_64 on Oracle Public Cloud
Symptoms:
Need to resize /dev/sdd
since /u01/app
is 84% full:
# lsblk -f /dev/sdd NAME FSTYPE LABEL UUID MOUNTPOINT sdd └─sdd1 ext4 5420690a-8eae-4b9a-9a36-765b6d5cd9f5 /u01/app
# df -h /dev/sdd1 Filesystem Size Used Avail Use% Mounted on /dev/sdd1 64G 51G 11G 84% /u01/app
Resized /dev/sdd
to 85GB (block volume called test-volume-2 in OCI):
Copied the re-scan commands and ran them:
# sudo dd iflag=direct if=/dev/oracleoci/oraclevd<paste device suffix here> of=/dev/null count=1 -bash: paste: No such file or directory echo "1" | sudo tee /sys/class/block/`readlink /dev/oracleoci/oraclevd<paste device suffix here> | cut -d'/' -f 2`/device/rescan -bash: command substitution: line 1: syntax error near unexpected token `|' -bash: command substitution: line 1: `readlink /dev/oracleoci/oraclevd<paste device suffix here> | cut -d'/' -f 2' tee: /sys/class/block//device/rescan: No such file or directory
0