Re: Logical Volume Resize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Στις 7/12/20 12:21 π.μ., ο/η Jorge Fábregas έγραψε:
On 12/6/20 6:18 PM, Kostas Sfakiotakis wrote:
One last question though , do i need to resize the filesystem of the
/var partition or will it be resized automatically ??
It will be resized automatically due to the "-r" switch we're using with
lvextend.  You can "man lvextend" and see the option there. If you don't
use "-r" with lvxtend indeed you'll need to resize the filesystem
aftewards (using resize2fs etc).

A small glitch here , i guess i missed something in the process

[root@Orion ~]# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.36).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: TOSHIBA HDWD120
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3E61093F-4565-49D4-A702-140914F24636

Device     Start      End  Sectors Size Type
/dev/sdb1   2048 20973567 20971520  10G Linux LVM

Command (m for help): quit

[root@Orion ~]# pvcreate /dev/sdb1
  Physical volume "/dev/sdb1" successfully created.
[root@Orion ~]# vgextend F31 /dev/sdb1
  Volume group "F31" successfully extended
[root@Orion ~]# lvextend -r -L+10G  /dev/mapper/F31-F31Var
  Insufficient free space: 2560 extents needed, but only 2559 available


The partition i created was 10G , your command should try to extend the partition by 10G ,

so why did the last command failed ??

How can i rectify this ( ok apart from the obvious asking the thing to extend the logical volume

by 9G ) ??


Can i step back now safely or do i have to move forward ??





HTH,
Jorge
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux