Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controller Number has changed 1

Status
Not open for further replies.

bhawani123

IS-IT--Management
Nov 1, 2000
152
IN
Hello Guys,

I have been facing problem with solaris 2.7 booting after
attaching the device with another controller.
Earlier my current drive was attached with controller zero(c0t3d0s0) and Now I attached this drive with(c1t3d0s0).
boot sequence is ok but it ask for fsck and when i ran the fsck that time it gave the error.

cant open to /dev/rdsk/c1t3d0s0

and i am not able to open any file when I run vi editor.but
more command and ls is workking.

please help me out.

Thanks,
Ajay
 
c0t3d0 -> c1t3d0

1) Boot off the CD-ROM in single user mode.
Enter 'boot cdrom -s' at the OpenBoot PROM ok prompt. This will boot into single user mode. A shell will follow shortly after this.
2) Mount the hard disk's /root and /usr.
# TERM=sun
# export TERM
# mount /dev/dsk/c?t?d?s0 /a (mounts root filesystem to '/a') '?' varies on systems. Look in /dev/dsk to help determine which device to use. Once the hard disk's root filesystem is mounted, determine the slice number of the '/usr' filesystem.
Example:
# more /a/etc/vfstab | grep /usr
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no -
^ ^
| |
This is the number needed

Mount the hard disk's /usr filesystem under /a/usr.
# mount /dev/dsk/c?t?d?s* /a/usr (where * is the number found above) (where ? are the numbers used for root), if you don't have a "/usr" filesystem mount only the root filesystem.
3 Rebuild /devices and /dev.
# cd /a
# _INIT_RECONFIG=1
# export _INIT_RECONFIG
# /usr/sbin/chroot /a /etc/init.d/drvconfig
Configuring the /devices directory
# /usr/sbin/chroot /a /etc/init.d/devlinks
Configuring the /dev directory
Configuring the /dev directory (compatibility devices)
4) Modify /etc/vfstab (and /etc/bootrc if necessary.)
a) Determine the new boot path:
# ls -l /dev/dsk/c?t?d?s0 (This is the hard drive's root slice as described in Step 2.)
b) Update vfstab:
Look in /a/dev/dsk/*. It is very likely that the controller numbers have changed. It is even possible that the entries in here are different than the entries in /dev/dsk/*. Be sure to update the /a/etc/vfstab according to these new devices. (in your case you already that will be c1t3d0s?)
# vi /a/etc/vfstab ( Make any target address changes and save )
5) Unmount the hard disk.
# cd /
# umount /a/usr
# umount /a
6) Attempt to reboot off the hard disk.
# halt
# show boot-device ( Show current boot device )
# devalias ( List all device aliases )
# setenv boot-device disk ( Change boot device to device alias )
# reset ( Reboot from boot-device )


Hope it helps,

Carlos Almeida,
 
ERRATA!

Example:
# more /a/etc/vfstab | grep /usr
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no -
^ ^
| |
This is the number needed

is bad formated when posted(the numbers I am try to show is (s6)

Sorry,

Regards,

Carlos Almeida,

 
thanks Carlos for your valuable suggestion.

Regd,
Ajay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top