Recovering VGDA on LVM1 (restore metadata to disk) Linux

vgscan output this error

ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "vgappl01" from physicalvolume(s)

1) Check the backups on /etc/lvmconf/

NOTE: I recommend make backup of this dir to tape or external media

2) Check PVS

# pvdisplay /dev/sdxn

If some PV output no informations use that.

3) Recreate PV on partition or disk

# pvcreate /dev/sdb1

4) Make restore of VG on disk

# vgcfgrestore -n vgappl01 /dev/sdb1
vgcfgrestore -- INFO: using backup file "/etc/lvmconf/vgappl01.conf"
vgcfgrestore -- VGDA for "vgappl01" successfully restored to physical volume "/dev/sdb1"

5) Run pvscan

# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/vpatha1"  is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/vpathb1"  is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- ACTIVE   PV "/dev/sda3"    of VG "rootvg"   [52.49 GB / 37.31 GB free]
pvscan -- inactive PV "/dev/sdb1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdc1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdd1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sde1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdf1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdg1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdh1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- inactive PV "/dev/sdi1"     is associated to unknown VG "vgappl01" (run vgscan)
pvscan -- total: 11 [402.42 GB] / in use: 11 [402.42 GB] / in no VG: 0 [0]

6) run vgscan

# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "vgappl01"
vgscan -- found active volume group "rootvg"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups

7) For your security, make new backup

# vgcfgbackup
vgcfgbackup -- volume groups found: rootvg vgappl01
vgcfgbackup -- successful VGDA backup of volume group "rootvg" to "/etc/lvmconf/rootvg.conf"
vgcfgbackup -- successful VGDA backup of volume group "vgappl01" to "/etc/lvmconf/vgappl01.conf"

Reference: http://kbase.redhat.com/faq/docs/DOC-5537

Installing IBM lin_tape and lin_taped on Linux (Red Hat Enterprise Linux)

Installing IBM lin_tape on Linux (Red Hat Enterprise Linux)

Steps for install lin_tape and lin_taped

1. Download the lin_tape source and lin_taped from ftp://ftp.software.ibm.com/storage/devdrvr/Linux/lin_tape_source-lin_taped/

lin_tape-X.YY.Z-W.src.rpm.bin
lin_taped-X.YY.Z-rhel[V].arch.rpm.bin

Samples for version 1.20.0-1

lin_tape-1.20.0-1.src.rpm.bin
lin_taped-1.20.0-rhel4.x86_64.rpm.bin

2. Rebuild lin_tape rpm source

# rpmbuild --rebuild lin_tape-X.YY.Z-W.src.rpm.bin

(mais…)