HDD size not correct

Issues related to hardware problems
User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: HDD size not correct

Post by TrevorH » 2021/12/28 19:21:23

resize2fs is for ext2/3/4 filesystems. Yours is xfs (the default) so you need to use xfs_growfs. Or if you'd read my post before, I suggested that you use lvextend -r which would have done it for you.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

amir385276
Posts: 73
Joined: 2019/08/09 20:54:52

Re: HDD size not correct

Post by amir385276 » 2022/01/05 10:17:09

[root@198232002341490545939 ~]# lvextend -r
No command with matching syntax recognised. Run 'lvextend --help' for more information.
[root@198232002341490545939 ~]#

amir385276
Posts: 73
Joined: 2019/08/09 20:54:52

Re: HDD size not correct

Post by amir385276 » 2022/01/05 10:22:50

Hi again TrevorH

I fix it with
#xfs_growfs /dev/mapper/cl-root

and working fine

thanks a lot

Post Reply