Re: Logical Volume Resize

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

 



On 12/6/20 5:07 PM, Kostas Sfakiotakis wrote:
> Now what's the safest way to enlarge / resize the /var partition with 
> the use of  /dev/sdb space ???

Ok, assuming you're not interested in the information within OldData
volume-group that resides on sdb you can:

1) pvcreate -f /dev/sdb  (we're using -f because otherwise it would
complain that there's existing LVM data...)
2) vgextend F31 /dev/sdb
3) lvextend -r -L+10G /dev/mapper/F31-F31Var

...assuming you'll want 10GB more. Change it accordingly.  You could
also use lvextend -r -l+100%FREE /dev/mapper/F31-F31Var to give it all
free remaining space in the volume group if that's what you want.

And now your main F31 volume-group would use the space in /dev/sdb for
any extents needed in the F31 volume-group (not necessarily that of /var).

If you had plenty of space in the F31 volume-group (vgs would show you
that) and if you wanted to use space from /dev/sdb *exclusively* for the
logical volume hosting /var ..that's another story.  I don't know the
facts right now but, in general, that's not how you operate LVM.  You
generally throw disks at the volume-group and you just let it handle the
rest. At least for the regular desktop usage...

HTH,
Jorge

p.d. you could create a partition in /dev/sdb and flag it as LVM so
you'll end up with /dev/sdb1 but since you already were using the whole
device, that's what I used.
_______________________________________________
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