Apologies for the delay...work has been hectic of late, with the school year
just commencing :(
I got alot of RTFM answers, but I must have printed off a different copy then
others have, since the one I have doesn't seem to have a section on this :(
It turns out the solution was relatively simple...I had overlooked the metaroot
command.
The two answers that I did get back that I found the most useful (had a couple
of others that had most, but not all, of the information included below) are
included. Thanks to all that did answer...
The first one gives how to do this from the command line, while the second
shows how to do it from metatool...
The Query:
> I have a quick question concerning using DiskSuite to mirror
> the root file system. How do you do it?
>
> I've enabled a metadevice that is the mirror device, with the
> root and mirror file systems as submirrors. This works, and they resync'd.
> But, what do I mount on boot up? The docs don't seem to be very clear
> on how to do this, or else I'm missing something...have printed out the
> postscript manual, and scanned through all the sections that I thought were
> pertinent :(
The Answers:
==========================================================
From: "Christopher L. Barnard" <cbar44@tsg.cbot.com>
I think this is just from the manual, but I've followed these particular
instructions when building a new server so I know they work...
Mirroring the root filesystem
In this example, /dev/dsk/c0t3d0s0 is the existing, populated, /
partition. We will be mirroring it onto /dev/dsk/c1t3d0s0.
Specify a metadevice for the existing filesystem by making an entry in
the /etc/opt/SUNWmd/md.tab file.
/dev/md/dsk/d10 1 1 /dev/dsk/c0t3d0s0
Specify the one-way mirror in the /etc/opt/SUNWmd/md.tab file by
inserting the following line:
/dev/md/dsk/d0 -m /dev/md/dsk/d10
Note that this mirror only specifies one half of the submirror. This is
intentional. The other half of the mirror will be attached manually in a later
step.
Specify a metadevice for the new submirror on the other half of the
mirror by entering the following in the /etc/opt/SUNWmd/md.tab file:
/dev/md/dsk/d20 1 1 /dev/dsk/c1t3d0s0
Run the metainit command for each of the metadevices and the metamirror
defined in the /etc/opt/SUNWmd/md.tab file. Note that the -t option is used
with metainit for /dev/dsk/md/d10 because the component being used has the
root filesystem currently mounted. metainit normally fails if the component
has a filesystem currently mounted, but the -f force option allows the
metadevice to be activated.
# /usr/opt/SUNWmd/sbin/metainit /dev/md/dsk/d20
# /usr/opt/SUNWmd/sbin/metainit -f /dev/md/dsk/d10
# /usr/opt/SUNWmd/sbin/metainit /dev/md/dsk/d0
Edit the /etc/vfstab file to duplicate the current entry for the root
filesystem, and comment out one of those entries. The next step is going to
edit this file automatically, and before this happens we want to save a
commented-out copy of what the file used to look like.
Run the metaroot commmand. This command edits the /etc/system and
/etc/vfstab files to add the necessary information to mirror root.
# /usr/opt/SUNWmd/sbin/metaroot /dev/md/dsk/d0
Reboot the system.
/usr/sbin/reboot
Attach the new metadevice to the one-way mirror using the metattach
command.
# /usr/opt/SUNWmd/sbin/metattach /dev/md/dsk/d0 /dev/md/dsk/d20
Once this command is executed, the system will begin syncing the new
metadevice with the current root filesystem.
good luck.
+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
==========================================================
From: "Mike Nguyen" <miken@mwh.com>
You might be mouting something like this
mount /dev/md/dsk/d0 /
The following is what I have done and I did write down all the
steps that I have done. Hope this would help.
Hardware: A dual enclose 2 x 2.1G disk
OS: Solaris 2.5.1
Disksuite version 4.0
root@jake:/tmp> format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t1d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0
1. c0t3d0 <SUN0535 cyl 1866 alt 2 hd 7 sec 80>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@3,0
2. c0t4d0 <WESTERN SCIENTIFIC SEAGATE ST32171N cyl 5086 alt 2 hd 5 sec
165> none
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@4,0
3. c0t5d0 <WESTERN SCIENTIFIC SEAGATE ST32171N cyl 5086 alt 2 hd 5 sec
165>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@5,0
Specify disk (enter its number): 2
Total disk cylinders available: 5086 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 1 - 2483 1000.23MB (2483/0/0) 2048475
2 backup wm 0 - 5085 2.00GB (5086/0/0) 4195950
3 unassigned wm 2484 - 5081 1.02GB (2598/0/0) 2143350
4 unassigned wm 5082 - 5083 0.81MB (2/0/0) 1650
5 unassigned wm 5084 - 5085 0.81MB (2/0/0) 1650
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
Specify disk (enter its number)[2]: 3
Total disk cylinders available: 5086 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 1 - 2483 1000.23MB (2483/0/0) 2048475
2 backup wm 0 - 5085 2.00GB (5086/0/0) 4195950
3 unassigned wm 2484 - 5081 1.02GB (2598/0/0) 2143350
4 unassigned wm 5082 - 5083 0.81MB (2/0/0) 1650
5 unassigned wm 5084 - 5085 0.81MB (2/0/0) 1650
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
What to do:
I. Create the replicas
----------------------
1) partition the disk to have 2 slices w/ 2c (2 cylinder each) on each disk
in this example I use slice 4 and 5 on target 4 and
slice 4 and 5 on target 5)
2) then label them
3) run Disksuite using command "metatool"
4) click on the MetaDB to bring up the canvas
5) click on Slices... button from the menu bar, to get the list of file systems
partition, then highlight 4 slices c0t4d0s4, c0t4d0s5 and c0t5d0s5, c0t5d0s5.
Then drop all in the slices into the MetaDb canvas.
6) Click on Commit button from the menu bar.
II. Do the mirror
-----------------
1) Click on the Mirror icon on the left menu bar to open a canvas
2) Click on the Concat/Strip icon on the left menu bar to open a first canvas
3) From the Slice... menu, hightlight the slice you want to do mirror, drag and
drop to the 1st Concat/Strip canvas, then do the Commit
4) Click on the Concat/Strip icon on the left menu bar to open a second canvas
5) From the Slice... menu, hightlight the slice you want to do mirror, drag and
drop to the 2nd Concat/Strip canvas, then do the Commit
6) Drag both of the 1st Concat/Strip and 2nd Concat/Strip and drop them in
the MetaDB icon section. Note do not drop in the slices sections.
Then do the Commit.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:03 CDT