Στις 6/12/20 11:53 μ.μ., ο/η Jorge Fábregas έγραψε:
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:

Yes the OldData volume group holds no data in it , i was planning to put some data but never made it this far , it can be deleted entirely. No problem there .



1) pvcreate -f /dev/sdb  (we're using -f because otherwise it would
complain that there's existing LVM data...)

As i mentioned above i can delete everything in /dev/sdb if that would make
things easier .


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...

As i mentioned in my original post , i have no experience in resizing
logical volumes , so i asked the list . if it is the volume group that needs
to be resized first , then that's what am going to do .


Your directions seem clear enough so , am going to give them a try .
One last question though , do i need to resize the filesystem of the
/var partition or will it be resized automatically ??




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

_______________________________________________
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