forgot metaroot command


 
Thread Tools Search this Thread
Operating Systems Solaris forgot metaroot command
# 1  
Old 09-28-2005
forgot metaroot command

Smilie
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
# 2  
Old 09-28-2005
I would not expect that to render the system unbootable. Instead, the system should just boot up on the original slices. My guess is that some other error rendered the box unbootable. Smilie

But I think you can boot the install cd into single user mode and mount the root disk as /mnt. The instuctions for doing can be found in our faq section in the "lost root password" article. Once it is mounted, I think, that you can run metaroot with the -R option. I have never done that though.
# 3  
Old 09-28-2005
Boot into single user from cdrom, mount your / partition to /a or /mnt. Edit /a/etc/system and /a/etc/vfstab. Remove any SDS info in /a/etc/system and comment out meta devices in vfstab (add in normal partitions back in - whatever your original vfstab contained). Save files, remove the config files for Disksuite (/a/etc/lvm/*.cf), umount /a, fsck that partition, halt and boot from original disk.
# 4  
Old 09-28-2005
hi thanks in advance.
But i have original vfstab(as shown below) before I create replica. Mean it already have some replicas before I create the d3. of course these was not create by me.

And then I create d3 and forgot to issue metaroot. How am i go back this this original setup without removing all metadevices. Really need your advice here.

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging
/dev/md/dsk/d2 /dev/md/rdsk/d2 /home ufs 2 yes logging
swap - /tmp tmpfs - yes -
# 5  
Old 09-29-2005
Metaroot is the command to issue when adding the / partition. It sets up the system files for root (/) metadevice. IF that is your original vfstab you posted, then it shows the following:

/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging

If that is an original entry, then the d3 that you were trying to add doesn't require a metaroot command (unless you were doing something more than adding in a new parition into DiskSuite).

What partition/mount point are you trying to add with the d3? Please explain the original state of filesystems and what you were trying to add (including mount points).
# 6  
Old 09-29-2005
hi,
yes, posted was my original vfstab. .. Smilie

the original filesystenm was:
d0 - d10, d11 - c0t0d0s0,c0t1d0s0
d1 - d12, d13 - c0t0d0s1,c0t1d0s1
d2 - d14, d15 - c0t0d0s6,c0t1d0s6


These are the step I have done to my system:

I make a partition c0t0d0s7 and c0t1d0s7 with 30G each
try to mount it to /export/home/oracle but failed.

so guess it may need to mirror it before mount. so I did these.

metainit -f d16 1 1 c0t0d0s7
metainit -f d17 1 1 c0t1d0s7
metainit d3 -m d16
metattach d3 d17

mount /dev/md/dsk/d3 /export/home/oracle

then reboot ( and it keeps reset/sebooting )
# 7  
Old 09-29-2005
Well, there is no standard but in my experience, the metadb is usually placed on slice 7. If you have overwritten the metadb information, then you have toasted the old set up.

See if you can find where the metadb were stored - if it was slice 7, then I don't know if those can be restored or not but it certainly sounds like this is what you have done (would cause server not to boot).

Was there some space reserved on slice 7 before you changed it? Do you have the output of the metadb command (which would show which partition the database was on)?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

I have forgot my root password. Solaris 10

hi everyone i have forgot my root password and i have other user to login. can i get the password without restarting the server as that cant be afforded. . it is a Sparc architecture 2U blade server. it is old server mounted and functional since 2009. what should be the modus oprandee. i am novice... (5 Replies)
Discussion started by: janakors
5 Replies

2. Shell Programming and Scripting

New process, forgot the key point

i am using a newprocess, but i forgot the key point Changed subject. See post below from Neo (2 Replies)
Discussion started by: Maryeveryday
2 Replies

3. Red Hat

Forgot Passwd

Dear all, I am using RHEL5. In that machine i forgot the root passwd. But i can able to login by using my username. But performing administrative tasks it will asks the root login. Can somebody tell me reset the root passwd. Thanks in advance. Regards, Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies

4. UNIX for Dummies Questions & Answers

Forgot root password

i am a new user of unix . i lost my SGI unix server root password Any body please help me,how get password? (2 Replies)
Discussion started by: vasu.k82
2 Replies

5. Solaris

forgot password

hello friends, I am currently using solaris 10. I have lost the root password. Can you please give me a step by step procedure on how to set the password again. (11 Replies)
Discussion started by: nsharath
11 Replies

6. Red Hat

forgot root passwd

hi i have a RHEL 4 and have forgot root passwd tried to boot in by singel user and then changing the passwd but it's not letting me do that ......throwing some weird error as .......manipulation i also tried to make a new user from CLI but even though it's not letting me in from that user as... (12 Replies)
Discussion started by: techbravo
12 Replies

7. UNIX for Dummies Questions & Answers

I forgot my UNIX password!!

Hello, Is there a way to reset the "root" unix password, pretty much like you would do in linux by going into single user mode? :confused: :confused: Thank you in advance. (5 Replies)
Discussion started by: Mr Big
5 Replies

8. HP-UX

forgot password

i forgot my password on a HP-UX 9.xx machine. is there a possible way of changing it without knowing the root passwd? I would do it with a boot disk and chroot but I dont have a boot disk available.... any ideas? thanks!! Paul Tittel (1 Reply)
Discussion started by: paultittel
1 Replies

9. Linux

forgot password red hat ?

Dear Forum savants, I have a problem that I am not sure how to overcome. Two years ago I had a friend build me computer with a linux os (red hat) for learning purposes. It happens to have an oracle server on it as well... Anyway , because of personal reasons, I lost complete interest in... (5 Replies)
Discussion started by: jxh461
5 Replies

10. UNIX for Advanced & Expert Users

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... (3 Replies)
Discussion started by: hugo_perez
3 Replies
Login or Register to Ask a Question