Re: RAID 1 | Extending Logical Volume

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

 



Hi Steffi,

On Sun, Jan 12, 2025 at 08:02:19PM +0100, Stefanie Leisestreichler wrote:
> Hi.
> I have the system layout shown below.
> Can I safely use
> 
> lvextend -L +50GB /dev/mapper/vg_raid1-root
> and after that
> resize2fs /dev/mapper/vg_raid1-root

The snipped output below seems to suggest that there's two SATA disks that are
partitioned with one partition each. These partitions across devices form a
2-leg RAID1 array via md/mdadm.

That RAID1 array itself is in use as a Physival Volume for LVM2, and it hosts
a Volume Group with a Logical Volume at /dev/mapper/vg_raid1-root that you
want to resize.

> [...]

With these assumptions verified, the operation you are about to execute seems
perfectly safe to me. You can even make `lvresize` perform the fs resizing for
you, and shorten the whole ordeal to just

  # lvresize --size +50GB --resizefs /dev/mapper/vg_raid1-root

Godspeed, and remember to always keep working backups handy regardless! ;)

-- 
with best regards:
- Johannes Truschnigg ( johannes@xxxxxxxxxxxxxxx )

www:   https://johannes.truschnigg.info/

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux