Prev: oracle solaris inst tmp problem
Next: ssh on Solaris 10
From: Beardy on 7 Mar 2005 12:55 Mark Round wrote: >>Assuming you've booted using the Saolrsi CD-ROM, > > > Duh. I obviously meant "Solaris CD-ROM"... Time to put the keyboard > down, step away from the root prompt and get some caffeine :) "Saolrsi" - your body is telling you that you may be developing RSI. Don't try typing "risky", "pristine" or "rissoles" ;-)
From: Andrew Gabriel on 7 Mar 2005 13:31 In article <1110216996.187757.168070(a)f14g2000cwb.googlegroups.com>, "Mark Round" <mark.round(a)gmail.com> writes: > Backup ? Failing that, you might get away with copying it from the installation CD, particularly if you haven't added any drivers after installation. At least, it might get the system up further, and then you can say what else is still moaning about missing major numbers and we might be able to suggest how to fix those on a case-by-case basis. The file contains persistent kernel state which is not trivially recreated from other sources. > Or you could specify what version of Solaris you're running, and > someone here could post a copy of their file, assuming that's the only > thing that got wiped. Do you know how it got deleted or overwritten ? > > If it's more serious, and the whole SUNWcsr package (which includes > /etc/name_to_major on my Solaris 9 box) got removed, you could try > re-adding the package. If you really lost the whole Core Solaris root package, it's probably easiest to start by reinstalling ;-) -- Andrew Gabriel
From: Weiping He on 7 Mar 2005 17:51
Thanks a lot for your postings! The problem is that root partition is created from mirrored disks by Solstice DIsksuite Now it looks like I cannot get the mirror disks working. :( Here are the updated error messages: **************************************************************** Rebooting with command: boot cdrom -s Boot device: /pci@8,700000/scsi@1/disk@6,0:f File and args: -s SunOS Release 5.9 Version Generic_112233-03 64-bit Copyright 1983-2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Configuring /dev and /devices Using RPC Bootparams for network configuration information. Skipping interface fcip0 Skipping interface ce1 Skipping interface ce0 Skipping interface eri0 Skipping interface ge0 - INIT: SINGLE USER MODE # # # fsck -y /dev/rdsk/c1t1d0s0 ** /dev/rdsk/c1t1d0s0 ** Last Mounted on / ** Phase 1 - Check Blocks and Sizes INCORRECT BLOCK COUNT I=521 (6 should be 0) CORRECT? yes INCORRECT BLOCK COUNT I=4209 (10 should be 0) CORRECT? yes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? yes 10752 files, 1795265 used, 28417157 free (813 frags, 3552043 blocks, 0.0% fragme ntation) ***** FILE SYSTEM WAS MODIFIED ***** # fsck -y /dev/rdsk/c1t0d0s0 ** /dev/rdsk/c1t0d0s0 ** Last Mounted on /a ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 10753 files, 1795267 used, 28417155 free (811 frags, 3552043 blocks, 0.0% fragme ntation) # mount /dev/dsk/c1t1d0s0 /a # cd /a/etc # more name_to_major # # # cp /etc/name_to_major . # pwd /a/etc # touch /a/reconfigure # init 0 INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. umount: /dev busy The system is down. syncing file systems... done Program terminated {4} ok boot disk -as Resetting ... screen not found. keyboard not found. Keyboard not present. Using ttya for input and output. Sun Fire 880, No Keyboard Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.10.14, 16384 MB memory installed, Serial #57145409. Ethernet address 0:3:ba:67:f8:41, Host ID: 8367f841. Rebooting with command: boot disk -as Boot device: /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@0,0 File and args: -as Enter filename [kernel/sparcv9/unix]: Enter default directory for modules [/platform/SUNW,Sun-Fire-880/kernel /platfor m/sun4u/kernel /kernel /usr/kernel]: Name of system file [etc/system]: SunOS Release 5.9 Version Generic_117171-12 64-bit Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. WARNING: add_spec: No major number for jnic146x WARNING: add_spec: No major number for softata WARNING: add_spec: No major number for SUNW,pln WARNING: add_spec: No major number for SUNW,pln WARNING: add_spec: No major number for jnic146x WARNING: add_spec: No major number for SUNW,socal WARNING: add_spec: No major number for SUNW,socal WARNING: add_spec: No major number for SUNW,soc WARNING: add_spec: No major number for SUNW,soc WARNING: add_spec: No major number for SUNW,pln WARNING: add_spec: No major number for SUNW,pln root filesystem type [ufs]: Enter physical name of root device [/pci@8,600000/SUNW,qlc@2/fp@0,0/disk(a)w500000e01067c181,0:a]: WARNING: add_spec: No major number for jfca WARNING: add_spec: No major number for jfca Cannot assemble drivers for root /pci@8,600000/SUNW,qlc@2/fp@0,0/disk(a)w500000e01 067c181,0:a Cannot mount root on /pci@8,600000/SUNW,qlc@2/fp@0,0/disk(a)w500000e01067c181,0:a fstype ufs panic[cpu7]/thread=140a000: vfs_mountroot: cannot mount root 0000000001409970 genunix:vfs_mountroot+70 (0, 0, 0, 200, 1458170, 0) %l0-3: 000000000144bc00 000000000144bc00 0000000000002000 00000000014956e8 %l4-7: 000000000149b400 0000000001411e28 000000000144c400 000000000144f400 0000000001409a20 genunix:main+90 (1409ba0, f0062718, 1409ec0, 351d51, 2000, 500) %l0-3: 0000000000000001 000000000140a000 0000000001412f98 0000000000000000 %l4-7: 0000000078002000 0000000000354000 00000000014a3ac8 00000000010668e0 skipping system dump - no dump device configured rebooting... Resetting ... "Mark Round" <mark.round(a)gmail.com> wrote in message news:1110216996.187757.168070(a)f14g2000cwb.googlegroups.com... > Backup ? > > Or you could specify what version of Solaris you're running, and > someone here could post a copy of their file, assuming that's the only > thing that got wiped. Do you know how it got deleted or overwritten ? > > If it's more serious, and the whole SUNWcsr package (which includes > /etc/name_to_major on my Solaris 9 box) got removed, you could try > re-adding the package. Assuming you've booted using the Saolrsi CD-ROM, > and have mounted the root slice under /a, you could do something along > the lines of : > > # pkgadd -d . -R /a SUNWcsr > > Although after doing this, you'd have to make sure you re-applied any > patches that touched SUNWcsr. > > -Mark > |