From: Ulrich Wiederhold Message-ID: <20011122041320.A1447@sky.net> Mime-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [linux-lvm] lvm problem ... =?iso-8859-1?Q?can=B4?= =?iso-8859-1?Q?t?= describe it shortely Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Wed Nov 21 21:09:02 2001 List-Id: Content-Type: text/plain; charset="iso-8859-1" To: linux-lvm@sistina.com Hello, I am using 2.4.14 with lvm and xfs patched. I used /dev/hda2 [20GB] /dev/hdb1 [8.5GB] /dev/hdd1 [10,5GB] /dev/sdb1 [9GB] /dev/sdc1 [4,5GB] In a volume group vg01 with 3 lv=B4s. Now I added another SCSI disk as /dev/sdd5 to my system, created the partition with 8e type, did a "pvcreate /dev/sdd5", "vgextend vg01 /dev/sdd5", "pvmove /dev/sdc1 /dev/sdd5", "vgreduce vg01 /dev/sdc1". Same procedure with /dev/hdb1. Then I shutdown my PC, removed the 2 disks and added a new IDE HD as /dev/hda2 [80GB] /dev/hdb2 [the old /dev/hda2] /dev/hdd1=20 /dev/sdb1 /dev/sdc5 [the new SCSI disk instead of the old one, was /dev/sdd5] I rebooted and created a new pv with my new HD (/dev/hda3), created a new vg called store and a new lv called data. Then I copied all my data stored on a non-lvm volume (/dev/hdc1) to the new lvm drive (/dev/store/data), created a new pv (pvcreate /dev/hdc1), extended the vg store and extended the lv. Now I want to activate my old vg01 and vgscan only finds the new volume group store. I used uuid_fixer on every device " uuid_fixer /dev/hdd1 /dev/hdb2 /dev/sdb1 /dev/sdc5 /dev/sdb1 - Success" $# pvscan =20 pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/hdc1" of VG "store" [57.25 GB / 0 free] #co= rrect pvscan -- inactive PV "/dev/hdd1" is associated to an unknown VG (run vgsc= an) pvscan -- inactive PV "/dev/hda3" of VG "store" [76.07 GB / 0 free] #co= rrect pvscan -- inactive PV "/dev/hdb2" is associated to an unknown VG (run vgsc= an) pvscan -- inactive PV "/dev/sdb1" is in no VG [8.51 GB] # pvscan -- inactive PV "/dev/sdc5" is associated to an unknown VG (run vgsc= an) pvscan -- total: 6 [187.49 GB] / in use: 5 [178.98 GB] / in no VG: 1 [8.51 GB] vgscan still only finds the vg store, so I tryed to use vgcfgrestore to get my vg01 back: $# vgcfgrestore -n vg01 -l --- Volume group --- VG Name vg01 VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 256 Cur LV 3 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 4 Act PV 4 VG Size 53.51 GB PE Size 4.00 MB Total PE 13698 Alloc PE / Size 12583 / 49.15 GB Free PE / Size 1115 / 4.36 GB VG UUID p8KJS0-eei7-s10H-61hT-7uJS-Euiq-bXhlNs This seems to be correct for me. So I tryed the restore: $# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/sdc5 vgcfgrestore -- physical volume "/dev/sdc5" doesn't belong to volume group "vg01" $# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/sdb1 vgcfgrestore -- physical volume "/dev/sdb1" doesn't belong to volume group "vg01" $# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/hdb2 vgcfgrestore -- physical volume "/dev/hdb2" doesn't belong to volume group "vg01" $# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/hdd1 vgcfgrestore -- ERROR "vg_write(): open" storing VGDA of "vg01" on disks Do you have any ideas what I can do? Uli --=20 'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5