I've been asked to produce a disaster recovery doc (comes to us all -
bugger!) In brief, the system has 5 disks on a raid controller, one in a
single member JBOD and the rest in a 4 member raid5 set. The two devices
(re[01]) are partitioned with a ufs root partition, an AdvFS partition
and the rest forming an LSM partition, so there are two LSM disk groups,
rootdg and raiddg. One disk group has two volumes (misc and tmp) and the
other has one volume (homedirs). There is one plex per volume, no
striping, concatanation etc (wonder why the site used LSM?)
I didn't set this stuff up, but I do need to provide a reasonable guide
to how to restore it in the event of a system failure, assuming a
machine with totally empty disks. I assume the procedure is something
like:
boot from CD
partition disks
format root ufs
mount it & vrestore to it
that much I'm happy with. Next I'd probably create the plain AdvFS
filesets using mkfdmn and mkfset, then mount and vrestore.
Now I'm a bit stumped. So, how do I recreate the LSM disk groups? How
much of it (if any) is done by the tape retore? My own thoughts were as
follows, but I'm concerned I may be way off:
mount the root partition and edit it's fstab file to remove the
entry's mounted on LSM volumes, esp. /tmp as I'll likely
need that even single user.
boot single user off the hosts' own disk (recently restored)
voliod set 2
vold -m disable
voldctl enable
volrecover -sb
voledit -r rm vol_misc
voledit -r rm vol_tmp
volassist make -g rootdg vol_misc 600m
volassist make -g rootdg vol_tmp 200m
mkfdmn /dev/vol/rootdg/vol_misc misc_domain
mkfset misc_domain misc
mkfdmn /dev/vol/rootdg/vol_tmp tmp_domain
mkfset tmp_domain tmp
Then add the other diskgroup
voldiskadd re1e
volassist make -g raiddg vol_users 10g
mkfdmn /dev/vol/raiddg/vol_users users_domain
mkfset users_domain users
Does this look right?
Also - if it was only the root partition that was stuffed would that
affect the rootdg?
Any comments/help very welcome, thanks,
Simon
--
Simon Greaves voice: (+679) 212114
Computer Centre fax: (+679) 304089
The University of the South Pacific email: greaves_s_at_usp.ac.fj
Suva, Fiji
Received on Thu Sep 17 1998 - 04:09:25 NZST