08-05-2003
the metaroot command edits the /etc/vfstab and /etc/system files so that the system may booted with the root file system (/) on an appropriate metadevice. The only metadevices that support the root file system are a stripe with only a single disk or a mirror on a single-disk stripe.
you should initialise the metadevices first!
You have to edit your /etc/lvm/md.tab
d10 1 1 /dev/dsk/c0t0d0s0
d20 1 1 /dev/dsk/c0t1d0s0
d0 -m d10
d11 1 1 /dev/dsk/c0t0d0s1
d21 1 1 /dev/dsk/c0t1d0s1
d1 -m d11
.
.and so on...
.
now initialise:
metainit -f d11
metainit -f d21
metainit -f d1
.
.and so on ..... (also d10,d20,d0!!)
.
after that type:
metaroot d0
this edit your /etc/vfstab an set the / to a metadevice
now edit your vfstab by yourselft and set the other device to metadevice:
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t1d0s4 ------>
dev/md/dsk/d4 /dev/md/rdsk/d4
.
. and so on
.
now you have to REBOOT!!!!!
after the reboot you can set up the mirror
metattach d0 d20
metattach d1 d21
.
.and so on
.
with metastat you see how far he is....
greetings Preßy
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'd like to peruse a log file and from it generate another file from the first instance of "Jul 11" to the first instance of "Jul 18" within the log file. (3 Replies)
Discussion started by: Cameron
3 Replies
2. Solaris
:o
hi, i am new to Unix. I was try to do a mirror on solaris 8 with Solstice DiskSuite. Unfortunately I have missed the metaroot command and reboot system. The system unable to boot up.
May i know what should I do to bring the system up? Pls help.
thks and regards,
ann (12 Replies)
Discussion started by: cypg
12 Replies
3. UNIX for Advanced & Expert Users
hi frnds
when i run the top it wil give the following o/p
i want to know what it indicate ....???
what is us,sy,ni,id,wa ,etc .....??
------------------------------- o/p --------------------
Tasks: 551 total, 1 running, 550 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.0%us, 3.2%sy, ... (1 Reply)
Discussion started by: luckypower
1 Replies
4. Solaris
Hi All,
My system patch detail is below
Generic_12712-11 sun4u .
can you please, what patch level is needed and where can i get it .
Thanks (9 Replies)
Discussion started by: kumarmani
9 Replies
5. UNIX for Dummies Questions & Answers
Hi all experts,
I want to find out what oracle product has come with the server and their version detail. We have Solaris 10. Can you tell me what Unix command will full fill this requirement?
Thanks,
AJ
-----Post Update-----
please help
-----Post Update-----
please help guys (1 Reply)
Discussion started by: ma466
1 Replies
6. Cybersecurity
As a root user i switch to a different user say "oratest". I would like to know the details like at what time did the switch ( su - oratest ) happen.
Are there any logs to check this
Thanks. (2 Replies)
Discussion started by: jjoy
2 Replies
7. AIX
I am mac end user learn some shell and applescripting
I am looking AIX as system admin as career and learning AIX p520
what is scope of AIX as admin and about technology in demand in market
I am confused, can anybody from AIX elaborate or mail me some experience
please: (1 Reply)
Discussion started by: himanshuk
1 Replies
8. Shell Programming and Scripting
Hi All,
For some reason, I need to have the printer detail from the AIX. Following are the part of /etc/qconfig and /etc/hosts. Can any one of you please help me with an awk some other option to get the detail ? I have mentioned the required output format at the end.
/etc/qconfig
s63lb1:
... (3 Replies)
Discussion started by: sraj142
3 Replies
9. AIX
Hi ALL,
I always use du command for analyzing diskusage to housekeep a filesystem.
Can somebody tell the where first row filesize resides?
bash-3.2# df -gt /tmp
Filesystem GB blocks Used Free %Used Mounted on
/dev/hd3 16.50 10.01 6.49 61% /tmp
bash-3.2#
bash-3.2# pwd... (6 Replies)
Discussion started by: Thala
6 Replies
10. Solaris
Hi,
I am using HP Ultarium Tape drive to backup my oracle DB. Is that any command to identify the tape serial number or any other tape details that inserted into the tape drive? (2 Replies)
Discussion started by: tharmendran
2 Replies
LEARN ABOUT DEBIAN
metaroot
metaroot(1M) metaroot(1M)
NAME
metaroot - setup system files for root (/) metadevice
SYNOPSIS
/usr/sbin/metaroot -h
/usr/sbin/metaroot [-n] [-k system-name] [-v vfstab-name] [-c mddb.cf-name] [-m md.conf-name] [-R root-path] device
The metaroot command edits the /etc/vfstab and /etc/system files so that the system may be booted with the root file system (/) on an
appropriate metadevice. The only metadevices that support the root file system are a stripe with only a single slice or a mirror on a sin-
gle-slice stripe.
If necessary, the metaroot command can reset a system that has been configured to boot the root file system (/) on a metadevice so that it
uses a physical slice.
Root privileges are required for all of the following options except -h.
The following options are supported:
-c mddb.cf-name Use mddb.cf-name instead of the default /etc/lvm/mddb.cf file as a source of metadevice database locations.
-h Display a usage message.
-k system-name Edit a user-supplied system-name instead of the default /etc/system system configuration information file.
-m md.conf-name Edit the configuration file specified by md.conf-name rather than the default, /kernel/drv/md.conf.
-n Print what would be done without actually doing it.
-R root-path When metaroot modifies system files, it accesses them in their relative location under root-path.
The -R option cannot be used in combination with the -c, -k,-m, or -v options.
Note - The root file system of any non-global zones must not be referenced with the -R option. Doing so might damage the
global zone's file system, might compromise the security of the global zone, and might damage the non-global zone's
file system. See zones(5).
-v vfstab-name Edit vfstab-name instead of the default /etc/vfstab table of file system defaults.
The following operands are supported:
device Specifies either the metadevice or the conventional disk device (slice) used for the root file system (/).
Example 1: Specifying Root File System on Metadevice
The following command edits /etc/system and /etc/vfstab to specify that the root file system is now on metadevice d0.
# metaroot d0
Example 2: Specifying Root File System on SCSI Disk
The following command edits /etc/system and /etc/vfstab to specify that the root file system is now on the SCSI disk device
/dev/dsk/c0t3d0s0.
# metaroot /dev/dsk/c0t3d0s0
/etc/system System configuration information file. See system(4).
/etc/vfstab File system defaults.
/etc/lvm/mddb.cf Metadevice state database locations.
/kernel/drv/md.conf Configuration file for the metadevice driver, md.
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWmdu |
+-----------------------------+-----------------------------+
mdmonitord(1M), metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M),
metarecover(1M), metarename(1M), metareplace(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), metattach(1M), md.tab(4),
md.cf(4), mddb.cf(4), md.tab(4), attributes(5), md(7D)
6 Apr 2005 metaroot(1M)