I have an LVM mirror made of 6 disks of 1Tb. I've made a RAID 1 mirror with 3+3 disks. The logical volume and the partition on it have therefore 3Tb of usable space. Running out of disk space, I'm trying to cook a temporary solution with an extra 4Tb disk that I added to the latest available slot in this computer.
I would like to extend my current filesystem with these extra 4Tb for a grand total of 3+4= 7 Tb. Therefore, one part of the logical volume would have a RAID 1 mirror and the other part a single disk (as I said it's a temporary solution).
I can't reformat my existing RAID1 array or move the data as I'm really running out of space everywhere.
vgextend vg0 /dev/sdg1
vg0 is my volume group with the 6 disks and
sdg1 is the new 4Tb disk.
Then I did:
lvextend -l +100%FREE /dev/vg0/data
/dev/vg0/data is my logical volume.
However, the logical volume cannot be extended and lvextend tells me:
Found fewer allocatable extents for logical volume data than requested: using 715395 extents (reduced by 953862).
In the end, the volume group has a size of approx. 10Tb which is correct but the logical volume stays at 3 Tb.
The current logical volume is as follow:
Using logical volume(s) on command line. --- Logical volume --- LV Path /dev/vg0/data LV Name data VG Name vg0 LV UUID xcd11P-sL1W-M9vK-XftB-OeAA-b0Ec-AM2btA LV Write Access read/write LV Creation host, time xxxxxxx, 2015-08-27 18:24:58 +0100 LV Status available # open 1 LV Size 2.73 TiB Current LE 715395 Mirrored volumes 6 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 1536 Block device 253:12
And the desired configuration will be as follow, where I would of course partly loose the redundancy of a full RAID 1 configuration. But it's a temporary solution. And of course, in the future, ZFS or btrfs would be a better solution:
Any idea on how to solve this specific problem (if a solution exists) ?