Re: Help - I can't create device files.
From: Dr. David Kirkby (drkirkby_at_ntlworld.com)
Date: 10/27/03
- Next message: Dr. David Kirkby: "Re: Help - I can't create device files."
- Previous message: Dr. David Kirkby: "Re: Help - I can't create device files."
- In reply to: Beardy: "Re: Help - I can't create device files."
- Next in thread: Beardy: "Re: Help - I can't create device files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 14:19:34 +0000
Beardy wrote:
>
> Dr. David Kirkby wrote:
> > I had a relatively small problem today on my Ultra 80 running Solaris
> > 9 that I managed to make into a **big** problem. If you have any
> > suggestions how I can get out of this mess, please let me know. Sorry
> > if the message is a bit long-winded, but hopefully someone can see
> > what I need to do.
> >
> > The basic problem is I can't seem to create device files for some
> > external disks, so I can't read them, although the disks are seen by
> > format and mount okay if I boot from cd-rom. That's the problem - this
> > is the background.
> >
> > The original (small) problem was the external disks would not mount.
> > For reasons I can't work out, following a boot -r, the /dev/dsk/c3*
> > device files had been removed and in their place were files which
> > appeared to be on controller #5 (/dev/dsk/c5*) - which is a bit odd
> > given I only have 4 SCSI controllers - two on the motherboard, plus a
> > dual SCSI card.
> >
> > I edited /etc/vfstab and replaced the all the c3's with c5's and the
> > machine booted and mounted all systems okay. However, like a stupid
> > fool, not content with that, I thought I'd remove the appropriate
> > files in /devices, with a hope of getting the disks back to their
> > correct place - on controller #3. The problem was I obviously removed
> > the wrong file(s) in /devices, as then the system was completely
> > unbootable. I could do nothing with it. boot -b, boot -r, all failed
> > miserably.
> >
> > My backups of the root file system were not as recent as they should
> > be, so I booted from CD, mounted and backed up every single partition
> > to tape, although the backup of the root file system was clearly
> > missing some important device files.
> >
> > I then reinstalled the system from the Solaris installation CD, doing
> > the smallest installation. I then did a 'boot cdrom' restored the /
> > and /usr file systems from tape, but without any files in /devices,
> > /dsk or /rdsk.
> >
> > The system now boots and mounts all the file systems I created during
> > the install (/, /var, /usr), plus one other (/export/home) which is on
> > an internal disk. The data on /export/home has not been changed, so I
> > all the user directories remain.
> >
> > The problem is I can't create device files. Following a boot -r, there
> > are entries in /dev/dsk for controllers 0 and 1, but not and 3. The
> > disks and partitions on the disks on c3 are visible to format. Booting
> > from CD I can mount them. But I can't mount them if I boot from disk,
> > as I don't have any device files, and seem unable to create them with
> > a boot -r.
> >
> > Any suggestions - other than to keep better backups!
> >
> > Dave Kirkby
>
> Dave, Have you checked that /etc/path_to_inst looks OK? I'm just
> digging..... ;^}
Hi,
I don't really know what to expect of it, but here is its contents
now, following a restoration of the root file system from tape (minus
device files), running devfsadm and a boot -r.
When I do a probe-scsi-all, I see the disk as listed under
/pci@1f,4000/scsi@2,1 - SCSI ID's 2 and 3. There are numerious entries
for /pci@1f,4000/scsi@2,1 in /etc/path_to_inst, so that looks hopeful
I would have thought.
Anyway, here is /etc/path_to_inst, with /kernel/drv/sd.conf below it.
# cat /etc/path_to_inst
#
# Caution! This file contains critical kernel state
#
"/pci@1f,4000" 0 "pcipsy"
"/pci@1f,4000/scsi@2,1" 3 "glm"
"/pci@1f,4000/scsi@2,1/ses@6,0" 54 "ses"
"/pci@1f,4000/scsi@2,1/ses@7,0" 55 "ses"
"/pci@1f,4000/scsi@2,1/ses@4,0" 52 "ses"
"/pci@1f,4000/scsi@2,1/ses@5,0" 53 "ses"
"/pci@1f,4000/scsi@2,1/ses@2,0" 50 "ses"
"/pci@1f,4000/scsi@2,1/ses@3,0" 51 "ses"
"/pci@1f,4000/scsi@2,1/ses@0,0" 48 "ses"
"/pci@1f,4000/scsi@2,1/ses@1,0" 49 "ses"
"/pci@1f,4000/scsi@2,1/ses@8,0" 56 "ses"
"/pci@1f,4000/scsi@2,1/ses@9,0" 57 "ses"
"/pci@1f,4000/scsi@2,1/ses@f,0" 63 "ses"
"/pci@1f,4000/scsi@2,1/ses@d,0" 61 "ses"
"/pci@1f,4000/scsi@2,1/ses@e,0" 62 "ses"
"/pci@1f,4000/scsi@2,1/scg@0,0" 3 "scg"
"/pci@1f,4000/scsi@2,1/ses@b,0" 59 "ses"
"/pci@1f,4000/scsi@2,1/ses@c,0" 60 "ses"
"/pci@1f,4000/scsi@2,1/ses@a,0" 58 "ses"
"/pci@1f,4000/scsi@2,1/st@4,0" 25 "st"
"/pci@1f,4000/scsi@2,1/sd@d,0" 57 "sd"
"/pci@1f,4000/scsi@2,1/st@5,0" 26 "st"
"/pci@1f,4000/scsi@2,1/sd@e,0" 58 "sd"
"/pci@1f,4000/scsi@2,1/st@6,0" 27 "st"
"/pci@1f,4000/scsi@2,1/sd@f,0" 59 "sd"
"/pci@1f,4000/scsi@2,1/st@0,0" 21 "st"
"/pci@1f,4000/scsi@2,1/st@1,0" 22 "st"
"/pci@1f,4000/scsi@2,1/sd@a,0" 54 "sd"
"/pci@1f,4000/scsi@2,1/st@2,0" 23 "st"
"/pci@1f,4000/scsi@2,1/sd@b,0" 55 "sd"
"/pci@1f,4000/scsi@2,1/st@3,0" 24 "st"
"/pci@1f,4000/scsi@2,1/sd@c,0" 56 "sd"
"/pci@1f,4000/scsi@2,1/sd@4,0" 49 "sd"
"/pci@1f,4000/scsi@2,1/sd@5,0" 50 "sd"
"/pci@1f,4000/scsi@2,1/sd@6,0" 51 "sd"
"/pci@1f,4000/scsi@2,1/sd@0,0" 45 "sd"
"/pci@1f,4000/scsi@2,1/sd@1,0" 46 "sd"
"/pci@1f,4000/scsi@2,1/sd@2,0" 47 "sd"
"/pci@1f,4000/scsi@2,1/sd@3,0" 48 "sd"
"/pci@1f,4000/scsi@2,1/sgen@4,0" 3 "sgen"
"/pci@1f,4000/scsi@2,1/sd@8,0" 52 "sd"
"/pci@1f,4000/scsi@2,1/sd@9,0" 53 "sd"
"/pci@1f,4000/scsi@3,1" 1 "glm"
"/pci@1f,4000/scsi@3,1/ses@7,0" 23 "ses"
"/pci@1f,4000/scsi@3,1/ses@6,0" 22 "ses"
"/pci@1f,4000/scsi@3,1/ses@5,0" 21 "ses"
"/pci@1f,4000/scsi@3,1/ses@4,0" 20 "ses"
"/pci@1f,4000/scsi@3,1/ses@3,0" 19 "ses"
"/pci@1f,4000/scsi@3,1/ses@2,0" 18 "ses"
"/pci@1f,4000/scsi@3,1/ses@1,0" 17 "ses"
"/pci@1f,4000/scsi@3,1/ses@0,0" 16 "ses"
"/pci@1f,4000/scsi@3,1/ses@9,0" 25 "ses"
"/pci@1f,4000/scsi@3,1/ses@8,0" 24 "ses"
"/pci@1f,4000/scsi@3,1/ses@f,0" 31 "ses"
"/pci@1f,4000/scsi@3,1/ses@e,0" 30 "ses"
"/pci@1f,4000/scsi@3,1/ses@d,0" 29 "ses"
"/pci@1f,4000/scsi@3,1/ses@c,0" 28 "ses"
"/pci@1f,4000/scsi@3,1/scg@0,0" 1 "scg"
"/pci@1f,4000/scsi@3,1/ses@b,0" 27 "ses"
"/pci@1f,4000/scsi@3,1/ses@a,0" 26 "ses"
"/pci@1f,4000/scsi@3,1/st@5,0" 12 "st"
"/pci@1f,4000/scsi@3,1/sd@e,0" 28 "sd"
"/pci@1f,4000/scsi@3,1/st@4,0" 11 "st"
"/pci@1f,4000/scsi@3,1/sd@d,0" 27 "sd"
"/pci@1f,4000/scsi@3,1/st@6,0" 13 "st"
"/pci@1f,4000/scsi@3,1/sd@f,0" 29 "sd"
"/pci@1f,4000/scsi@3,1/st@1,0" 8 "st"
"/pci@1f,4000/scsi@3,1/sd@a,0" 24 "sd"
"/pci@1f,4000/scsi@3,1/st@0,0" 7 "st"
"/pci@1f,4000/scsi@3,1/st@3,0" 10 "st"
"/pci@1f,4000/scsi@3,1/sd@c,0" 26 "sd"
"/pci@1f,4000/scsi@3,1/st@2,0" 9 "st"
"/pci@1f,4000/scsi@3,1/sd@b,0" 25 "sd"
"/pci@1f,4000/scsi@3,1/sd@5,0" 20 "sd"
"/pci@1f,4000/scsi@3,1/sd@4,0" 19 "sd"
"/pci@1f,4000/scsi@3,1/sd@6,0" 21 "sd"
"/pci@1f,4000/scsi@3,1/sd@1,0" 16 "sd"
"/pci@1f,4000/scsi@3,1/sd@0,0" 15 "sd"
"/pci@1f,4000/scsi@3,1/sd@3,0" 18 "sd"
"/pci@1f,4000/scsi@3,1/sd@2,0" 17 "sd"
"/pci@1f,4000/scsi@3,1/sgen@4,0" 1 "sgen"
"/pci@1f,4000/scsi@3,1/sd@9,0" 23 "sd"
"/pci@1f,4000/scsi@3,1/sd@8,0" 22 "sd"
"/pci@1f,4000/scsi@2" 2 "glm"
"/pci@1f,4000/scsi@2/ses@c,0" 44 "ses"
"/pci@1f,4000/scsi@2/scg@0,0" 2 "scg"
"/pci@1f,4000/scsi@2/ses@b,0" 43 "ses"
"/pci@1f,4000/scsi@2/ses@a,0" 42 "ses"
"/pci@1f,4000/scsi@2/ses@f,0" 47 "ses"
"/pci@1f,4000/scsi@2/ses@e,0" 46 "ses"
"/pci@1f,4000/scsi@2/ses@d,0" 45 "ses"
"/pci@1f,4000/scsi@2/ses@9,0" 41 "ses"
"/pci@1f,4000/scsi@2/ses@8,0" 40 "ses"
"/pci@1f,4000/scsi@2/ses@3,0" 35 "ses"
"/pci@1f,4000/scsi@2/ses@2,0" 34 "ses"
"/pci@1f,4000/scsi@2/ses@1,0" 33 "ses"
"/pci@1f,4000/scsi@2/ses@0,0" 32 "ses"
"/pci@1f,4000/scsi@2/ses@7,0" 39 "ses"
"/pci@1f,4000/scsi@2/ses@6,0" 38 "ses"
"/pci@1f,4000/scsi@2/ses@5,0" 37 "ses"
"/pci@1f,4000/scsi@2/ses@4,0" 36 "ses"
"/pci@1f,4000/scsi@2/sd@9,0" 38 "sd"
"/pci@1f,4000/scsi@2/sd@8,0" 37 "sd"
"/pci@1f,4000/scsi@2/sgen@4,0" 2 "sgen"
"/pci@1f,4000/scsi@2/sd@1,0" 31 "sd"
"/pci@1f,4000/scsi@2/sd@0,0" 30 "sd"
"/pci@1f,4000/scsi@2/sd@3,0" 33 "sd"
"/pci@1f,4000/scsi@2/sd@2,0" 32 "sd"
"/pci@1f,4000/scsi@2/sd@5,0" 35 "sd"
"/pci@1f,4000/scsi@2/sd@4,0" 34 "sd"
"/pci@1f,4000/scsi@2/sd@6,0" 36 "sd"
"/pci@1f,4000/scsi@2/st@1,0" 15 "st"
"/pci@1f,4000/scsi@2/sd@a,0" 39 "sd"
"/pci@1f,4000/scsi@2/st@0,0" 14 "st"
"/pci@1f,4000/scsi@2/st@3,0" 17 "st"
"/pci@1f,4000/scsi@2/sd@c,0" 41 "sd"
"/pci@1f,4000/scsi@2/st@2,0" 16 "st"
"/pci@1f,4000/scsi@2/sd@b,0" 40 "sd"
"/pci@1f,4000/scsi@2/st@5,0" 19 "st"
"/pci@1f,4000/scsi@2/sd@e,0" 43 "sd"
"/pci@1f,4000/scsi@2/st@4,0" 18 "st"
"/pci@1f,4000/scsi@2/sd@d,0" 42 "sd"
"/pci@1f,4000/scsi@2/st@6,0" 20 "st"
"/pci@1f,4000/scsi@2/sd@f,0" 44 "sd"
"/pci@1f,4000/scsi@3" 0 "glm"
"/pci@1f,4000/scsi@3/scg@0,0" 0 "scg"
"/pci@1f,4000/scsi@3/ses@b,0" 11 "ses"
"/pci@1f,4000/scsi@3/ses@c,0" 12 "ses"
"/pci@1f,4000/scsi@3/ses@a,0" 10 "ses"
"/pci@1f,4000/scsi@3/ses@f,0" 15 "ses"
"/pci@1f,4000/scsi@3/ses@d,0" 13 "ses"
"/pci@1f,4000/scsi@3/ses@e,0" 14 "ses"
"/pci@1f,4000/scsi@3/ses@8,0" 8 "ses"
"/pci@1f,4000/scsi@3/ses@9,0" 9 "ses"
"/pci@1f,4000/scsi@3/ses@2,0" 2 "ses"
"/pci@1f,4000/scsi@3/ses@3,0" 3 "ses"
"/pci@1f,4000/scsi@3/ses@0,0" 0 "ses"
"/pci@1f,4000/scsi@3/ses@1,0" 1 "ses"
"/pci@1f,4000/scsi@3/ses@6,0" 6 "ses"
"/pci@1f,4000/scsi@3/ses@7,0" 7 "ses"
"/pci@1f,4000/scsi@3/ses@4,0" 4 "ses"
"/pci@1f,4000/scsi@3/ses@5,0" 5 "ses"
"/pci@1f,4000/scsi@3/sd@8,0" 7 "sd"
"/pci@1f,4000/scsi@3/sd@9,0" 8 "sd"
"/pci@1f,4000/scsi@3/sgen@4,0" 0 "sgen"
"/pci@1f,4000/scsi@3/sd@0,0" 0 "sd"
"/pci@1f,4000/scsi@3/sd@1,0" 1 "sd"
"/pci@1f,4000/scsi@3/sd@2,0" 2 "sd"
"/pci@1f,4000/scsi@3/sd@3,0" 3 "sd"
"/pci@1f,4000/scsi@3/sd@4,0" 4 "sd"
"/pci@1f,4000/scsi@3/sd@5,0" 5 "sd"
"/pci@1f,4000/scsi@3/sd@6,0" 6 "sd"
"/pci@1f,4000/scsi@3/st@0,0" 0 "st"
"/pci@1f,4000/scsi@3/st@1,0" 1 "st"
"/pci@1f,4000/scsi@3/sd@a,0" 9 "sd"
"/pci@1f,4000/scsi@3/st@2,0" 2 "st"
"/pci@1f,4000/scsi@3/sd@b,0" 10 "sd"
"/pci@1f,4000/scsi@3/st@3,0" 3 "st"
"/pci@1f,4000/scsi@3/sd@c,0" 11 "sd"
"/pci@1f,4000/scsi@3/st@4,0" 4 "st"
"/pci@1f,4000/scsi@3/sd@d,0" 12 "sd"
"/pci@1f,4000/scsi@3/st@5,0" 5 "st"
"/pci@1f,4000/scsi@3/sd@e,0" 13 "sd"
"/pci@1f,4000/scsi@3/st@6,0" 6 "st"
"/pci@1f,4000/scsi@3/sd@f,0" 14 "sd"
"/pci@1f,4000/ebus@1" 0 "ebus"
"/pci@1f,4000/ebus@1/fdthree@14,3023f0" 0 "fd"
"/pci@1f,4000/ebus@1/power@14,724000" 0 "power"
"/pci@1f,4000/ebus@1/SUNW,CS4231@14,200000" 0 "audiocs"
"/pci@1f,4000/ebus@1/se@14,400000" 0 "se"
"/pci@1f,4000/ebus@1/su@14,3083f8" 0 "su"
"/pci@1f,4000/ebus@1/su@14,3062f8" 1 "su"
"/pci@1f,4000/ebus@1/ecpp@14,3043bc" 0 "ecpp"
"/pci@1f,4000/network@1,1" 0 "hme"
"/pci@1f,4000/TSI,gfxp@5" 0 "gfxp"
"/pci@1f,4000/pci108e,5043@4" 0 "sunpcidrv"
"/pci@1f,4000/pci108e,7063@4" 0 "sunpci2drv"
"/options" 0 "options"
"/pci@1f,2000" 1 "pcipsy"
"/scsi_vhci" 0 "scsi_vhci"
"/pseudo" 0 "pseudo"
"/SUNW,ffb@1d,0" 0 "ffb"
# more /kernel/drv/sd.conf
#
# Copyright (c) 1992, by Sun Microsystems, Inc.
#
#ident "@(#)sd.conf 1.9 98/01/11 SMI"
name="sd" class="scsi" class_prop="atapi"
target=0 lun=0;
name="sd" class="scsi" class_prop="atapi"
target=1 lun=0;
name="sd" class="scsi" class_prop="atapi"
target=2 lun=0;
name="sd" class="scsi" class_prop="atapi"
target=3 lun=0;
name="sd" class="scsi"
target=4 lun=0;
name="sd" class="scsi"
target=5 lun=0;
name="sd" class="scsi"
target=6 lun=0;
name="sd" class="scsi"
target=8 lun=0;
name="sd" class="scsi"
target=9 lun=0;
name="sd" class="scsi"
target=10 lun=0;
name="sd" class="scsi"
target=11 lun=0;
name="sd" class="scsi"
target=12 lun=0;
name="sd" class="scsi"
target=13 lun=0;
name="sd" class="scsi"
target=14 lun=0;
name="sd" class="scsi"
target=15 lun=0;
- Next message: Dr. David Kirkby: "Re: Help - I can't create device files."
- Previous message: Dr. David Kirkby: "Re: Help - I can't create device files."
- In reply to: Beardy: "Re: Help - I can't create device files."
- Next in thread: Beardy: "Re: Help - I can't create device files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|