Summary: Mirroring an ADVFS Volume with LSM

From: Alan Pittman <PITTMAN_at_oeteg.com>
Date: Wed, 16 Feb 2000 13:57:14 -0500

Summary:

   Way back in November I wrote:

> What is the best way to mirror an ADVFS volume using LSM? I have
>encapsulated the ADVFS volume rz45c (/localb2). Now I would like to mirror it
> with volume rz13c. Both drives are 18.2 Gig and rz13 has been labeled with
> "disklabel". I'm not quite understanding the LSM guide.

I received responses from the following individuals:

  Carl Gaines cgaine_at_acxiom.com
  Marco Luchini Marco.Luchini_at_acco-uk.co.uk
  Roger Leonard rleonard_at_cvty.com
  John Speno speno_at_isc.upenn.edu
  Gary Hansford Gary.Hansford_at_gda.ge.com

Thank you all very much.

After reviewing everyone's ideas (five responses, five different approaches to the problem) I did the following:

1. removed the disklabel on rz13 (disklabel -z rz13).
2. relabeled the disk (disklabel -rw rz13 RZ13)
3. added to the LSM (voldiskadd rz13)
4. created the subdisk (volmake sd rz13-01 rz13,0,3556300)
5. created the plex (volmake plex vol-rz13-01 sd=rz13-01)
6. created the volume
     (volmake vol vol-rz13 use_type=fsgen plex=vol-rz13-01)
7. started the volume (volume start vol-rz13)
8. created an ADVFS domain (mkfdmn /dev/vol/rootdg/vol-rz13 b2local)
9. created an ADVFS file set (mkfset b2local b2local)
10. created a directory (mkdir /b2local)
11. mounted the volume (mount b2local#b2local /b2local)
12. copied the data ( vdump -0 -f - /localb2 | (cd /b2local; vrestore -x -f -)
13. unmounted the old directory (umount /localb2)
14. removed the ADVFS domain and file set
       (cd /etc/fdmns
        rm -R /localb2)
15. removed the volume, plex and subdisk on rz45 with "dxlsm"
16. removed the label on rz45 (disklabel -z rz45)
17. created a new disklabel (disklabel -rw rz45 RZ45)
18. add the disk to LSM (voldiskadd rz45)
19. created a sub-disk (volmake sd rz45-01 rz45,0,3556300)
20. created a plex (volmake plex vol-rz45-01 sd=rz45-01)
21. attached the plex to the first volume to create the mirror
      (volplex att rz13-01 vol-rz45-01)
22. waited approximately 2 hours as the volumes synced.

Piece of cake. (yeah, right)


Alan Pittman
SPX Corp
517-780-4108
pittman_at_oeteg.com
Received on Wed Feb 16 2000 - 19:00:20 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT