Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

With Disksuite, how to mirror " /root " file system

Status
Not open for further replies.

mingx98

Technical User
Mar 16, 2000
78
CA
At first, I didn't install Disksuite, but when
I installed Disksuite, how can I mirror " /root"
file system,and reserve current data.


Thans

 
Hi,
Do this:Make sure no one is accessing the system (by bringing down the system to single user mode).Stop all your applications and then take a backup of root(/) filesystem and make copies of /etc/system and /etc/vfstab.Then mirror the disk using Disksuite.It will automatically make changes in the following files /etc/system and /etc/vfstab and will reboot the system using the new configuration.
 
The proceedure for mirroring root is different from that for all other file systems. Check out the Solstice Disksuite User's Guide on
From that document an example;

# metainit -f d11 1 1 c0t3d0s0
d11: Concat/Stripe is setup
# metainit d12 1 1 c1t3d0s0
d12: Concat/Stripe is setup
# metainit d10 -m d11
d10: Mirror is setup
# metaroot d10
# lockfs -fa
# reboot
...
# metattach d10 d12
d10: Submirror d12 is attached
# ls -l /dev/rdsk/c1t3d0s0
lrwxrwxrwx 1 root root 88 Feb 8 15:51 /dev/rdsk/c1t3d0s0 ->
../../devices/iommu@f,e0000000/vme@f,df010000/SUNW,pn@4d,1080000/ipi3sc@0,0/i
d@3,0:a,raw;


But definitely back everything up first ! Ian

"IF" is not a word it's a way of life
 
Best thing is to download the disksuit doc from docs.sun.com.
I keep it as a reference and the explanation isn't bad either.
One thing to watch, I found many existing systems had been setup with 4 database replicas(of the mirrors ), 2 on the system disk and 2 on the mirror disk. The trouble is you need half plus one of the database replicas to be valid for your system to boot so if you lose the mirror disk you can't boot up. I setup as a minimum 5 so if you lose a drive you will stil have 3 copies of the database and will be able to boot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top