solaris 10 corrupted repository.db


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 10 corrupted repository.db
# 1  
Old 11-21-2011
solaris 10 corrupted repository.db

Recently had a SAN issue which somehow resulted in my repository.db getting corrupted. I tried using the restore_repository script as suggested by the OS. This did not work due to / being in read only. Per instructions I ran /lib/svc/method/fs-root. This seemed to work. Now on to /lib/svc/method/fs-usr. This did not work and caused a panic/reboot. I cannot do anything until / is out of read only. I tried killing svc.startd, but that didn't work as another svc.startd processes immediately started.
Does anyone have any suggestions? I haven't had much luck and I'm in a bind.

Thanks much!
# 2  
Old 11-21-2011
Boot to failsafe and run restore_repository from there.
# 3  
Old 11-21-2011
Sounds easy enough, but what is the command to boot to failsafe? I've never heard/done that before.
Thanks again

Okay, I did some additional digging and found the/a failsafe boot command (reboot -- -F failsafe). After this boot I ran the restore_repository script and again / was in read only. I ran the scripts as instructed without a panic this time and the restore_repository script still wouldn't run due to / in read only. Here's a short screen shot. Ideas?
# /lib/svc/method/fs-root
# /lib/svc/method/fs-usr
# /lib/svc/bin/restore_repository

See http://sun.com/msg/SMF-8000-MY for more information on the use of
this script to restore backup copies of the smf(5) repository.

If there are any problems which need human intervention, this script will
give instructions and then exit back to your shell.

Note that upon full completion of this script, the system will be rebooted
using reboot(1M), which will interrupt any active services.

The / filesystem is mounted read-only.

This must be rectified before /lib/svc/bin/restore_repository can continue.

If / or /usr are on SVM (md(7d)) partitions, first run
/lib/svc/method/svc-metainit

To properly mount / and /usr, run:
/lib/svc/method/fs-root
then
/lib/svc/method/fs-usr

After those have completed successfully, re-run:
/lib/svc/bin/restore_repository

to continue.

#

Last edited by KSFlyer; 11-21-2011 at 05:00 AM..
# 4  
Old 02-18-2012
To Recove corrupted repository (x86)

To Recove corrupted repository, follow the steps below -
(1) Boot the machine in single user ( failsafe ) mode.
(2) Mount the root disk r/w on /a.
(3) Run the command -
# /a/lib/svc/bin/restore_repository -r /a
(4) Reboot the machine.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 - Automatically update local IPS repository

Hi guys, I've got a local IPS repository on server 1 (local server in the basement) and a second one on server 2 in another data center. Both servers act as repository servers for their locations. The publisher list is like this pkg publisher PUBLISHER TYPE STATUS... (4 Replies)
Discussion started by: dheitepriem
4 Replies

2. Red Hat

Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia.

Most of my commands are returning this error on RHEL 6 64 bit: Also I tried installing many sofwtares, but it fails to correctly work. For example I treid installing dos2unix: # rpm -ivh dos2unix-5.3.3-5.ram0.98.src.rpm 1:dos2unix warning: user mockbuild does not... (0 Replies)
Discussion started by: India_2014
0 Replies

3. Solaris

Solaris repository

Someone know good software repositories for Solaris 10? I'm searching one with updated packages like Samba3,smbldaptools,openldap,etc Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

4. Solaris

corrupted motherboard

hi i have a sun server V890 and i added two cpu/memory modules to it but it caused the motherboard to become corrupted could you please help me find what causes this problem and how to avoid it because i changed the corrupted motherboard and i want to do the expansion and I'm scared that ... (2 Replies)
Discussion started by: bahjatm
2 Replies

5. Emergency UNIX and Linux Support

/etc/name_to_sysnum corrupted

Hi all , i have an issue in netra 20 server when i boot the system its getting rebooting and it is giving tha" /etc/name_to_sysnum " file not found i done OK> boot -ar then also not solved please can any body send the answer ASAP regards (3 Replies)
Discussion started by: wkbn86
3 Replies

6. HP-UX

Could be a corrupted file?

Hello! Do you know the meaning of... "crw-rw---- 1 informix informix 64 0x020001 Jan 21 2004 rifxroot" I don't know what the first "c" means. Furthermor, if I try to copy this file (rifxroot) it appears a message: "cp: cannot open rifxroot: No such device or address" I don't... (1 Reply)
Discussion started by: kaugrs
1 Replies

7. AIX

LV corrupted

I'm getting the following error after we replaced a failed disk in a mirrored logical volume. We cleared the device entry in ODM before adding the new disk but when we create the mirror we get the following error after running lslv. 0516-022 lslv: Illegal parameter or structure value.... (1 Reply)
Discussion started by: Alfredo Jimenez
1 Replies

8. SCO

kernerl corrupted

hi , how do i get boot on sco5.04 if it has a kernel corruption . and no kernel backup . is there any option on the boot : before i hit enter ? thx art :) (3 Replies)
Discussion started by: art_malabanan
3 Replies
Login or Register to Ask a Question