CentOS, PV increase and logical partition

General support questions
Post Reply
tralq
Posts: 1
Joined: 2019/07/24 06:55:54

CentOS, PV increase and logical partition

Post by tralq » 2019/07/24 06:58:13

Hi all,

I've the partition setup :

PV contain CL VG on /dev/sdf6 (20.9GB) (with root, usr, tmp, home, etc. lv)

Fdisk output :

Code: Select all

Périphérique Amorçage  Début         Fin      Blocs    Id. Système
/dev/sdf1              63       80324       40131   de  Dell Utility
/dev/sdf2   *       81920     4276223     2097152    c  W95 FAT32 (LBA)
/dev/sdf4         5324800   584843263   289759232    5  Extended
/dev/sdf5       141660160   142708735      524288   83  Linux
/dev/sdf6       142710784   183607295    20448256   8e  Linux LVM
/dev/sdf7         5326848   141660159    68166656   83  Linux
I want to increase the /dev/sdf6 to increase the different lv.
I do this :
  • Delete /dev/sdf7 (useless partition)
  • Delete /dev/sdf6
  • Create a new partition (n, l, t,8e,w) :
fdisk output :

Code: Select all

Périphérique Amorçage  Début         Fin      Blocs    Id. Système
/dev/sdf1              63       80324       40131   de  Dell Utility
/dev/sdf2   *       81920     4276223     2097152    c  W95 FAT32 (LBA)
/dev/sdf4         5324800   584843263   289759232    5  Extended
/dev/sdf5       141660160   142708735      524288   83  Linux
/dev/sdf6       142710784   300000000    78644608+  8e  Linux LVM
I try the pvresize :

Code: Select all

$ sudo pvresize /dev/sdf6
  /etc/lvm/archive/.lvm_hostname_18538_263156714: fclose failed: No space on device
  0 physical volume(s) resized / 1 physical volume(s) not resized
With parted, I see that /dev/sdf6 (20.9GB) pass to 80.5GB :

Code: Select all

 6      73,1GB  154GB   80,5GB  logical                        lvm
But I can not increase the size of the physical volume and then increase the size of the volume group and finally the lv...

Someone have an idea ?

Thanks

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS, PV increase and logical partition

Post by TrevorH » 2019/07/24 09:15:59

/etc/lvm/archive/.lvm_hostname_18538_263156714: fclose failed: No space on device
Your filesystem is full so the resize failed. Free some space and try again.
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

Post Reply