Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274087

Trouble with lvreduce on Debian 12

From Jonathan Wiebe <jonathan.b.wiebe@proton.me>
Newsgroups linux.debian.user
Subject Trouble with lvreduce on Debian 12
Date 2024-10-27 06:10 +0100
Message-ID <JC3Hj-4v1x-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I ran into an issue with my root partition being too small. My plan was to reduce the size of my home partition and increase the size of my root partition. Here is what I have done:

First, I rebooted in single user mode.
Then I did the following:
# mount / -rw -o remount 
# amount /home
umount: /home: not mounted.
# fsck -f /dev/mapper/debian --vg-home
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes 
Inode 8803015 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 8919578 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 9328852 extent tree (at level 1) could be shorter. Optimize<y>? yes
Inode 11273442 extent tree (at level 1) could be shorter. Optimize<y>? yes
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts
Pass 5: Checking group summary information 

/dev/mapper/debian--vg-home: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/debian--vg-home: 329100/29302784 files (1.8% non-contiguous), 12560416/117196800 blocks 
# fsck -f /dev/mapper/debian--vg-home 
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes 
Pass 2: Checking directory structure 
Pass 3: Checking directory connectivity 
Pass 4: Checking reference counts 
Pass 5: Checking group summary information 
/dev/mapper/debian--vg-home: 329100/29302784 files (1.8% non-contiguous), 12560416/117196800 blocks 
# resize2fs /dev/mapper/debian--vg-home 400G
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/mapper/debian--vg-home to 104857600 (4k) blocks.
The filesystem on /dev/mapper/debian--vg-home is now 104857600 (4k) blocks long.
# lvreduce -L -39G /dev/mapper/debian--vg-home 
WARNING: Reducing active logical volume to 408.07 GiB.
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce debian--vg/home? [y/n]: y
Size of logical volume debian--vg/home changed from 447.07 GiB (114450 extents) to 408.07 GiB (104466 extents).
Logical volume debian--vg/home successfully resized.

This is where I am stalled. The prompt has not come back and I have been waiting about 10.5 hours. Is it normal for this to take this long? Should I just be patient? Or has something gone wrong? I am not sure what to do at this point.

Thanks in advance for your assistance.

Jonathan 

-- 
Jonathan Wiebe

Our passions are there to drive us to act, not to be the seasoning of our emotional stew.

Sent from Proton Mail Android

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Trouble with lvreduce on Debian 12 Jonathan Wiebe <jonathan.b.wiebe@proton.me> - 2024-10-27 06:10 +0100
  Re: Trouble with lvreduce  and / read-only Geert Stappers <stappers@stappers.nl> - 2024-10-27 10:30 +0100
    Re: Trouble with lvreduce  and / read-only Dan Ritter <dsr@randomstring.org> - 2024-10-27 15:10 +0100
      Re: Trouble with lvreduce and / read-only gene heskett <gheskett@shentel.net> - 2024-10-27 15:30 +0100
        Re: Trouble with lvreduce and / read-only Dan Ritter <dsr@randomstring.org> - 2024-10-27 16:50 +0100
    Re: Trouble with lvreduce  and / read-only Jonathan Wiebe <jonathan.b.wiebe@proton.me> - 2024-10-27 19:20 +0100
      Re: Trouble with lvreduce  and / read-only Geert Stappers <stappers@stappers.nl> - 2024-10-27 19:30 +0100
        Re: Trouble with lvreduce  and / read-only Jonathan Wiebe <jonathan.b.wiebe@proton.me> - 2024-10-27 19:50 +0100
          Re: Trouble with lvreduce  and / read-only Geert Stappers <stappers@stappers.nl> - 2024-10-27 22:30 +0100
          Re: Trouble with lvreduce  and / read-only Andy Smith <andy@strugglers.net> - 2024-10-28 02:50 +0100
  Re: Trouble with lvreduce on Debian 12 Anders Andersson <pipatron@gmail.com> - 2024-10-28 13:40 +0100

csiph-web