, Solaris 7 

[ Pobierz całość w formacie PDF ]
.0 (Rev Id = c1) FoundPCI-device: network@1,1, hme0hme0 is /pci@1f,0/pci@1,1/network@1,1dump on /dev/dsk/c0t0d0s1 size 128 MBSUNW,hme0: Using Internal TransceiverSUNW,hme0: 10 Mbps half-duplex Link Upsyncing file systems.cpu0: SUNW,UltraSPARC-IIi (upaid 0 impl 0x12 ver 0x13 clock¥'270 MHz)SunOS Release 5.7 Version Generic 64-bit [UNIX(R) System V Release 4.0]Copyright (c) 1983-1998, Sun Microsystems, Inc.mem = 131072K (0x8000000)avail mem = 122757120Ethernet address = 8:0:20:a2:63:82root nexus = Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz)pci0 at root: UPA 0x1f 0x0pci0 is /pci@1f,0PCI-device: pci@1,1, simba0PCI-device: pci@1, simba1PCI-device: ide@3, uata0.Use the output of the prtconf and sysdef commands to identify which disk, tape, andCD-ROM devices are connected to the system.As shown in the previous examples, somedevices display the driver not attached message next to the device instance.This messagedoes not always mean that a driver is unavailable for this device.It means that no driver iscurrently attached to the device instance because there is no device at this node or thedevice is not in use.The OS automatically loads drivers when the device is accessed, and itunloads them when it is not in use.The system determines what devices are attached to it at startup.This is why it is importantto have all peripherals powered on at startup, even if they are not currently being used.Duringstartup, the kernel configures itself dynamically, loading needed modules into memory.Device drivers are loaded when devices, such as disk and tape devices, are accessed for thefirst time.This process is called auto-configuration, because all kernel modules are loadedautomatically if needed.As described in Chapter 2, the system administrator can customizethe way in which kernel modules are loaded by modifying the /etc/system file. 19 2496 Ch16 8/30/00 1:20 PM Page 403DEVICE AUTO-CONFIGURATION 403Device Auto-ConfigurationAuto-configuration offers many advantages over the manual configuration method used inearlier versions of UNIX, in which device drivers were manually added to the kernel, thekernel was recompiled, and the system had to be restarted.Now, with auto-configuration,the administrator simply connects the new device to the system and performs a reconfigurationstartup as follows:1.Create the /reconfigure file with the following command:touch /reconfigureThe /reconfigure file causes the Solaris software to check for the presence of anynewly installed devices the next time you turn on or start up your system.2.Shut down the system using the shutdown procedure described in Chapter 1,  SystemStartup.If you need to connect the device, turn off power to the system and all peripheralsafter Solaris has been properly shut down.3.After the new device is connected, restore power to the peripherals first and thento the system.Verify that the peripheral device has been added by attempting to accessit.An optional method of performing a reconfiguration startup is to interrupt the start processand type boot -r at the OpenBoot prompt.I like the first method described because thesystem administrator can instruct the system to perform the reconfiguration startup at anytime by creating the /reconfigure file.Now, at the next restart, whether the administrator isthere or not, the system performs the reconfiguration startup.This could happen at 3 a.m.ifyou like.During a reconfiguration restart, a device hierarchy is created in the /devices directory torepresent the devices connected to the system.The kernel uses this to associate drivers withtheir appropriate devices.Also, any kernel parameter changes that were made to the/etc/system file are parsed by the kernel at this time.Auto-configuration offers the following benefits:Main memory is used more efficiently, because modules are loaded as needed.There is no need to reconfigure the kernel if new devices are added to the system.When you add devices such as disks or tape drives, however, the system needs tobe shut down before you connect the hardware so that no damage is done to theelectrical components.Drivers can be loaded and tested without having to rebuild the kernel and restart thesystem. 19 2496 Ch16 8/30/00 1:20 PM Page 404404 CHAPTER 16 DEVICE CONFIGURATION AND NAMINGOccasionally, you might install a new device for which Solaris does not have a supportingdevice driver.Always check with the manufacturer to make sure that any device you plan toadd to your system has a supported device driver.If a driver is not included with the stan-dard Solaris release, the manufacturer should provide the software needed for the device tobe properly installed, maintained, and administered.Third-party device drivers are installed as software packages using the pkgadd command.Ata minimum, this software includes a device driver and its associated configuration (.conf)file.The.conf files reside in the /kernel/drv directories [ Pobierz caÅ‚ość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • anikol.xlx.pl