Re: SUMMARY: Installing new devices - mandatory to reboot?

From: David W. Barts (davidb@nero.ce.washington.edu)
Date: Tue Aug 10 1993 - 14:39:53 CDT


In article <1993Aug10.084403.16432@iti.gov.sg>, jameslow@iti.gov.sg (James Low (RC)) writes:
> Hi, thanks for the various people who replied to my mails. Many had warned
> the dangers of adding a new disk to a system without first halting it.
>
> But for the more "adventurous", the answer seemed to be /etc/init.d/devlinks.
>
> [edited]
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> From john@cs.wmich.edu Wed Aug 4 03:53:02 1993
>
> Assuming by "hard disk" you mean SCSI disks, you can run the following script
> as root:
>
> ---------------- cut here -----------------
> #!/bin/sh
> #
> # add-disk
> #
> # Runs the commands to make Solaris locate a new disk that
> # has been plugged in after the system was booted.
> #
>
> _DVFS_RECONFIG=YES; export _DVFS_RECONFIG
>
> /etc/init.d/drvconfig
> /etc/init.d/devlinks
>
> exit 0
> ---------------- cut here -----------------
>
> This will only work if you already have at least one SCSI disk loaded in,
> because the SCSI parts of the kernel have to be loaded. I use this on a
> semi-regular basis, and it's worked for me. If you look at the stuff in
> /etc/init.d, that's all the "/reconfigure" does anyway.
>
> --Dave
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> [edited]

I just tried that shell script, and it didn't work. In order for
/etc/init.d/devlinks to do anything, I had to add the line:

_INIT_RECONFIG=YES; export _INIT_RECONFIG

immediately after the line that sets _DVFS_RECONFIG.

--
David Barts  N5JRN                      UW Civil Engineering, FX-10
davidb@ce.washington.edu                Seattle, WA  98195
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' |dc



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:05 CDT