Michael wrote:
> On Sunday, 11 May 2025 14:10:48 British Summer Time Dale wrote:
>
>> root@fireball / # lvscan
>>   ACTIVE            '/dev/home/home-lv' [<7.28 TiB] inherit
>>   ACTIVE            '/dev/backup/backup' [698.63 GiB] inherit
>>   ACTIVE            '/dev/OS/usr' [39.06 GiB] inherit
>>   ACTIVE            '/dev/OS/var' [68.00 GiB] inherit   <== That's the path
>>   ACTIVE            '/dev/OS/swap' [12.00 GiB] inherit
>> root@fireball / # resize2fs /dev/OS/var
>> resize2fs 1.47.2 (1-Jan-2025)
>> open: Device or resource busy while opening /dev/OS/var
>> root@fireball / #
> Hmm ... the fine manual of resize2fs command states upfront:
>
> "The  resize2fs program will resize ext2, ext3, or ext4 file systems.  It can 
> be used to enlarge or shrink an unmounted file system located on device.  If 
> the file system is mounted, it can be used to expand  the  size of  the  
> mounted  file  system,  assuming the kernel and the file system supports on-
> line resizing."
>
> So you should not need to unmount it - but I wonder if the LVM layer 
> introduces some complexity here.  :-/
>

Well, on this system, I've done this a few times without any problems. 
Just add some space with lvextend, resize file system and done.  It
doesn't seem to be working today tho.  Yesterday either.  LOL 


>> I think all those link to the same device node, usually dm-<some number>
>> tho.  Still, I tried it anyway.  Worst thing, same excuse for not
>> resizing the darn thing.  :/ 
>>
>> Am I going to have to boot other media and resize this thing???? 
> Since /var/ is in use by the OS and you keep getting warnings about it being 
> busy, I think you'll have to reboot with a LiveUSB to finish this job with 
> var 
> unmounted.

Well crap.  I checked once ages ago to see if I could do anything with
LVM and the commands did list things.  I guess LVM works on those but I
can't recall what I was booting.  Given it was a while ago, likely
systemrescue thingy.  That doesn't use Gentoo anymore so not sure on if
that would work or not.  I may have a old copy around here somewhere. 
Could put it on that Ventoy thingy.  See if that works. 

I was hoping to avoid that.  :/  I thought maybe I was missing something
or something changed that I couldn't find, yet. 

Thanks for the help.  We tried. 

Dale

:-)  :-) 

P. S.  I have some 500GB drives in a box somewhere.  Could move the OS
over to that and have even more room.  I could do like I did on my new
rig, make everything big enough that I'd need to worry about the rig
blowing smoke before running out of room.  ROFL

Reply via email to