[linux-lvm] Resetup of my LVM device

Turbo Fredriksson turbo at bayour.com
Sat Jan 13 13:37:57 UTC 2007


A couple of months ago I setup an LVM2 device conisting
of a 400Gb SATA and a 80Gb PATA...
After a a couple of weeks, the SATA disk crashed (badly).
I managed to get it removed from the LVM2 setup, but now
I got the (warranty) replacement...

I've been trying to get the data on the PATA disk so that
I can recreate the whole thing, but I'm not shure how to
do that (I don't have much experience with LVM...

Now do I recreate the whole device with the two new 400Gb
SATA disks and move the data I already have on the PATA disk
to this new LVM2 disk/device?


I'm running PPC Ubuntu dapper, and this is (if it matters/helps)
what /etc/lvm/archive/* say:

----- s n i p -----
root at pegasos:/etc/lvm# grep ^description archive/*
archive/MovieShare_00000.vg:description = "Created *before* executing 'vgcreate MovieShare /dev/sda'"
archive/MovieShare_00001.vg:description = "Created *before* executing 'lvcreate -L300G -nMovieShare MovieShare'"
archive/MovieShare_00002.vg:description = "Created *before* executing 'lvremove /dev/MovieShare/MovieShare'"
archive/MovieShare_00003.vg:description = "Created *before* executing 'vgremove MovieShare'"
archive/MovieShare_00004.vg:description = "Created *before* executing 'vgcreate MovieShare /dev/sda'"
archive/MovieShare_00005.vg:description = "Created *before* executing 'lvcreate -l 95388 -ndisk MovieShare'"
archive/MovieShare_00006.vg:description = "Created *before* executing 'vgextend MovieShare /dev/hdb'"
archive/MovieShare_00007.vg:description = "Created *before* executing 'lvextend -l +19079 /dev/MovieShare/disk /dev/hdb'"
archive/MovieShare_00008.vg:description = "Created *before* executing 'vgreduce --removemissing MovieShare'"
----- s n i p -----

I guess it's >= 4 that matters (seems like I didn't create it
correctly the 'first time' :).

This is what 'backup/MovieShare' contains (empty lines trimmed):

----- s n i p -----
# Generated by LVM2: Sun Dec 17 14:26:19 2006
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing 'vgreduce --removemissing MovieShare'"
creation_host = "pegasos"       # Linux pegasos 2.6.15-27-powerpc #1 Sat Sep 16 01:55:03 UTC 2006 ppc
creation_time = 1166361979      # Sun Dec 17 14:26:19 2006
MovieShare {
        id = "a6WfmR-Iuyt-jI1n-ii4E-CoUf-iLQ6-1RHFGC"
        seqno = 5
        status = ["RESIZEABLE", "READ", "WRITE"]
        extent_size = 8192              # 4 Megabytes
        max_lv = 0
        max_pv = 0
        physical_volumes {
                pv0 {
                        id = "WA7SHt-AI3U-voLG-6IwU-z8qE-FFrE-fWMIbn"
                        device = "/dev/hdb"     # Hint only

                        status = ["ALLOCATABLE"]
                        pe_start = 384
                        pe_count = 19079        # 74.5273 Gigabytes
                }
        }
}
----- s n i p -----




More information about the linux-lvm mailing list