<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br> I 've been unsuccessfully trying to move data from the existing VG to a new VG.<br>
Here are the steps i did:<br>[code]<br><pre dir="ltr" style="border: 1px inset ; padding: 3px; overflow: auto; width: 98%; min-height: 498px; text-align: left;">fdisk -l<br><br>Disk /dev/hdc: 160.0 GB, 160041885696 bytes<br>
255 heads, 63 sectors/track, 19457 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br><br>/dev/hdc1 * 1 9729 78148161 83 Linux<br>
/dev/hdc2 9730 19457 78140160 83 Linux<br><br>Disk /dev/hdd: 250.0 GB, 250059350016 bytes<br>255 heads, 63 sectors/track, 30401 cylinders<br><br>Units = cylinders of 16065 * 512 = 8225280 bytes<br><br>
Device Boot Start End Blocks Id System<br>/dev/hdd1 * 1 9729 78148161 83 Linux<br>/dev/hdd2 9730 19457 78140160 83 Linux<br><br>/dev/hdd3 19458 30401 87907680 83 Linux<br>
<br>Disk /dev/sda: 160.0 GB, 160041885696 bytes<br>255 heads, 63 sectors/track, 19457 cylinders<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br>
<br>/dev/sda1 * 1 13 104391 83 Linux<br>/dev/sda2 14 19457 156183930 8e Linux LVM<br><br>Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes<br>255 heads, 63 sectors/track, 182401 cylinders<br>
<br>Units = cylinders of 16065 * 512 = 8225280 bytes<br><br> Device Boot Start End Blocks Id System<br>/dev/sdb1 1 60788 488279578+ 83 Linux<br>/dev/sdb2 60789 121576 488279610 83 Linux<br>
<br>/dev/sdb3 121577 182401 488576812+ 83 Linux<br><br>pvscan<br> PV /dev/hdd3 VG VG_Storage02 lvm2 [83.83 GB / 0 free]<br> PV /dev/sdb2 VG VG_Storage000 lvm2 [465.66 GB / 0 free]<br> PV /dev/sdb1 VG VG_Storage01 lvm2 [465.66 GB / 316.62 GB free]<br>
<br> PV /dev/hdc2 VG VG_Storage lvm2 [74.52 GB / 74.52 GB free]<br> PV /dev/hdd2 VG VG_Storage lvm2 [74.52 GB / 74.52 GB free]<br> PV /dev/sda2 VG VG_SYS lvm2 [148.95 GB / 0 free]<br> PV /dev/hdd1 VG VG_Storage00 lvm2 [74.53 GB / 0 free]<br>
<br> PV /dev/hdc1 VG VG_Storage00 lvm2 [74.53 GB / 0 free]<br> Total: 8 [1.43 TB] / in use: 8 [1.43 TB] / in no VG: 0 [0 ]<br><br>vgscan<br> Reading all physical volumes. This may take a while...<br> Found volume group "VG_Storage02" using metadata type lvm2<br>
<br> Found volume group "VG_Storage000" using metadata type lvm2<br> Found volume group "VG_Storage01" using metadata type lvm2<br> Found volume group "VG_Storage" using metadata type lvm2<br>
<br> Found volume group "VG_SYS" using metadata type lvm2<br> Found volume group "VG_Storage00" using metadata type lvm2<br><br>lvscan<br> ACTIVE '/dev/VG_Storage02/LG_VG_Storage02_00' [83.83 GB] inherit<br>
<br> ACTIVE '/dev/VG_Storage000/LV_VGSTORAGE000' [465.66 GB] anywhere<br> ACTIVE '/dev/VG_Storage01/LV_VG_STORAGE01' [149.04 GB] anywhere<br> ACTIVE '/dev/VG_SYS/LogVol00' [148.07 GB] inherit<br>
<br> ACTIVE '/dev/VG_SYS/LogVol01' [896.00 MB] inherit<br> ACTIVE '/dev/VG_Storage00/LG_VG_Storage00_00' [149.05 GB] inherit<br><br>lvdisplay /dev/VG_Storage01/LV_VG_STORAGE01<br> --- Logical volume ---<br>
<br> LV Name /dev/VG_Storage01/LV_VG_STORAGE01<br> VG Name VG_Storage01<br> LV UUID 48dcTk-XKJ1-3umG-ykVu-EjYS-gGP7-i1RN1y<br> LV Write Access read/write<br> LV Status available<br>
<br> # open 1<br> LV Size 149.04 GB<br> Current LE 76308<br> Segments 1<br> Allocation anywhere<br> Read ahead sectors auto<br> - currently set to 512<br>
<br>[/code]<br><br>the drive i'm trying to move the data to is /dev/sdb. Dived into 2 partitions. Each 500Gb.<br><br>The "/dev/VG_Storage01/LV_VG_STORAGE01" is the original LG that had 2 drives (partitions) - <br>
<br><br>step by step:<br><br>0. /dev/VG_Storage01/LV_VG_STORAGE01 of is not mounted;<br><br>1. /dev/VG_Storage01 originally had /dev/hdc2 and /dev/hdd2.<br><br>2. I added /dev/sdb1 into /dev/VG_Storage01<br><br>3. did pvmove /dev/hdc2 /dev/sdb1 and pvmove /dev/hdd2 /dev/sdb1<br>
<br><br>4. removed /dev/hdc2 and /dev/hdd2 from /dev/VG_Storage01<br><br>5. created VG_Storage with /dev/hdc2 and /dev/hdd2<br><br>6. tried to extend /dev/VG_Storage01/LV_VG_STORAGE01:<br>[code]<br>vextend -l +100%PVS -r -t /dev/VG_Storage01/LV_VG_STORAGE01<br>
<br> Test mode: Metadata will NOT be updated.<br>Segmentation fault<br><br>lvextend -v -l +100%FREE -r -t /dev/VG_Storage01/LV_VG_STORAGE01<br> Test mode: Metadata will NOT be updated.<br> Finding volume group VG_Storage01<br>
<br> Using stripesize of last segment 64.00 KB<br> Rounding size (238417 extents) down to stripe boundary size for segment (238416 extents)<br> Executing: fsadm --dry-run --verbose check /dev/VG_Storage01/LV_VG_STORAGE01<br>
<br>fsadm: "ext3" filesystem found on "/dev/mapper/VG_Storage01-LV_VG_STORAGE01"<br>fsadm: Dry execution fsck /dev/mapper/VG_Storage01-LV_VG_STORAGE01<br> Test mode: Skipping archiving of volume group.<br>
<br> Extending logical volume LV_VG_STORAGE01 to 465.66 GB<br> Insufficient suitable allocatable extents for logical volume LV_VG_STORAGE01: 162108 more required<br> Test mode: Wiping internal cache<br> Wiping internal VG cache<br>
<br>[/code]<br> Block device 253:4</pre>Thank you for your help.<br>
</blockquote>