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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to