Mirroring the Boot Drive with Solstice Disk Suite/Solaris Volume Manager. Brad Isbell, Seeds of Genius June 2006

Similar documents
Solaris boot archive corrupt

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

Alternative Boot Solutions

Input the disk name to be replaced. One of the following notation can be used:

Disk Replacement. Introduction CHAPTER

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Solaris 10. DI Gerald Hartl. Account Manager for Education and Research. Sun Microsystems GesmbH Wienerbergstrasse 3/VII A Wien


Solaris 10. DI Gerald Hartl. Account Manager for Education and Research. Sun Microsystems GesmbH Wienerbergstrasse 3/VII A Wien

Sun StorEdge MultiPack Storage Guide

Configuring Boot Disks With Solstice DiskSuite Software

Solaris Patches Installation Instructions

Platform Notes: Sun Enterprise 250 Server

Backup & Recovery. Sun Microsystems Korea. ning.co.kr

EMC Host Connectivity Guide for Sun Solaris

Administration Supplement for Solaris Platforms

QLC FCode for 2Gb FC HBAs. Table of Contents

Guide to SATA Hard Disks Installation and RAID Configuration

VERITAS Volume Manager Hardware Application Note

Network Mediation Version 5.1 Setup Guide

Guide to SATA Hard Disks Installation and RAID Configuration

How To Resize ext3 Partitions Without Losing Data

Install Server Build Guide I/O device driver (SPARC Enterprise) C120-E443-07ENZ2(A) February SPARC Enterprise

Installing Prime Optical

Sun Certified System Administrator for the Solaris 10 OS Bootcamp

Installing. ServerXchange. ServerXchange ControlCenter Installation

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

Installing FreePBX Official Distro

PRIMECLUSTER DR/PCI Hot Plug User s Guide

System Administration for the Oracle Solaris 10 OS Part 1 Student Guide - Volume I

Linux Files and the File System

Author : admin. 1. Getting information about current file system partitions with fdisk and mount

Solaris Volume Manager Administration Guide

PRIMECLUSTER GDS 4.3A20B. Installation Guide. Oracle Solaris

DUAL OS INSTALLATION

Oracle Enterprise Manager Ops Center

SPARCstorage Array Configuration Guide

VERITAS Volume Manager Installation Guide

Outline. Computer Center, CS, NCTU. Interfaces Geometry Add new disks RAID. Appendix SCSI & SAS

Outline. Computer Center, CS, NCTU. q Interfaces q Geometry q Add new disks. q RAID

an introduction to logical domains

Veritas Volume Manager Conversion

ZFS The Future Of File Systems. C Sanjeev Kumar Charly V. Joseph Mewan Peter D Almeida Srinidhi K.

Adding a disk. SA s important tasks

Oracle Enterprise Manager Ops Center

Dell Compellent Volume Expansion with Solaris 10 UFS. Technical Tip

Oracle Solaris Cluster 3.2

ZFS: The Last Word in File Systems. James C. McPherson SAN Engineering Product Development Data Management Group Sun Microsystems

Lab - Install Windows 7 or Vista

VERITAS Storage Migrator 3.4 VERITAS Storage Migrator Remote 3.4

boot PROM 11.1 boot PROM

SPARC Enterprise Preinstall Information

Solaris OS Guide for New System Administrators. Rolf Kersten

QFS, SAM-FS, and SAM-QFS Installation and Configuration Guide

Guide to SATA Hard Disks Installation and RAID Coniguration

14 Installing a Server

Installation of Lubuntu Linux, Koha, DSpace and other software using LibLiveCD

Guide to SATA Hard Disks Installation and RAID Configuration

Computer Center, CS, NCTU. Outline. Interfaces Geometry Add new disks. Installation procedure Filesystem check Add a disk RAID GEOM

ISGTC: an alternative to bofh/bin

Outline. Computer Center, CS, NCTU. Interfaces Geometry Add new disks RAID. Appendix SCSI & SAS

Guide to SATA Hard Disks Installation and RAID Configuration

Solaris System Recovery Guide. Version 8.2

Sun Enterprise Alternate Pathing 2.3.1

Section 5 MUST BE COMPLETED BY: 12/5

Oracle Enterprise Manager Ops Center. Introduction. Creating Oracle Solaris 11 Zones 12c Release 2 ( )

VERITAS Storage Foundation 4.0 for Sybase - Performance Brief OLTP COMPARISON

Linux Hardware Management. Linux System Administration COMP2018 Summer 2017

RocketU 1144BM Host Controller

Installing the UnixWare Package. Installing the UnixWare Package - 1

Requirements for ALEPH 500 Installation

PRIMECLUSTER. Global Disk Services Configuration and Administration Guide 4.1. (Solaris Operating System)

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Configure and Install Root Domains 12c Release 3 (

Solaris OE Guide for New System Administrators

SANOG VI IP Services Workshop: FreeBSD Install

Lecture 2: The file system

Rev B. DVD Upgrade Installation Guide for System Release 5.0 with Integrated Application Server

Guide to SATA Hard Disks Installation and RAID Coniguration

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

Rev B. DVD Upgrade Installation Guide for System Release 5.0 with Standalone Application Server

2018/01/30 18:11 1/6 Disks Management HDD Management. Disks must be added before they can be formatted and mounted or configured in a RAID array.

LENOVO THINKSTATION P520C, P520, P720, & P920 WINDOWS 7 INSTALLATION

OPERATING SYSTEM. Chapter 12: File System Implementation

Solaris Handbook for Sun Peripherals

Chapter 11: Implementing File

Commands LVM information can be created, displayed, and manipulated with the following commands:

Modern RAID Technology. RAID Primer A Configuration Guide

Automating the deployment of FreeBSD & PC-BSD systems

How to Install Oracle VM VirtualBox and Create a Virtual Machine

Chapter 11: Implementing File Systems. Operating System Concepts 9 9h Edition

Lecture 2 Distributed Filesystems

AMD RAID Installation Guide

Data Block. Data Block. Copy A B C D P HDD 0 HDD 1 HDD 2 HDD 3 HDD 4 HDD 0 HDD 1

Solaris 9 Mount Cdrom Manually

How To Install IPSO 6.2

Chapter 10: File System Implementation

Linux+ Guide to Linux Certification, Third Edition. Chapter 6 Advanced Installation

N F Disk Array Controller (S-ATA) BIOS Update Procedure (BIOS Revision: ) Rev. 1,

Tutorial : Confguring a micro SD memory card as both swap and storage area for the DragonBoard 410c (DB410C)

Transcription:

Mirroring the Boot Drive with Solstice Disk Suite/Solaris Volume Manager Brad Isbell, Seeds of Genius June 2006 Revision 1.1 6/04/2006 Edition: June 2006

All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Seeds of Genius and its licensors, if any. - 2 -

Abstract: To ensure the highest uptime possible for the Sun servers, it is important to mirror the boot disk drive. This document was written as a quick reference guide to perform this essential administrative task. Since many Seeds of Genius customer have purchased the SunFire V240 system this will be the reference platform for this article. The same principles apply to mirroring the boot drive of any host running the Solaris OE. Requirements: If using Solaris 9 or 10, the mirroring software is included within the operating systems. If using Solaris 8 you will need to have the Solaris 8 DVD or CD Software 2 of 2. Procedures: We will be creating a RAID 1 (mirror) using the first 2 disks on a SunFire V240 system. A SunFire V240 will have the following logical device files for the four internal disk drives. /dev/dsk/c1t0d0s2 <== Boot drive /dev/dsk/c1t1d0s2 <== Disk drive to mirror boot drive /dev/dsk/c1t2d0s2 /dev/dsk/c1t3d0s2 The third and forth disk can be used to hold extra replicas of the metadevice state database. This is explained further in step 4 below. For the sake of example we will assume the following partitioning on the boot drive. Please refer to your /etc/vfstab after installation to confirm your settings. c1t0d0s0 / c1t0d0s1 swap c1t0d0s3 /usr 1. Installing Solaris Operating Environment. Install Solaris to preferred specifications following these rules: During the installation make sure to leave a small partition to create the metadevice state database on. This is a slice of disk that will hold all the metadata for all RAID configurations. Generally this will be done on slice 7, 50MB will be plenty of space. During installation you can create a 50MB filesystem mounted to /META on slice 7. Once the install completes you can umount /META and then modify /etc/vfstab to remove this entry for future system reboots. To keep the / directory clean, remove the /META directory. Install the entire distribution with OEM support. - 3 -

2. Install Solstice Disk Suite on Solaris 8 systems. If you are using Solaris 8 you will need to install Disk Suite. If you have Solaris 9 or Solaris 10 installed you can skip to step 3. Insert the Solaris 8 DVD after the installation is complete and perform the following. # cd /cdrom/cdrom0/s0/solaris_8/ea/products/disksuite_4.2.1/sparc/ Packages # pkadd -d. Answer yes to all the questions and then reboot. 3. Partition second disk drive to match the partitioning of the boot Drive. # prtvtoc /dev/rdsk/c1t0d0s2 > /tmp/vtoc # fmthard -s /tmp/vtoc /dev/rdsk/c1t1d0s2 4. Create Meta-State Databases. It is generally good practice to create several replicas of the metadevice state databas for each slice. In the following example 3 state database replicas will be created on each disk's slice 7. # metadb -a -f -c3 c1t0d0s7 c1t1d0s7 Confirm that the state databases have been created. # metadb Due to the rule that you must have over half (half +1) of the state databases accessible to boot the system. You will want to create a small slice on a third drive for another set of three state database replicas. If you lose one of these two disks all you will have is half of the replicas available, so the system will not be quickly booted without further administration. For example, you can create a small slice at c1t2d0s7 and then create more state databases. # metadb -a -c3 c1t2d0s7 5. Create logical devices for mirroring. Under Solstice Disk Suite/Solaris Volume Manager you can only mirror striped logical devices. You can not create a mirror using physical devices. So you will first have to setup each slice as a logical stripe of 1 unit. You will then mirror these logical devices. Create a logical stripe of 1 for each slice of disk that will be a part of each mirror. You must use the -f (force) option for the slices that contain - 4 -

mounted file systems. # metainit -f d10 1 1 c1t0d0s0 # metainit -f d11 1 1 c1t0d0s1 # metainit -f d13 1 1 c1t0d0s3 Create the logical stripes on the second drive. # metainit d20 1 1 c1t1d0s0 # metainit d21 1 1 c1t1d0s1 # metainit d23 1 1 c1t1d0s3 Confirm the creation of these devices. # metastat 6. Create initial mirrors. his step will only set up one half of each mirror. The second half will be attached in the next step. # metainit d0 -m d10 # metaroot d0 The metaroot command will modify the /etc/vfstab file and the /etc/system file for you so that you will boot from the /dev/md/dsk/d0 device. Create Mirrors for swap and /usr. # metainit d1 -m d11 # metainit d3 -m d13 Modify the /etc/vfstab file to reflect these new meta-devices. The entries should look something like the following. /dev/md/dsk/d1 - - swap - no - /dev/md/dsk/d3 /dev/md/rdsk/d3 /usr ufs 1 no - Reboot in order to get the / and /usr file systems to be remounted as the md (metadisk) devices # init 6 After the reboot check to make sure that the filesystems are mounted as /dev/md/dsk devices. # df k 7. Attach second half of mirrors. # metattach d0 d20 # metattach d1 d21 # metattach d3 d23 Run the metastat command to track the progress of the syncing of the mirrors. - 5 -

# metastat 8. Setup system PROM. You will need to modify the system PROM in order to boot from the second half of the mirror if the first half fails. # eeprom boot-device= disk disk1 net 9. TEST. Wait until the mirrors are finished syncing. # reboot -- disk1 If you need any help please contact the Seeds of Genius support center at support@seedsofgenius.com. - 6 -