Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux – Disk resizing is not detected by the OS since rescan commands fail

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!