SUMMARY: Attempt to remove SDS from root disc caused "mount: /dev/dsk/c0t0d0s0 is not this fstype."

From: Simon Loewenthal <simonl_at_PartyGaming.com>
Date: Wed Jan 09 2008 - 06:13:31 EST
SUMMARY

The reason for the errors was because the default boot disc was set to the
rootmirror (c1t0d0s0) and not c0t0d0s0.
This meant that the vfstab entry for root was incorrect.
Booting from the correct device (and updating the OBP default boot device)
solved the problem.

Thank-you to everyone for theit suggestions.


-----Original Message-----

Dear all,

I have a small problem that has knocked out a domain :(  Has anyone got any
clues on what went wrong, and of course how on earth I mend it.  Myself & a
collegue have spent this morning googeling and looking on the Sun site to
try and work this out but have had no luck.

* Today, I tried to remove SDS from the root & swap partition.   
  I had installed Veritas VM and FS but did not run the vxinstall script

* What I did to remove SDS on root and swap:

metaroot /dev/dsk/c0t0d0s0
checked that /etc/system & vfstab were correct metadetach d10 d12 (the
second mirror of the root disc) dumpadm -d /dev/dsk/c0t0d0s1 (updated
dumpadm)


/etc/vfstab is now:
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no
logging
/dev/md/dsk/d30    /dev/md/rdsk/d30     /export/home    ufs     2       yes
logging
/dev/md/dsk/d40    /dev/md/rdsk/d40     /u01    ufs     2       yes
logging
swap    -       /tmp    tmpfs   -       yes     size=512m


* Rebooted and got it would not mount / other than as a ro device.  Here
follows the output of boot and df:

Sun Fire E25K, using IOSRAM based Console Copyright 1998-2003 Sun
Microsystems, Inc.  All rights reserved.
OpenBoot 4.13.3, 32768 MB memory installed, Serial #44690401.
Ethernet address 0:0:be:a9:eb:e1, Host ID: 82a9ebe1.

Rebooting with command: boot
Boot device: rootmirror  File and args:
Loading ufs-file-system package 1.4 04 Aug 1995 13:02:54.
FCode UFS Reader 1.12 00/07/17 15:48:16.
Loading: /platform/SUNW,Sun-Fire-15000/ufsboot
Loading: /platform/sun4u/ufsboot
SunOS Release 5.9 Version Generic_118558-33 64-bit Copyright 1983-2003 Sun
Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
obpsym: symbolic debugging is available.
NOTICE: Kernel Cage Splitting is ENABLED
WARNING: /pci@21c,600000/SUNW,emlxs@1/fp@0,0/ssd@w5006048c4893fe23,0 (ssd0):
        Corrupt label; wrong magic number

WARNING: /pci@21c,600000/SUNW,emlxs@1/fp@0,0/ssd@w5006048c4893fe13,0 (ssd8):
        Corrupt label; wrong magic number

WARNING: /pci@23c,600000/SUNW,emlxs@1/fp@0,0/ssd@w5006048c4893fe2c,0 (ssd1):
        Corrupt label; wrong magic number

WARNING: /pci@23c,600000/SUNW,emlxs@1/fp@0,0/ssd@w5006048c4893fe1c,0 (ssd9):
        Corrupt label; wrong magic number

NOTICE: VxVM not started
configuring IPv4 interfaces: ce4 dman0.
Hostname: www
NOTICE: VxVM not started
mount: /dev/dsk/c0t0d0s0 is not this fstype.
failed to open /etc/coreadm.conf: Read-only file system
NOTICE: VxVM not started
UX:vxfs qlogrec: ERROR: Cannot open file /etc/qlog/config.lock UX:vxfs
qlogrec: ERROR: Problem writing file /etc/qlog/config.lock: Bad file number
UX:vxfs qlogck: ERROR: Cannot open file /etc/qlog/config.lock UX:vxfs
qlogck: ERROR: Problem writing file /etc/qlog/config.lock: Bad file number
UX:vxfs qlogck: TO FIX: Command qlogck was not successful UX:vxfs qlogck:
WARNING: Fix whatever problem was encountered and rerun UX:vxfs qlogck:
WARNING: the command qlogck

UX:vxfs qlogck: WARNING: Running the command qlogck with the -f option
UX:vxfs qlogck: WARNING: will fix most of the problem(s) but will force
UX:vxfs qlogck: WARNING: a full consistency check (full fsck) UX:vxfs
qlogck: WARNING: on the VxFS volume(s) which cannot be fixed.

The QuickLog routine 'qlogck' encountered the errors mentioned above. It is
recommended that you enter the maintenance shell and attempt to correct
these problems. Once all possible corrections have been made, enter
Control-d to exit the maintenance shell, and initialization will resume.
See qlogck(1M) for assistance.


Type control-d to proceed with normal startup, (or give root password for
system maintenance):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Jan  8 06:32:04 su: 'su root' succeeded for root on /dev/console

You have new mail.
root@www # df
/                  (/pci@23c,700000/pci@1/pci@1/scsi@2/disk@0,0:a):57877978
blocks  3667431 files
/proc              (/proc             ):       0 blocks    29991 files
/etc/mnttab        (mnttab            ):       0 blocks        0 files
/dev/fd            (fd                ):       0 blocks        0 files
/var/run           (swap              ):72459376 blocks  3204639 files
root@www #

I can mount /dev/dsk/c0t0d0s0 as /mnt and it FSCKs without any problems.  
I tried a  mount -o rw,remount /
	mount: /dev/dsk/c0t0d0s0 is not this fstype.

Next, root@www #  fsck /dev/rdsk/c0t0d0s0
** /dev/rdsk/c0t0d0s0
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3a - Check Connectivity
** Phase 3b - Verify Shadows/ACLs
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cylinder Groups
92565 files, 2339755 used, 28938987 free (15003 frags, 3615498 blocks, 0.0%
fragmentation)
root@www # mount -o rw,remount /dev/dsk/c0t0d0s0 /
mount: /dev/dsk/c0t0d0s0 is not this fstype.

[demime 1.01b removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jan 9 06:13:53 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:08 EST