Solved

Mirroring root on an Ultra 3000

Posted on 1997-07-14
2
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

696 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