Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM and Raid1 with different size physical volumes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1698

PostPosted: Fri Jan 03, 2025 8:33 pm    Post subject: LVM and Raid1 with different size physical volumes Reply with quote

How does LVM and Raid1 work with different size physical volumes in one volume group (VG)?
For example I have two matching drives in a VG, one has just one LVM partition the other has a few small partitions along with the big LVM one so they are not identical but close.
I have one Logical Volume I am installing Gentoo on I gave it a chunk of space.
But how to I allocate the rest of the space without wasting any?
with
Code:
lvcreate --mirrors 1 --type raid -l 100%
?
Thanks all and happy new year.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Akashchauhan
n00b
n00b


Joined: 27 Jan 2025
Posts: 1

PostPosted: Mon Jan 27, 2025 12:35 pm    Post subject: Reply with quote

LVM with RAID1 will mirror the LV across both drives and use the smallest available space. It would be better to create or allocate other logical volumes so that both drives fit well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum