1834814 Members
2937 Online
110070 Solutions
New Discussion

Backing Up Mirrored LVMs

 
Angelo Collazo
Advisor

Backing Up Mirrored LVMs

I need a SCRIPT to do an fbackup of the second mirror set(LVM)

TIA:-(

1- Split second mirror set
2- Fbackup second mirror set
3- Add back second mirror set
4- Synchronize second mirror set

HP-UX 10.20 , K360

Volume Groups 0 of 2 selected
------------------------------------------------------------------------------
Mbytes Physical Logical
Name Available Volumes Volumes
-----------------------------------------------------------------------------
| vg00 2028 of 12276 3 8 ^
| vg01 1056 of 75096 15 1

Hardware Disk Usable
Path Mbytes MBytes
-----------------------------------
10/0.6.0 4095 4095
10/8.15.0 4095 4095
8/12.5.0 4095 4095

Hardware Disk Usable
Path Mbytes MBytes
-----------------------------------
10/0.3.0 4095 4095
10/8.11.0 4095 4095
10/0.4.0 4095 4095
10/8.12.0 4095 4095
10/0.5.0 4095 4095
10/8.13.0 4095 4095
10/0.15.0 4095 4095
10/8.14.0 4095 4095
10/0.14.0 8683 8683
10/8.10.0 8683 8683
8/12.6.0 8683 8683
8/12.2.0 4095 4095
8/12.1.0 4095 4095
8/12.3.0 4095 4095
8/12.4.0 4095 4095



Logical Volumes 0 of 9 selected
------------------------------------------------------------------------------
Total Mirror Mount
Logical Volume Volume Group Use Mbytes Copies Directory
-----------------------------------------------------------------------------
| lvol1 vg00 HFS 48 2 /stand ^
| lvol1 vg01 VxFS 24680 2 /dbms
| lvol2 vg00 Swap/Dump 768 2
| lvol3 vg00 VxFS 120 2 /
| lvol4 vg00 VxFS 80 2 /home
| lvol5 vg00 VxFS 600 2 /opt
| lvol6 vg00 VxFS 100 2 /tmp
| lvol7 vg00 VxFS 800 2 /usr
| lvol8 vg00 VxFS 900 2 /var


2 REPLIES 2
Sandor Horvath_2
Valued Contributor

Re: Backing Up Mirrored LVMs

Hi !

I not suppose You the script, because
after the lvmsplit You need run fsck.
Dangerous running fsck from script bacause if You use -p option may bee wait input forever if use -y option then may disk will be unusable.

So write more scripts.
I use for cycle similar scipts
for example>
for i in $(ls /dev/vg01/lvol*)
do
lvsplit $i
done

regards, Saa
If no problem, don't fixed it.
Rita C Workman
Honored Contributor

Re: Backing Up Mirrored LVMs

Well Hi again Angelo....

Didn't I just see this on HPUX email list...ha ha.

Here's the thread again in case you haven't read your email yet.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=594c7f1507ab3005b0/screen=ckiDisplayDocument?docId=200000024598694

Regards,
/rcw