Solved

Mirroring root on an Ultra 3000

Posted on 1997-07-14
2
374 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
ID: 1812552
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
ID: 1812553
Thanks, I'll give it another try!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

773 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