we have VM rhel machine version 7.6
example from lsblk
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 300G 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 39.5G 0 part
│ ├─VG-RHEL_root 253:0 0 40.9G 0 lvm /
│ ├─VG-RHEL_swap 253:1 0 7.7G 0 lvm [SWAP]
│ └─VG-RHEL_var 253:2 0 100.9G 0 lvm /var
└─sda3 8:3 0 110G 0 part
├─VG-RHEL_root 253:0 0 40.9G 0 lvm /
└─VG-RHEL_var 253:2 0 100.9G 0 lvm /var
before using parted
we increase the OS disk from vsphare client from 200G to 300G
then we rescan the sda disk and we get from lsblk 300 instead of previous 200G
now we want to use parted
but we get the following
parted /dev/sda resizepart 2 100%
Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...]
Apply COMMANDs with PARAMETERS to DEVICE. If no COMMAND(s) are given, run in
interactive mode.
OPTIONs:
-h, --help displays this help message
-l, --list lists partition layout on all block devices
-m, --machine displays machine parseable output
-s, --script never prompts for user intervention
-v, --version displays the version
-a, --align=[none|cyl|min|opt] alignment for new partitions
what could be wrong here?