Solved

Mirroring root on an Ultra 3000

Posted on 1997-07-14
2
366 Views
Last Modified: 2013-12-16
I followed the instructions in "Disksuite 4.0" Administration Guide for mirrorring root on a SPARC system.
Before rebooting, I manually modified the device name for
root in the /etc/vfstab to read:
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 2 no -
When I rebooted the machine, It went into maintenance mode
because it could not run fsck on /dev/md/rdsk/d0.
I would appreciate some advice on how to mirror root fs
using a second internal hard disk on the same controller.
What is the effect of running the metainit commands from
the command line a second time if an error condition accurs
as in this case? Also if I want to mirror several filesystems in the same way as root, do I need to comment out the previous entries made to "md.tab" file?
Can I make the entries for all the filesystems to be mirrored in md.tab and then run the metainit commands from
the command line for all of the fs in the md.tab?
Any advice will be appreciated!
P.S. These are all the points I have left!
Knowledge is power, but is is only useful if it is shared!

Best regards! Denmark
0
Comment
Question by:denmarkw
2 Comments
 
LVL 1

Accepted Solution

by:
henrys earned 40 total points
Comment Utility
1. pkgrm and then re-install DiskSuite (just to make sure everything is OK)
2. Set up the disk entries in /etc/opt/SUNWmd/md.tab:

d0 -m d10 d20 1
d10 1 1 c0t3d0s0
d20 1 1 c0t0d0s0

3. Set up the metadevices (I assume you've already set up the metadevice databases):
   metainit d10
   metainit -f d0
   metainit d20

4. Make sure /etc/system gets modified - this will also edit the root entry in /etc/vfstab:
   metaroot d0

5. reboot -- -r    <-- reconfiguration reboot.

I've done this several times now - you just need to make sure you get all the steps right.

If you make/get an error with a metadevice, the best thing to do is detach it from any mirrors, run metaclear, then metainit again. The md.tab file is only read at boot time, so you can make any changes you want on the running system. To preserve your changes across reboots, use
'metastat -p > /etc/opt/SUNWmd/md.tab' - save the old one first!
0
 

Author Comment

by:denmarkw
Comment Utility
Thanks, I'll give it another try!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now