[SunHELP] Mirroring swap without reboot

Sandwich Maker adh at an.bradford.ma.us
Fri Aug 13 07:47:46 CDT 2004


" From: ert weerr <sun1sol at yahoo.com>
" 
" > > I have two hard drives in one of our V240s.
" > > All of the file systems have been set to mirror
" > > except the swap.
" > > Can I mirror this file system on a runnig box
" > > witout rebooting it?
" > 
" > man swap.
" > 
" > short version:
" > 
" > swap -d your existing swap
" > set up your mirror
" > swap -a new swap area
" 
" Yeah, thanks!
" However I wanted to know if I have to reboot the
" box in the middle of the mirror setup?
" So,
" 
" metainit -f d11 1 1 c1t0d0s1
" metainit -f d21 1 1 c1t1d0s1
" metainit d1 -m d11
" 
" ?????????reboot??????????
" 
" metattach d1 d21
" 
" Thanks in advance!

more like

swap -d c1t0d0s1
metainit -f d11 1 1 c1t0d0s1
metainit d1 -m d11
swap -a d1
swap -d c1t1d0s1
metainit -f d21 1 1 c1t1d0s1
metattach d1 d21

and be sure this meta swap is properly defined in your vfstab.
________________________________________________________________________
Andrew Hay                                  the genius nature
internet rambler                            is to see what all have seen
adh at an.bradford.ma.us                       and think what none thought



More information about the SunHELP mailing list