Error:-
attempt to resize /dev/xvda failed. sfdisk output below: | | Disk /dev/xvda: 104433 cylinders, 255 heads, 63 sectors/track | Old situation: | Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 | | Device Boot Start End #cyls #blocks Id System | /dev/xvda1 * 1 78324 78324 629137530 83 Linux | /dev/xvda2 0 - 0 0 0 Empty | /dev/xvda3 0 - 0 0 0 Empty | /dev/xvda4 0 - 0 0 0 Empty | New situation: | Units = sectors of 512 bytes, counting from 0 | | Device Boot Start End #sectors Id System | /dev/xvda1 * 16065 1677716144 1677700080 83 Linux | /dev/xvda2 0 - 0 0 Empty | /dev/xvda3 0 - 0 0 Empty | /dev/xvda4 0 - 0 0 Empty | Successfully wrote the new partition table | | Re-reading the partition table ... | BLKRRPART: Device or resource busy | The command to re-read the partition table failed. | Run partprobe(8), kpartx(8) or reboot your system now, | before using mkfs | If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) | to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 | (See fdisk(8).) FAILED: failed to resize ***** WARNING: Resize failed, attempting to revert ****** Re-reading the partition table ... BLKRRPART: Device or resource busy The command to re-read the partition table failed. Run partprobe(8), kpartx(8) or reboot your system now, before using mkfs ***** Appears to have gone OK ****
Resolution:-
# growpart /dev/xvda 1
If you are wondering you doing something wrong so there is absolutely nothing wrong with above command.
As you see there was no issue in creation of the new partition table it was successful. However I suspected that before completing it started to reread again due to which the disk was not increasing. I did tried multiple solutions and got some results for sfdisk however in my case the growpart was latest one only still the issue was coming.
At this point you will need to restart the server to fix this issue. If its the production server than you might have to take appropriate approvals as there is no other way after you restart the server the partition size should have increased at that time itself.
0 comments:
Post a Comment