The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change record detail...in file happyv Shell Programming and Scripting 5 03-12-2007 01:06 AM
forgot metaroot command cypg SUN Solaris 12 10-04-2005 07:40 AM
how to use the grep to find detail in a file etravels SUN Solaris 1 03-10-2004 02:03 PM
Getting detail out of a log file... Cameron UNIX for Dummies Questions & Answers 3 08-22-2002 10:36 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2003
hugo_perez hugo_perez is offline
Registered User
  
 

Join Date: Apr 2002
Location: Argentine - that better than to eat meat and to drink wine (both Argentineans)?.
Posts: 132
what does metaroot in detail?

I have a problem with a submirror of the root filesystem,
in the procedure in order to unmirror the FS say:
metadetach -f d0 d20
metaroot c0t0d0s0

but, in my system the metaroot cause a segmentation fault coredump. I knew that the command modify the /etc/system and
the /etc/vfstab.

I try to modify both manually, commenting the lines with
bootlist (/etc/system) and modifying then line in vfstab to a traditional / fs.

But I want to know more about metaroot.

Thanks. Hugo.

Last edited by hugo_perez; 12-21-2003 at 12:27 PM..
  #2 (permalink)  
Old 08-05-2003
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
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
  #3 (permalink)  
Old 08-05-2003
hugo_perez hugo_perez is offline
Registered User
  
 

Join Date: Apr 2002
Location: Argentine - that better than to eat meat and to drink wine (both Argentineans)?.
Posts: 132
I was looking to demirroring nor to mirroring

I was looking to demirroring nor to mirroring.

Thanks.

Note: I was solved de problem.
  #4 (permalink)  
Old 08-05-2003
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
Wink ups....

read to fast....
sorry
but I also know this answer.... ;-)

follow the purple rabbit:
http://docs.sun.com/db/doc/806-3205/...ovetasks-41242
bye bye
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0