Solved

Mirroring root on an Ultra 3000

Posted on 1997-07-14
2
372 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to handle awk return value 6 66
Virtualizing TAPE on dual VIOS 3 77
Move nodes from one TSM to another. 3 60
Unix Script: Loop over all days of a month 17 88
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
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.
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.

920 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

11 Experts available now in Live!

Get 1:1 Help Now