(CentOS) No rescan of scsi device resize and scsi bus check script error
Roxyrob opened this issue · 2 comments
Hi @mrlesmithjr,
this role does not recognize on CentOS partition/disk resize (fdisk -l does not see if one increase a virtual machine disk size), so this role works only after some manually executed commands:
- Rescan disk/partition
partprobe
or more specific partprobe [/dev/sd[X][Y]]
(requirements: yum install parted
)
an alternative to partprobe is:
echo '1' > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan
- Increase Phisical Virtual Disk containing VG/LV
pvresize /dev/sdX
Can you add these commands to the role ?
Hi @mrlesmithjr,
I reviewed this issue. I found scsi bus checker script error on system not having scsi adapter (e.g. centos 8 aws ec2 using nvme device driver). I tested also on centos with scsi adapter that -s flag on rescan-scsi-bus script fix the disk resize refresh issue originally reported.
I'll create a pull request to fix these 2 issues managed together.