Solaris Recovery of the Failed Mirrored Boot Disk
28.3.2 Solaris Recovery of the Failed Mirrored Boot Disk
The following procedure refers to the Solaris system recovery when one of the mirrored boot disks fails, and the implemented Disk Manager is DiskSuite 4.1. The procedure itself is sufficiently general for many different hardware configurations. The tested configuration consisted of two SCSI disks: c0t3do − prime boot disk • c0t1d0 − mirrored disk • The test included removal of the prime boot disk, and the system power recycling. Afterward, the disk was returned into the system. root mirror d10 − d11 c0t3d0s0 d12 c0t1d0s0 swap mirror d20 − d21 c0t3d0s1 d22 c0t1d0s1 altboot ufs mirror d30 − d31 c0t3d0s3 d32 c0t1d0s3 dedicated partitions slices c0t3d0s7 and c0t1d0s7 are used for metadevice database replicas each for three replicas The system was shut down, and the prime boot disk taken out. The system was rebooted again with a single disk mirrored boot disk. A number of warning and error messages were displayed during the system startup mostly related to the read−only or missing files. The system has required maintenance − single−user mode The System Recovery Bring the system into the single−user mode, enter the root password. 1. Remove metadevice db replicas from the broken disk the quotes are used because the disk was not really broken: cd usroptSUNWmdsbin Check the current status — should be six replicas: . metadb Remove replicas: . metadb −d c0t3dos7 Check again — should be three replicas: . metadb 2. Unmirror detach all mirrors — must be done forcibly: 3. 699 d10: Submirror d11 is detached metadetach −f d20 d21 d20: Submirror d21 is detached metadetach −f d30 d31 d30: Submirror d31 is detached Keep in mind that concatssubmirrors d11, d21, and d31 belong to the broken disk — prime root disk c0t3d0; otherwise should be d12, d22, and d32. Reboot the system, type: reboot. The system should boot into multiuser mode with a single disk; everything appears to be correct. Log in as root. To check the status: metastat The concatssubmirrors from the broken disk in this case d11, d21, and d31 need maintenance 4. Reinstall the disk. Power−off the system. poweroff or halt ok power−off Return reinstall the disk and power−on the system. 5. Recreate database replicas. Log in as root. Check the current status — should be three replicas: metadb Add three more replicas for the returned disk: metadb −a −c 3 c0t3dos7 Check again — should be six replicas: metadb Check the status of metadevices: metastat Reboot the system: reboot −− disk1 6. Remirror disks. 7. 700 metadb Mirror reattach concatssubmirrors: metattach d10 d11 d10: Submirror d11 is attached metattach d20 d21 d20: Submirror d21 is attached metattach d30 d31 d30: Submirror d31 is attached Check for completion of mirroring recycling. To check the status of mirroring recycling type: metastat 8. Reboot the system when recycling is complete: reboot Disk Replacement — If the mirrored disk is broken, this disk must be replaced this is the most probable case, and the new empty disk must be prepared for mirroring. Supposing three partitions with root filesystem , swap, and additional filesystem altboot, the procedure to replace and remirror the disk is: 9. Partition the disk c0t3d0 to match the boot disk c0t1d0. Use format utility. 1. Type: format Select the boot disk: c0t1d0 Type: partition p is sufficient Type: print p is sufficient to see current root partitioning Type: quit q is sufficient Type: disk to select the new disk c0t3d0 Type: partition Create all partitions as on the root disk Type: label to save a new partitioning table into the disk Ready to label disk, continue? y 2. Create state database replicas in a new disk pay attention to identify the partitionslice s7: metadb −a −c 3 c0t3d0s7 Three additional db replicas will be created in a dedicated slice s7 of the new disk. To check created db replicas: metadb 3. Reboot the system — type: reboot. 4. Mirror root filesystem. Create the concatsubmirror d11: metainit −f d11 1 1 c0t3d0s0 d11: ConcatStripe is setup Attach concatsubmirror d11 to the mirror d10: 5. 701 d10: Submirror d11 is attached Mirroring itself will take awhile Mirror swap. Create the concatsubmirror d21: metainit −f d21 1 1 c0t3d0s1 d21: ConcatStripe is setup Attach concatsubmirror d21 to the mirror d20: metattach d20 d21 d20: Submirror d21 is attached Mirroring itself will take awhile 6. Mirror altboot. Create the concatsubmirror d31: metainit −f d31 1 1 c0t3d0s3 d31: ConcatStripe is setup Attach concatsubmirror d31 to the mirror d30: metattach d30 d31 d30: Submirror d31 is attached Mirroring itself will take awhile 7. Check for completion of mirroring recycling. To check the status of mirroring recycling type: metastat 8. Reboot the system when recycling is complete: reboot 9.28.3.3 HP−UX Support Disk Usage
Parts
» Unix Administration. 7485KB Mar 29 2010 05:04:17 AM
» UNIX Operating System UNIX — Introductory Notes
» Berkeley Standard Distribution — BSD UNIX System V or ATT UNIX
» System Administrators Job UNIX System and Network Administration
» Computing Policies UNIX System and Network Administration
» Legal Acts Administration Guidelines
» Code of Ethics Administration Guidelines
» USENIX System Administrators Guild — SAGE
» In This Book UNIX System and Network Administration
» Introduction The Unix Model — Selected Topics
» Access Classes File ProtectionFile Access
» Default File Mode File ProtectionFile Access
» Plain Regular File Socket Named Pipe
» Special File Names Special File Creation
» Process Types Process Attributes
» Process Life Cycles Processes
» System V ATT Flavored ps Command
» Destroying Processes The UNIX kill command will eliminate a process entirely:
» Becoming a Superuser Communicating with Other Users
» The man Command UNIX Online Documentation
» The uptime Command The uptime command displays:
» Personal Documentation UNIX Administration Starters
» Shell Script Execution UNIX Shell Scripts
» Shell Variables UNIX Shell Scripts
» Double Command−Line Scanning
» Introductory Notes System Startup and Shutdown
» The Bootstrap Program System Startup
» The Kernel Execution System Startup
» System States System Startup
» The Outlook of a Startup Procedure
» Initialization Scripts System Startup
» The BSD rc Scripts BSD Initialization Sequence
» BSD−Like Initialization System V Initialization
» An Example Shutdown Procedures
» Introduction to the UNIX Filesystem
» System V Filesystem Directory Organization
» Mounting a Filesystem home, users
» Dismounting a Filesystem home, users
» Automatic Filesystem Mounting Removable Media Management
» BSD Filesystem Configuration File
» Filesystem Types A Few Other Filesystem Issues
» Swap Space — Paging and Swapping
» Loopback Virtual Filesystem A Few Other Filesystem Issues
» Display Filesystem Statistics: The df Command
» Checking Filesystems: The fsck Command
» Introduction UNIX Filesystem Layout
» Disk Partitions Physical Filesystem Layout
» Filesystem Structures Physical Filesystem Layout
» The mkfs Command Filesystem Creation
» File Identification and Allocation
» File Storage vs. File Transfer
» Reserved Free Space Filesystem Performance Issues
» Logical Volume Manager — AIX Flavor
» Logical Volume Manager — Solaris Flavor
» Redundant Array of Inexpensive Disks RAID
» The Volume Snapshot Snapshot
» The Filesystem Snapshot Snapshot
» Virtual UNIX Filesystem Logical Filesystem Layout
» Disk Space Upgrade UNIX Filesystem Layout
» User Database — File etcpasswd
» Initialization Template Files UNIX Login Initialization
» User Login Initialization Files
» Systemwide Login Initialization Files
» Restricted User Accounts Users and Secondary Groups
» Assigning User Passwords Standard UNIX Users and Groups
» Managing Disk Usage by Users
» System V Accounting Accounting
» AIX−Flavored Accounting Accounting
» Physical Security Passwords UNIX Lines of Defense
» File Permissions UNIX Lines of Defense
» Backups Password Encryption UNIX Lines of Defense
» Setting Password Restrictions UNIX Lines of Defense
» The Wheel Group Secure Terminals — Other Approaches
» History of the Root Account Tracking User Activities
» The syslogd Daemon The Concept of System Logging
» The Configuration File etcsyslog.conf
» Linux Logging Enhancements The logger Command
» Testing System Logging System Logging Configuration
» The last Command Limiting the Growth of Log Files
» BSD Printing Subsystem UNIX Printing Subsystem
» The lp, lpstat, and cancel Commands
» The etcprintcap File BSD Printer Configuration and the Printer Capability Database
» Filters BSD Printer Configuration and the Printer Capability Database
» The Printer Database Directory Hierarchy on System V
» Setting a Remote Printer on HP−UX
» BSD and AIX Cross−Printing Solaris and BSD Cross−Printing
» Third−Party Printer Spooling Systems
» The tput Command The tset, tput, and stty Commands
» The stty Command The tset, tput, and stty Commands
» The tar Command Tape−Related Commands
» The cpio Command Tape−Related Commands
» The dd Command Tape−Related Commands
» The mt Command Magnetic Tape Devices and Special Device Files
» The SVR3 and SVR4 backup Commands
» The fbackup Command Backup and Dump Commands
» The dumpufsdump Command Backup and Dump Commands
» Interactive Restore The restore Commands
» The frecover Command Restoring Files from a Backup
» Tape Control UNIX Backup and Restore
» The NTP Daemon Network Time Distribution
» The crontab Files Network Time Distribution
» The crontab Command Network Time Distribution
» Linux Approach Network Time Distribution
» Programs Scheduled for a Specific Time
» UNIX and Networking Network Fundamentals
» TCPIP and the Internet ISO OSI Reference Model
» TCPIP Protocol Architecture Computer Networks
» Internet Protocol IP Internet Layer and IP Protocol
» Network Access Layer Transport Layer and TCP and UDP Protocols
» Application Layer TCPIP Layers and Protocols
» IP Address Classes Data Delivery
» Dynamic Routing Internet Routing
» Protocols, Ports, and Sockets
» UNIX Database Files Multiplexing
» The arp Command Address Resolution ARP
» The portmapper Daemon The etcrpc File
» The ifconfig Command Configuring the Network Interface
» The netstat Command Configuring the Network Interface
» The inetd Daemon Super Internet Server
» Further Improvements and Development
» Host Names and Addresses Domain Name Service DNS
» The Local Host Table — etchosts
» Handling the NIC Host Table — A Journey into the Past
» Other Resolver Parameters BIND Configuration
» Name Servers UNIX Name Service — BIND
» The Configuration File etcnamed.boot
» The named.local File The named.cache file
» Subdomains and Parenting BIND Version 8.X.X
» The nslookup Interactive Mode
» A Few Examples of nslookup Usage
» Purpose and Concepts Network Information Service NIS
» To Create an NIS Client NIS Domain Name
» The etcnetgroup File DatabasesNIS Maps
» Security Issues NIS Management
» The showmount Command Mounting Remote Filesystems
» An Example The Automount Maps
» The rlogin Command The rcp Command
» The HOME.rhosts File Using UNIX r−Commands — An Example
» SSH Configuration Secure Shell SSH
» Root Access SSH Installation and User Access Setup
» SSH — Version 2 Secure Shell SSH
» Simple Mail Transport Protocol SMTP
» Rewriting an E−mail Address Pattern Matching
» Address Transformation The Parsing of E−mail Addresses
» Testing Rewrite Rules The sendmail −bt Command
» The Debugging Level Checking the Mail Queue
» Mail Subcommands The Mail Program and .mailrc File
» POP Transactions Post Office Protocol POP
» Internet Message Access Protocol IMAP
» Finger Common UNIX Network Applications
» The ping Command Host Connectivity
» The traceroute Command Host Connectivity
» The X Administration Philosophy
» Window Managers An Introduction to the X Window System
» xdm Configuration Files The X Display Managers
» Vendor−Specific X Flavors — a Configuration Example
» XDMCP Queries The Xaccess File
» Other Access Control Mechanisms
» Components of the xdm−Based User X Environment
» Other Startup Methods The User X Environment
» A Permanent X11 Installation
» Introduction to Kernel Reconfiguration
» Kernel Configuration Database Kernel Reconfiguration
» The config Command BSD−Like Kernel Configuration Approach
» HP−UX 10.x Kernel Configuration
» UNIX and Modems Introduction to Modems
» Terminal Lines and Modem Control
» C−Kermit Third−Party Communication Software
» UUCP Versions UUCP Chat−Transfer Session
» The UUCP Daemons UUCP Commands, Daemons, and Related Issues
» The UUCP Spool Directories and Files
» Additional Security in BNU UUCP
» Additional Security in Version 2 UUCP
» Intranet vs. Internet Introduction to Intranet
» Intranet Design Approach Introduction to Intranet
» Life Cycle of a Virus Virus Types
» The Viruswall Implementation Viruswalls
» Application Proxies SOCKS Proxies
» Web Services Intranet Front−End Services
» Other External Services Intranet Front−End Services
» Network Infrastructure and Desktops
» Dynamic Host Configuration Protocol DHCP
» UNIX and Not−UNIX Platform Integration
» HP−UX Installation UNIX Installation Procedures
» Linux Installation UNIX Installation Procedures
» Solaris Patch Installation HP−UX Patch Installation
» Solaris and Lost Root Password HP−UX and Lost Root Password
» Solaris Procedure to Create an Alternate Boot Partition
» Solaris Recovery of the Failed Mirrored Boot Disk
Show more