Currently stuck trying to partition disk.
Getting some errors I don't understand. Might be in over my head. My question is at bottom.
The disk has been resized using GCP/Compute Engine Disk manager. from 80 to 200
While trying to partition the space using this guide, I hit a snag that's freaking me out eg;
[brentfm@whm ~]$ df -h /dev/sdb
df: â/dev/sdbâ: No such file or directory
[brentfm@whm ~]$ df -h /dev/sdb1
df: â/dev/sdb1â: No such file or directory
[brentfm@whm ~]$ df -h /dev/sdb2
df: â/dev/sdb2â: No such file or directory
Now I'm concerned. Here's what I did and where I'm at:
(parted) sudo resize2fs /dev/sda1^Z
[1]+ Stopped sudo parted /dev/sda
[brentfm@whm ~]$ sudo df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 2.6G 0 2.6G 0% /dev
tmpfs tmpfs 2.6G 8.0K 2.6G 1% /dev/shm
tmpfs tmpfs 2.6G 273M 2.4G 11% /run
tmpfs tmpfs 2.6G 0 2.6G 0% /sys/fs/cgroup
/dev/sda2 xfs 80G 75G 5.4G 94% /
/dev/sda1 vfat 200M 12M 189M 6% /boot/efi
/dev/loop0 ext4 2.5G 16M 2.3G 1% /tmp
tmpfs tmpfs 531M 0 531M 0% /run/user/1002
[brentfm@whm ~]$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 200G 0 disk
ââsda1 8:1 0 200M 0 part /boot/efi
ââsda2 8:2 0 79.8G 0 part /
loop0 7:0 0 2.5G 0 loop /home/virtfs/bigislandfun/var/tmp
[brentfm@whm ~]$ resizepart
Usage:
resizepart <disk device> <partition number> <length>
Options:
-h, --help display this help and exit
-V, --version output version information and exit
For more details see resizepart(8).
[brentfm@whm ~]$ sudo parted /dev/sda2
GNU Parted 3.1
Using /dev/sda2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
Partition number? 2
Error: Partition doesn't exist.
(parted) resizepart
Partition number? 1
End? [85.7GB]? quit
Error: Invalid number.
(parted) resizepart
Partition number? 2
Error: Partition doesn't exist.
(parted) resizepart
Partition number? 1
End? [85.7GB]? 100%
(parted) quit
Information: You may need to update /etc/fstab.
[brentfm@whm ~]$ sudo sgdisk --move-second-header /dev/sda
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
[brentfm@whm ~]$ sudo partprobe /dev/sda
[brentfm@whm ~]$ sudo xfs_growfs -d /
meta-data=/dev/sda2 isize=512 agcount=17, agsize=1297792 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=20919820, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data size unchanged, skipping
[brentfm@whm ~]$ df -h /dev/sdb
df: â/dev/sdbâ: No such file or directory
[brentfm@whm ~]$ df -h /dev/sdb1
df: â/dev/sdb1â: No such file or directory
[brentfm@whm ~]$ df -h /dev/sdb2
df: â/dev/sdb2â: No such file or directory
[brentfm@whm ~]$
Question: Am I screwed? Should I reboot server or run more commands?
If anyone could share a KB article or a few steps to resolve this I would be eternally grateful. I'm not sure how bounties work here but I would also be willing to pay for a solution. Many thanks!