Hi,
Originally set my Debian system up on a raid array (raid 1 made up of
2x1Tb drives) containing four logical volumes, containing the following
ext4 partitions. /boot is ext3 and separate, and swap is one partition
on each drive.
/dev/mapper/VolGroup-LogVol00 /
/dev/mapper/VolGroup-LogVol01 /tmp
/dev/mapper/VolGroup-LogVol02 /var
/dev/mapper/VolGroup-LogVol03 /home
# pvdisplay
--- Physical volume ---
PV Name /dev/md0
VG Name VolGroup
PV Size 927.50 GiB / not usable 768.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 237439
Free PE 23689
Allocated PE 213750
PV UUID vYmhhF-z0xf-QqGy-wYyZ-8IS2-bcRB-GlwfGa
# vgdisplay
--- Volume group ---
VG Name VolGroup
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 927.50 GiB
PE Size 4.00 MiB
Total PE 237439
Alloc PE / Size 213750 / 834.96 GiB
Free PE / Size 23689 / 92.54 GiB
VG UUID NhgEud-Mlip-Es6n-E4Bj-U8FU-7Rxx-2tkAVs
lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup/LogVol01
VG Name VolGroup
LV UUID wBchCi-lEZr-ML4C-2o6d-Oh1W-4Lh1-5glhQH
LV Write Access read/write
LV Status available
# open 1
LV Size 9.77 GiB
Current LE 2500
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/VolGroup/LogVol00
VG Name VolGroup
LV UUID D4DPyJ-yTBC-Lnk8-qq2m-gBt7-WZ6C-v1h6M3
LV Write Access read/write
LV Status available
# open 1
LV Size 34.18 GiB
Current LE 8750
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup/LogVol03
VG Name VolGroup
LV UUID ZKD1dH-8qAF-ZrEC-faHL-goeU-KJoZ-9i62PK
LV Write Access read/write
LV Status available
# open 1
LV Size 781.25 GiB
Current LE 200000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/VolGroup/LogVol02
VG Name VolGroup
LV UUID PzHuVd-Mo6A-yu5x-uNC6-IuwB-V3K4-N5KsAa
LV Write Access read/write
LV Status available
# open 1
LV Size 9.77 GiB
Current LE 2500
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
There's only one physical volume, on md0 and one volume group.
I've filled my /home so I've bought two 2TB drives and I want to make
them into a raid array and add this to VolGroup-LogVol03. I was
wondering if someone could check this to see if this is the right plan.
Create the raid array:
mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sd[de]1
Create a physical volume on it
pvcreate /dev/md1
Extend the volume group
vgextend VolGroup /dev/md1
Extend the logical partition
lvextend /dev/VolGroup/LogVol03 -l +[large number]
Check the partition.
e2fsck -f /dev/VolGroup/LogVol03
Resize the filessystem.
resize2fs /dev/VolGroup/LogVol03
Should this work? Thanks
James
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50aeb1bc.1060...@googlemail.com