metadb problem - server unable to boot


 
Thread Tools Search this Thread
Operating Systems Solaris metadb problem - server unable to boot
# 1  
Old 12-10-2009
metadb problem - server unable to boot

Hi everyone

I have a problem. My configuration is as follows:

Sun 280R server
2 x internal disks
3 x state databases on disk 1
3 x state databases on disk 2

Disk 1 was giving errors, so I cleared the mirrors on it, deleted the state databases and replaced the disk. Before attaching the sub-mirrors and re-creating the state databases I rebooted the server and now it's unable to boot. With hindsight it was probably a stupid thing to do, but now I've got to fix it.

Please see the screenshot below:

Image

Booting from a CD is no use, because I cannot access state databases with the metadb command.

Can anyone perhaps help me solve this problem?
# 2  
Old 12-10-2009
If I understand correctly, you have one good disk with file systems, and one new disk with nothing on it yet. You will need to boot from cdrom (or the net) and do some clean up.

Step 1 - boot from cdrom; mount the root file systems on the good disk; comment out the root md entry in /etc/system and change the md file system entries in /etc/vfstab to be ctd entries
Step 2 - boot from the good disk and recreate the md database and recreate the metadevices

good luck
# 3  
Old 12-10-2009
Thank you erice, you are a life saver.
# 4  
Old 01-04-2010
Doh!!!

I've followed the advice above, but when I boot from the good disk and run metadb, it returns the following error message:

there are no existing databases

I don't know how this is possible, but what can I do now?

Last edited by soliberus; 01-04-2010 at 10:34 AM..
# 5  
Old 01-04-2010
Please re-create the metadb and mirrors again. That's Step 2
# 6  
Old 01-06-2010
SVM

1. Delete the metadb which you have created.
2. Create the 7th partition again of 512 mb
3. create the metadb
metadb -a -f -c 3 c0t0d0s7

# metainit -f d11 1 1 c0t0d0s0
d11: Concat/Stripe is setup
# metainit d12 1 1 c0t1d0s0
d12: Concat/Stripe is setup
# metainit d10 -m d11
d10: Mirror is setup
# metaroot d10
# lockfs -fa
# reboot
...
# metattach d10 d12
d10: Submirror d12 is attached

---------- Post updated at 05:22 PM ---------- Previous update was at 05:18 PM ----------

Sorry wrongly posted on query

---------- Post updated at 05:25 PM ---------- Previous update was at 05:22 PM ----------

1. Boot the system in single user mode.
2. mount the root partition on mnt
3. change the /etc/vfstab file to normal file system path
change /dev/dsk/c0t0d0s0 /
reboot the system
You will be able to reboot the system at previous stage without SVM.

After successfully booted system you can recreate SVM by previous posted step
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris can not boot because metadb lost

how to recovery metadb? Thanks! (1 Reply)
Discussion started by: dzung
1 Replies

2. Red Hat

Unable to boot up after P2V

Hi, I just P2V an old machine running Redhat 5.5 on a physical server. After P2V was completed, when boot up it got an error. Please refer to the attachment for the error. Please assist. Thanks. (2 Replies)
Discussion started by: freshmeat
2 Replies

3. Ubuntu

Unable to boot Ubuntu server 15.10

Hi; I had Windows Server 2003 and performed a fresh Ubuntu Server 15 installation. After installation, Ubuntu server not booting I guess there is boot problem conflicting with my old Windows Server. This is my pastebin: http://paste.ubuntu.com/13851828/ Any help to start my new... (1 Reply)
Discussion started by: gc_sw
1 Replies

4. Solaris

Solved: Disk Unable to Boot

Update: The / file system (/dev/rdsk/c1t0d0s0) is being checked fsck unable to stat WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Root password for system maintenance (control-d to bypass): I am unable to hit control-d to by pass. I... (50 Replies)
Discussion started by: br1an
50 Replies

5. Solaris

Unable to boot from mirror disk on x86 server configured under VxVM

Hi, Can you help me on booting x86 server configured under VxVM. Server boots fine normally from both the disks but if I try to boot server from mirror disk without starting veritas, then it does not boot. vxplex -g rootdg dis var-02 vxplex -g rootdg dis swapvol-02 vxplex -g rootdg dis... (2 Replies)
Discussion started by: milindphanse604
2 Replies

6. Solaris

Boot disk crash with metadb config info

Hello all; We have a SunFire V240 with three disks that were part of a metadb. One of those disks, the boot disk, experienced a horrible death Monday night and we're now trying to recover from that. I know very little about metadb stuff, so please be gentle with me... I'm assuming... (3 Replies)
Discussion started by: Handon
3 Replies

7. Ubuntu

grub problem - unable to boot

I am not able to boot into my ubuntu. Grub gives me this message How do I boot linux? (6 Replies)
Discussion started by: locoroco
6 Replies

8. Red Hat

Unable to boot Fedora 10

Hello, I have a test PC running Fedora 10. Friday evening it was working fine, I have some perl scripts which are scheduled to run every morning. But when I started work this morning, I found I cannot ping the machine. When I switched on the monitor, I saw the GRUB promt :(. I am not sure... (10 Replies)
Discussion started by: SivaramaRaju
10 Replies

9. Solaris

unable to boot from disk1

I had installed solaris 10 on 440 on disk 0. I had done ufsrestore on disk1 from tape and then rebooted Rebooting with command: boot disk1 Boot device: /pci@1f,700000/scsi@2/disk@1,0 File and args: SunOS Release 5.10 Version Generic_118833-24 64-bit Copyright 1983-2006 Sun Microsystems,... (3 Replies)
Discussion started by: vr76413
3 Replies

10. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies
Login or Register to Ask a Question