Solstice Disk Suite 4.2.1 - Solaris 8

xiaoxiao2021-03-06  145

Solstice Disk Suite 4.2.1 - Solaris 8

This document details the configuration of Solstice Disk Suite 4.2.1 on a Sun V880 with Solaris 8 2/02 installed. It walks the user through a typical Disk Suite install (mirror the boot disk, stripe & mirror the file systems across the remaining disks ). It also covers steps that the Disk Suite documentation leaves out (format, fmthard, and cylinder calculations). The install and configurations are accomplished via the command line and configuration files. in this example, the server only has one controller in its internal Disk Array. Ideally, File Systems SHOULD BE Stross Across Disks And Mirrored Across Controllers (for Performance and Redundancy, Respective).

Disk Suite provides the ability to grow boot disk file systems on the fly. It does not give the same flexibility for the remaining disks. They must be formatted with future file systems in mind. The file systems are static once created, as they reside on disk slices. This document divides disk space evenly between the available slices (30 GB disk = 6 X 5 GB slices). A striped file system must reside on at least 2 disks. This makes the smallest file system 10 GB. An alternative would be To Purchase Veritas Volume Manager. It Encapsules Entire Disks, Allowing for More Granular Management.

During The Solaris Installation, EnSure The Is At Least 15 MB on Slice 7 of The Boot Disk. Disk Suite Requires this space for the meta database.

Section I. Install Disk Suite

INSERT The Solaris 8 Software, Disk 2 CD-ROM.

# cd / cdrom/cdrom0/solaris_8/ea/products/disksuite_4.2.1/sparc/packages

# pkgadd -d.

RESPOND: ALL, Y, Y, Y

Section II. Mirror the boot disk

Copy the boot disk's partition sizes to the mirror

# prtvtoc -h / dev / rdsk / c1t0d0s2> /opt/admin/docs/prtvtoc.txt (saved the partition sizes to a file) # fmthard -s /opt/admin/docs/prtvtoc.txt / dev / rdsk / c1t1d0s2 (Formatted the spare disk with the same party sizes as the boot disk)

FMTHARD: New Volume Table of Contents Now in place.

Verify That The Partition Table Was Actually Copied

# format

Searching for Disks ... DONE

Available Disk Selections:

0. C1T0D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004CF72AF60, 0

1. C1T1D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0, 0 / ssd @ W21000004CF72B6AF, 0

2. C1T2D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72afcc, 0

3. C1T3D0

/ pci @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72ae20, 0

4. C1T4D0

/ pci @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72ab36, 0

5. C1T5D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004CF72B14B, 0

Specify disk (Enter ITS Number): 1

Selecting C1T1D0

[Disk formatted]

Format Menu:

Disk - SELECT A Disk

TYPE - SELECT (Define) a disk type

Partition - SELECT (Define) a Partition Table

Current - Describe The Current Disk

Format - Format and Analyze the Disk

REPAIR - Repair a Defective Sector

Label - Write label to the disk

Analyze - Surface Analysis

Defect - Defect List Management

Backup - Search for Backup Labels

Verify - Read and Display Labels

Save - Save New Disk / Partition Definitions

Inquiry - Show vendor, Product and Revisionvolname - SET 8-Character Volume Name

! - Execute , Then Return

quit

Format> Verify

PRIMARY LABEL CONTENTS:

Volume name = <>

ASCII Name =

PCYL = 24622

Ncyl = 24620

Acyl = 2

nhead = 27

NSECT = 107

Part Tag Flag Cylinders Size Blocks

0 root WM 0 - 8080 11.13GB (8081/0/0) 23346009

1 SWAP WU 8081 - 13820 7.91GB (5740/0/0) 16582860

2 Backup WM 0 - 24619 33.92GB (24620/0/0) 71127180

3 USR WM 13821 - 15998 3.00GB (2178/0/0) 6292242

4 Var WM 15999 - 18868 3.95GB (2870/0/0) 8291430

5 UNASSIGNED WM 18869 - 21738 3.95GB (2870/0/0) 8291430

6 UNASSIGNED WM 21739 - 24608 3.95GB (2870/0/0) 8291430

7 UNASSIGNED WM 24609 - 24619 15.52MB (11/0/0) 31779

Format> Q

Add The Partitions Into Disk Suite

# cp md.tab md.tab.orig

# vi md.tab (added the folowing lines)

D11 1 1 / DEV / DSK / C1T0D0S0

D12 1 1 / DEV / DSK / C1T1D0S0

D1-M D11

D21 1 1 / DEV / DSK / C1T0D0S1

D22 1 1 / DEV / DSK / C1T1D0S1

D2-M D21

D31 1 1 / DEV / DSK / C1T0D0S3

D32 1 1 / DEV / DSK / C1T1D0S3

D3-M D31

D41 1 1 / DEV / DSK / C1T0D0D4

D42 1 1 / DEV / DSK / C1T1D0D4

D4-M D41

D51 1 1 / DEV / DSK / C1T0D0S5

D52 1 1 / DEV / DSK / C1T1D0S5

D5 -M D51

D61 1 1 / DEV / DSK / C1T0D0S6

D62 1 1 / DEV / DSK / C1T1D0S6

D6-M D61

# Metainit -F D11 (Force)

D11: Concat / Stripe IS Setup

# Metainit D1

D1: Mirror Is Setup

# Metaroot D1

# More / etc / vfstab (confirm That / Was Added)

#Device device mount fs fsck mount mount # to mount to fsck point type pass at boot options

#

# / DEV / DSK / C1D0S2 / DEV / RDSK / C1D0S2 / USR UFS 1 YES -

FD - / DEV / FD FD - NO -

/ Proc - / Proc Proc - NO -

/ DEV / DSK / C1T0D0S1 - - SWAP - NO -

/ DEV / MD / DSK / D1 / DEV / MD / RDSK / D1 / UFS 1 NO -

/ DEV / DSK / C1T0D0S3 / DEV / RDSK / C1T0D0S3 / USR UFS 1 NO

-

/ DEV / DSK / C1T0D0S4 / DEV / RDSK / C1T0D0S4 / VAR UFS 1 NO

-

/ DEV / DSK / C1T0D0S6 / DEV / RDSK / C1T0D0S6 / App / Oracle / Product UFS

2 yes -

/ DEV / DSK / C1T0D0S7 / DEV / RDSK / C1T0D0S7 / Metadb UFS 2 YES

-

/ DEV / DSK / C1T0D0S5 / DEV / RDSK / C1T0D0S5 / OPT UFS 2 YES

-

SWAP - / TMP TMPFS - YES - YES -

NOTE: The / (root) File System WAS Automatic Or Added to / etc / vfstab.

# Metainit -f D21

D21: Concat / Stripe IS Setup

# Metainit D2

D2: Mirror Is Setup

# Metainit -f D31

D31: Concat / Stripe IS Setup

# Metainit D3

D3: mirror is setup

# Metainit -f D41

D41: Concat / Stripe IS Setup

# Metainit D4

D4: mirror is setup

# Metainit -f D51

D51: Concat / Stripe IS Setup

# Metainit D5

D5: mirror is setup

# Metainit -f D61

D61: Concat / Stripe IS Setup

# Metainit D6

D6: mirror is setup

# cp / etc / vfstab /etc/vfstab.orig

# vi / etc / vfstab (Comment Out EXISTING FS Entries and Created Entries in Disk Suite Format)

#Device device mount fs fsck mount mount

#to mount to fsck point Type Pass at boot options

#

# / dev / DSK / C1D0S2 / DEV / RDSK / C1D0S2 / USR UFS 1 YES -FD - / DEV / FD FD - NO -

/ Proc - / Proc Proc - NO -

# / dev / dsk / c1t0d0s1 - - swap - no -

/ DEV / MD / DSK / D2 - - SWAP - NO -

/ DEV / MD / DSK / D1 / DEV / MD / RDSK / D1 / UFS 1 NO -

# / dev / dsk / c1T0D0S3 / DEV / RDSK / C1T0D0S3 / USR UFS 1 NO -

/ DEV / MD / DSK / D3 / DEV / MD / RDSK / D3 / USR UFS 1 NO -

# / dev / dsk / c1t0d0s4 / dev / rdsk / c1t0d0s4 / var ufs 1 NO -

/ DEV / MD / DSK / D4 / DEV / MD / RDSK / D4 / VAR UFS 1 NO -

# / dev / dsk / c1t0d0s6 / dev / rdsk / c1t0d0s6 / app / oracle / product uf 2 yes -

/ DEV / MD / DSK / D6 / DEV / MD / RDSK / D6 / App / Oracle / Product UFS 2 YES -

# / dev / dsk / c1t0d0s7 / dev / rdsk / c1t0d0s7 / metadb ufs 2 yes -

# / dev / dsk / c1t0d0s5 / dev / rdsk / c1T0D0S5 / OPT UFS 2 yes -

/ DEV / MD / DSK / D5 / DEV / MD / RDSK / D5 / OPT UFS 2 YES -

SWAP - / TMP TMPFS - YES - YES -

# metadb -a c1t0d0s7 (Added the metadb to the spare boot disk)

# init 6 (this Was the first time it is safe to reboot)

Complete the mirross

# Metainit D12

D12: Concat / Stripe IS Setup

# Metattach D1 D12

D1: Submirror D12 Is Attached

# Metastat (Output Abbreviated)

D1: mirror

SUBMIRROR 0: D11

State: okay

SUBMIRROR 1: D12

State: Resyncing

RESYNC in Progress: 1% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 23346009 Blocks

D11: Submirror Of D1

State: okay

Size: 23346009 Blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S0 0 NO OKAY

D12: Submirror Of D1

State: Resyncing

Size: 23346009 Blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T1D0S0 0 NO OKAY

# Metainit D22

D22: Concat / Stripe IS setup

# Metattach D2 D22

D2: Submirror D22 Is Attached

# Metainit D32

D32: Concat / Stripe IS Setup

# Metattach D3 D32

D3: Submirror D32 Is Attached

# Metainit D42

D42: Concat / Stripe IS Setup

# Metattach D4 D42

D4: Submirror D42 Is Attached

# Metainit D52

D52: Concat / Stripe IS Setup

# Metattach D5 D52

D5: Submirror D52 IS Attached

# Metainit D62

D62: Concat / Stripe IS Setup

# Metattach D6 D62

D6: Submirror D62 Is Attached

# Metastat (Output Abbreviated)

D2: Mirror

SUBMIRROR 0: D21

State: okay

SUBMIRROR 1: D22

State: Resyncing

RESYNC in Progress: 13% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 16582860 blocks

D21: Submirror Of D2

State: okay

Size: 16582860 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S1 0 NO OKAY

D22: Submirror Of D2

State: Resyncing

Size: 16582860 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T1D0S1 0 NO OKAY

D3: mirror

SUBMIRROR 0: D31

State: okay

SUBMIRROR 1: D32

State: Resyncing

RESYNC in Progress: 5% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 6292242 blocks

D31: Submirror Of D3

State: okay

Size: 6292242 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S3 0 no okay

D32: Submirror Of D3

State: Resyncing

Size: 6292242 blockstripe 0:

Device Start Block DBase State Hot SPARE

C1T1D0S3 0 NO OKAY

D4: Mirror

SUBMIRROR 0: D41

State: okay

SUBMIRROR 1: D42

State: Resyncing

RESYNC in Progress: 1% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 8291430 blocks

D41: Submirror Of D4

State: okay

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S4 0 NO OKAY

D42: Submirror Of D4

State: Resyncing

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T1D0S4 0 NO OKAY

D5: Mirror

SUBMIRROR 0: D51

State: okay

SUBMIRROR 1: D52

State: Resyncing

RESYNC in Progress: 0% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 8291430 blocks

D51: Submirror Of D5

State: okay

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S5 0 No Okay

D52: Submirror Of D5

State: Resyncing

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T1D0S5 0 NO OKAY

D6: mirror

SUBMIRROR 0: D61

State: okay

SUBMIRROR 1: D62

State: Resyncing

RESYNC in Progress: 0% DONE

Pass: 1

Read option: Roundrobin (Default)

Write Option: Parallel (Default)

Size: 8291430 blocks

D61: Submirror Of D6

State: okay

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot SPARE

C1T0D0S6 0 NO OKAY

D62: Submirror Of D6

State: Resyncing

Size: 8291430 blocks

Stripe 0:

Device Start Block DBase State Hot Sparec1t1d0S6 0 No Okay

Section III. Create Striped and Mirrored File Systems on Remaining Disks

Erase the partition configurations on one of the disks

# format

Searching for Disks ... DONE

Available Disk Selections:

0. C1T0D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004CF72AF60, 0

1. C1T1D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0, 0 / ssd @ W21000004CF72B6AF, 0

2. C1T2D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72afcc, 0

3. C1T3D0

/ pci @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72ae20, 0

4. C1T4D0

/ pci @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004cf72ab36, 0

5. C1T5D0

/ PCI @ 8,600000 / sunw, qlc @ 2 / fp @ 0,0 / ssd @ W21000004CF72B14B, 0

Specify disk (Enter ITS Number): 2

Selecting C1T2D0

[Disk formatted]

Format Menu:

Disk - SELECT A Disk

TYPE - SELECT (Define) a disk type

Partition - SELECT (Define) a Partition Table

Current - Describe The Current Disk

Format - Format and Analyze the Disk

REPAIR - Repair a Defective Sector

Label - Write label to the disk

Analyze - Surface Analysis

Defect - Defect List Management

Backup - Search for Backup Labels

Verify - Read and Display Labels

Save - Save New Disk / Partition Definitions

Inquiry - Show vendor, Product and Revision

Volname - SET 8-Character Volume Name

! - Execute , Then Returnquit

Format> partition

Partition menu:

0 - Change `0 'Partition

1 - Change `1 'Partition

2 - Change `2 'Partition

3 - Change `3 'Partition

4 - Change `4 'Partition

5 - Change `5 'Partition

6 - Change `6 'Partition

7 - Change `7 'Partition

SELECT - SELECT A PREDEFINED TABLE

Modify - Modify a predefined partition TABLE

Name - Name The Current Table

Print - Display The Current Table

Label - Write Partition map and label to the disk

! - Execute , Then Return

quit

Partition> 0

Part Tag Flag Cylinders Size Blocks

0 root WM 0 - 90 128.37MB (91/0/0) 262899

ENTER Partition ID Tag [root]:

ENTER Partition Permission Flags [WM]:

Enter New Starting Cyl [0]:

ENTER Partition Size [262899B, 91C, 128.37MB, 0.13GB]: 0C (Zero Cylinders)

Partition> 1 (REPEAT ABOVE Steps for Partitions 1-7)

Partition> label (this Saves your configurations to the disk)

Ready to Label Disk, Continue? Y

Partition> Q

Format> Verify (EnSure The Configurations Are in Place)

PRIMARY LABEL CONTENTS:

Volume name = <>

ASCII Name =

PCYL = 24622

Ncyl = 24620

Acyl = 2

nhead = 27

NSECT = 107

Part Tag Flag Cylinders Size Blocks

0 UNASSIGNED WM 0 0 (0/0/0) 0

1 unassigned wu 0 (0/0/0) 0

2 Backup Wu 0 - 24619 33.92GB (24620/0) 711271803 Unassigned WM 0 (0/0/0) 0

4 UNASSIGNED WM 0 0 (0/0/0) 0

5 UNASSIGNED WM 0 0 (0/0/0) 0

6 UNASSIGNED WM 0 0 (0/0/0) 0

7 Unassigned WM 0 0 (0/0/0) 0

Determine How Many Cylinders to Use for Each SLICE

Subtract 20 from The Total Number of Cylinders (in bold Above) for the metadb on Slice 7 (24619 - 20). Divide the remaining cylinders by The Remaining Slices (24599/6 = 4100).

Configure new partitions

Format> partition

Partition menu:

0 - Change `0 'Partition

1 - Change `1 'Partition

2 - Change `2 'Partition

3 - Change `3 'Partition

4 - Change `4 'Partition

5 - Change `5 'Partition

6 - Change `6 'Partition

7 - Change `7 'Partition

SELECT - SELECT A PREDEFINED TABLE

Modify - Modify a predefined partition TABLE

Name - Name The Current Table

Print - Display The Current Table

Label - Write Partition map and label to the disk

! - Execute , Then Return

quit

Partition> 0

Part Tag Flag Cylinders Size Blocks

0 UNASSIGNED WM 0 0 (0/0/0) 0

ENTER Partition ID Tag [Unassigned]: USR

ENTER Partition Permission Flags [WM]:

Enter New Starting Cyl [0]:

Enter Partition Size [0B, 0C, 0.00MB, 0.00GB]: 4100C (4100 Cylinders)

Partition> Label (Save The Configuration To Disk)

Ready to Label Disk, Continue? Ypartition> Q

Format> Verify

PRIMARY LABEL CONTENTS:

Volume name = <>

ASCII Name =

PCYL = 24622

Ncyl = 24620

Acyl = 2

nhead = 27

NSECT = 107

Part Tag Flag Cylinders Size Blocks

0 USR WM 0 - 4099 5.65GB (4100/0/0) 11844900

1 unassigned wu 0 (0/0/0) 0

2 backup wu 0 - 24619 33.92GB (24620/0/0) 71127180

3 Unassigned WM 0 0 (0/0/0) 0

4 UNASSIGNED WM 0 0 (0/0/0) 0

5 UNASSIGNED WM 0 0 (0/0/0) 0

6 UNASSIGNED WM 0 0 (0/0/0) 0

7 Unassigned WM 0 0 (0/0/0) 0

Note: from the verify, we know That The next partition should start at 4100.

Format> partition

Partition> 1

Part Tag Flag Cylinders Size Blocks

1 unassigned wu 0 (0/0/0) 0

ENTER Partition ID Tag [Unassigned]: USR

Enter Partition Permission Flags [Wu]:

Enter New Starting Cyl [0]: 4100 (from the verify, Above)

Enter Partition Size [0B, 0C, 0.00MB, 0.00GB]: 4100C (4100 Cylinders)

Partition> label

Ready to Label Disk, Continue? Y (Repeat Above Steps for Partitions 2-6)

Partition> Q

Format> Verify

PRIMARY LABEL CONTENTS:

Volume name = <>

ASCII Name =

PCYL = 24622

Ncyl = 24620ACYL = 2

nhead = 27

NSECT = 107

Part Tag Flag Cylinders Size Blocks

0 USR WM 0 - 4099 5.65GB (4100/0/0) 11844900

1 USR WU 4100 - 8199 5.65GB (4100/0/0) 11844900

2 backup wu 0 - 24619 33.92GB (24620/0/0) 71127180

3 USR WM 8200 - 12299 5.65GB (4100/0/0) 11844900

4 USR WM 12300 - 16399 5.65GB (4100/0/0) 11844900

5 USR WM 16400 - 20499 5.65GB (4100/0/0) 11844900

6 USR WM 20500 - 24599 5.65GB (4100/0/0) 11844900

7 Unassigned WM 0 0 (0/0/0) 0

Format> partition

Partition> 7

Part Tag Flag Cylinders Size Blocks

7 Unassigned WM 0 0 (0/0/0) 0

ENTER Partition ID Tag [Unassigned]: USR

ENTER Partition Permission Flags [WM]:

Enter New Starting Cyl [0]: 24600

Enter Partition Size [0b, 0C, 0.00MB, 0.00GB]: 20C

Partition> label

Ready to Label Disk, Continue? Y

Partition> Q

Format> Verify (this is the final configuration)

PRIMARY LABEL CONTENTS:

Volume name = <>

ASCII Name =

PCYL = 24622

Ncyl = 24620

Acyl = 2

nhead = 27

NSECT = 107

Part Tag Flag Cylinders Size Blocks

0 USR WM 0 - 4099 5.65GB (4100/0/0) 11844900

1 USR WU 4100 - 8199 5.65GB (4100/0/0) 11844900

2 Backup Wu 0 - 24619 33.92GB (24620/0/0) 711271803 USR WM 8200 - 12299 5.65GB (4100/0/0) 11844900

4 USR WM 12300 - 16399 5.65GB (4100/0/0) 11844900

5 USR WM 16400 - 20499 5.65GB (4100/0/0) 11844900

6 USR WM 20500 - 24599 5.65GB (4100/0/0) 11844900

7 USR WM 24600 - 24619 28.21MB (20/0/0) 57780

Format> Q

# prtvtoc -h / dev / rdsk / c1t2d0s2> /opt/admin/docs/PRTVTOC-DISKS.TXT (SAVE The Partition Sizes to a file)

# More /opt/admin/docs/prtvtoc-disks.txt (Ensure the Configuration WAS Saved)

0 4 00 0 11844900 11844899

1 4 01 11844900 11844900 23689799

2 5 01 0 71127180 71127179

3 4 00 23689800 11844900 35534699

4 4 00 35534700 11844900 47379599

5 4 00 47379600 11844900 59224499

6 4 00 59224500 11844900 71069399

7 4 00 71069400 57780 71127179

# fmthard -s /opt/admin/docs/PRTVTOC-DISKS.TXT / DEV / RDSK / C1T3D0S2 (Formatted The next Disk with the Same Partition Size)

FMTHARD: New Volume Table of Contents Now in place.

# fmthard -s /opt/admin/docs/PRTVTOC-DISKS.TXT / DEV / RDSK / C1T4D0S2

FMTHARD: New Volume Table of Contents Now in place.

# fmthard -s /opt/admin/docs/prtvtoc-disks.txt / dev / rdsk / c1t5d0s2

FMTHARD: New Volume Table of Contents Now in place.

# metadb -a c1t2d0s7 (Added a metadb)

# metadb -a c1t3d0s7

# metadb -a c1t4d0s7

# metadb -a c1t5d0s7

Add RAID 0 1 File Systems

# CD / ETC

# cp vfstab vfstab -After-bootmir

# vi vfstab (add lines)

/ DEV / MD / DSK / D7 / DEV / MD / RDSK / D7 / ORA / U01 UFS 2 YES -

/ DEV / MD / DSK / D8 / DEV / MD / RDSK / D8 / ORA / U02 UFS 2 YES - / DEV / MD / DSK / D9 / DEV / MD / RDSK / D9 / App / Oracle / Admin UFS 2 YES -

# CD / ETC / LVM

# cp md.tab md.tab-bootmir

# vi md.tab (add lines)

D71 2 1 / DEV / DSK / C1T2D0S0 1 / DEV / DSK / C1T3D0S0

D72 2 1 / DEV / DSK / C1T4D0S0 1 / DEV / DSK / C1T5D0S0

D7 -M D71

D81 2 1 / DEV / DSK / C1T2D0S1 1 / DEV / DSK / C1T3D0S1

D82 2 1 / DEV / DSK / C1T4D0S1 1 / DEV / DSK / C1T5D0S1

D8-M D81

D91 2 1 / DEV / DSK / C1T2D0S3 1 / DEV / DSK / C1T3D0S3

D92 2 1 / DEV / DSK / C1T4D0S3 1 / DEV / DSK / C1T5D0S3

D9-M D91

# Metainit D71

D71: Concat / Stripe IS Setup

# newfs -m 2 / dev / md / rdsk / d71

Newfs: construct a new file system / dev / md / rdsk / d71: (y / n)? y

Cylinder Groups Must Have A Multiple of 16 Cylinders with the given parameters

Rounded Cgsize Up to 256

WARNING: 1 Sector (s) in Last Cylinder UnalloCated

/ DEV / MD / RDSK / D71: 23686910 Sectors in 8199 Cylinders of 27 TRACks, 107 SECTORS

11565.9MB in 257 CYL Groups (32 C / g, 45.14MB / g, 5632 I / g)

Super-block backups (for fsck -f ufs -o b = #) AT:

32, 92592, 185152, 277712, 370272, 462832, 555392, 647952, 740512, 833072,

925632, 1018192, 1110752, 12033312, 1295872, 1388432, 1480992, 1573552,

1666112, 1758672, 1851232, 1943792, 2036352, 2128912, 2221472, 2314032,

2406592, 2499152, 2591712, 2684272, 2776832, 2869392, 2958368, 3050928,

3143488, 3236048, 3328608, 3421168, 3513728, 3606288, 3698848, 3791408,

3883968, 3976528, 4069088, 4161648, 4254208, 4346768, 4439328, 4531888,

4624448, 4717008, 4809568, 4902128, 4994688, 5087248, 5179808, 5272368,

5364928, 5457488, 5550048, 5642608, 5735168, 5827728, 5916704, 6009264,

6101824, 6194384, 6286944, 6379504, 6472064, 6564624, 6657184, 6749744,

6842304, 6934864, 7027424, 7119984, 7212544, 735104, 739764, 7,749,424,7582,784,767,4584, 7,953024, 8045584, 8138144, 8230704,

8323264, 8415824, 8508384, 8600944, 8693504, 8786064, 8875040, 8967600,

9060160, 9152720, 9245280, 9337840, 9430400, 9522960, 9615520, 9708080,

9800640, 9893200, 9985760, 10078320, 10170880, 10263440, 10356000, 10448560,

10541120, 10633680, 10726240, 10818800, 10911360, 11003920, 11096480,

11189040, 11281600, 11374160, 11466720, 11559280, 11651840, 11744400,

11833376, 11925936, 12018496, 12111056, 12203616, 12296176, 12388736,

12481296, 12573856, 12666416, 12758976, 12851536, 12944096, 13036656,

13129216, 13221776, 13314336, 13406896, 13499456, 13592016, 13684576,

13777136, 13869696, 13962256, 14054816, 14147376, 14239936, 14332496,

14425056, 14517616, 14610176, 14702736, 14791712, 14884272, 14976832,

15069392, 15161952, 15254512, 15347072, 15439632, 15532192, 15624752,

15717312, 15809872, 15902432, 15994992, 16087552, 16180112, 16272672,

16365232, 16457792, 16550352, 16642912, 16735472, 16828032, 16920592,

17013152, 17105712, 17198272, 17290832, 17383392, 17475952, 17568512,

17661072, 17750048, 17842608, 17935168, 18027728, 18120288, 18212848,

18305408, 18397968, 18490528, 18583088, 18675648, 18768208, 18860768,

18953328, 1904588, 1913848, 19231008, 19323568, 19416128, 19508688,

19601248, 19693808, 19786368, 19878928, 19971488, 20064048, 20156608,

20249168, 20341728, 20434288, 20526848, 20619408, 20708384, 20800944,

20893504, 20986064, 21078624, 21171184, 21263744, 21356304, 21448864,

21541424, 21633984, 21726544, 21819104, 21911664, 22004224, 22096784,

22189344, 22281904, 22374464, 22467024, 22555584, 22652144, 22744704,

22837264, 22929824, 23022384, 23114944, 23,07504, 233, 23485184, 23577744, 23666720,

Comment: "-m 2" = 2% of the disk will be set aside for the File System Configurations. The default is 10%.

THE DRAWBACK TO this Is The Superblock Is Different from The Norm. If You Need To Restore, You Must Have

The Superblock Information in Bold Above.

# Metainit D7

D7: mirror is setup

# Metainit D72

D72: Concat / Stripe IS Setup

# Metattach D7 D72

D7: Submirror D72 Is Attached

# mkdir ora

# cd ora

# MKDIR U01

# CD / ETC

# vi vfstab (add lines)

/ DEV / MD / DSK / D7 / DEV / MD / RDSK / D7 / ORA / U01 UFS 2 YES -

# mount / ora / u01

# df -k

FileSystem Kbytes Used Avail Capacity Mounted ON

/ DEV / MD / DSK / D1 11490824 116417 11259499 2% /

/ DEV / MD / DSK / D3 3096423 802092 2232403 27% / usr

/ proc 0 0 0 0% / proc

FD 0 0 0 0% / DEV / FD

MNTTAB 0 0 0 0% / etc / mnttab

/ DEV / MD / DSK / D4 4080897 49663 3990426 2% / var

SWAP 11677288 16 11677272 1% / var / run

SWAP 11677320 48 11677272 1% / TMP

/ DEV / MD / DSK / D5 4080897 11139 4028950 1% / OPT

/ DEV / MD / DSK / D6 4080897 9 4040080 1% / App / Oracle / Product

/ VOL / DEV / DSK / C0T6D0 / SOL_8_202_SPARC_2

211714 211714 0 100% / CDROM / SOL_8_202_SPARC_2

/ DEV / MD / DSK / D7 11658394 9 11425218 1% / ORA / U01

# Metainit D81

D81: Concat / Stripe IS setup

# newfs -m 2 / dev / md / rdsk / d81

Newfs: construct a new file system / dev / md / rdsk / d81: (y / n)? Y

Cylinder Groups Must Have a Multiple of 16 Cylinders with the given parametersrounded cgsize up to 256

/ DEV / MD / RDSK / D81: 23689800 Sectors in 8200 Cylinders of 27 TRACks, 107 SECTORS

11567.3MB in 257 CYL Groups (32 C / g, 45.14MB / g, 5632 I / g)

Super-block backups (for fsck -f ufs -o b = #) AT:

32, 92592, 185152, 277712, 370272, 462832, 555392, 647952, 740512, 833072,

925632, 1018192, 1110752, 12033312, 1295872, 1388432, 1480992, 1573552,

1666112, 1758672, 1851232, 1943792, 2036352, 2128912, 2221472, 2314032,

2406592, 2499152, 2591712, 2684272, 2776832, 2869392, 2958368, 3050928,

3143488, 3236048, 3328608, 3421168, 3513728, 3606288, 3698848, 3791408,

3883968, 3976528, 4069088, 4161648, 4254208, 4346768, 4439328, 4531888,

4624448, 4717008, 4809568, 4902128, 4994688, 5087248, 5179808, 5272368,

5364928, 5457488, 5550048, 5642608, 5735168, 5827728, 5916704, 6009264,

6101824, 6194384, 6286944, 6379504, 6472064, 6564624, 6657184, 6749744,

6842304, 6934864, 7027424, 7119984, 7212544, 7305104, 7397664, 7490224,

7582784, 7675344, 7767904, 7860464, 7953024, 8045584, 8138144, 8230704,

8323264, 8415824, 8508384, 8600944, 8693504, 8786064, 8875040, 8967600,

9060160, 9152720, 9245280, 9337840, 9430400, 9522960, 9615520, 9708080,

9800640, 9893200, 9985760, 10078320, 10170880, 10263440, 10356000, 10448560,

10541120, 10633680, 10726240, 10818800, 10911360, 11003920, 11096480,

11189040, 11281600, 11374160, 11466720, 11559280, 11651840, 11744400,

11833376, 11925936, 12018496, 12111056, 12203616, 12296176, 12388736,

12481296, 12573856, 12666416, 12758976, 12851536, 12944096, 13036656,

13129216, 13221776, 13314336, 13406896, 13499456, 13592016, 13684576,

13777136, 13869696, 13962256, 14054816, 14147376, 1423993, 1433, 145176, 1461017, 14884272, 14976832,

15069392, 15161952, 15254512, 15347072, 15439632, 15532192, 15624752,

15717312, 15809872, 15902432, 15994992, 16087552, 16180112, 16272672,

16365232, 16457792, 16550352, 16642912, 16735472, 16828032, 16920592,

17013152, 17105712, 17198272, 17290832, 17383392, 17475952, 17568512,

17661072, 17750048, 17842608, 17935168, 18027728, 18120288, 18212848,

18305408, 18397968, 18490528, 18583088, 18675648, 18768208, 18860768,

18953328, 1904588, 1913848, 19231008, 19323568, 19416128, 19508688,

19601248, 19693808, 19786368, 19878928, 19971488, 20064048, 20156608,

20249168, 20341728, 20434288, 20526848, 20619408, 20708384, 20800944,

20893504, 20986064, 21078624, 21171184, 21263744, 21356304, 21448864,

21541424, 21633984, 21726544, 21819104, 21911664, 22004224, 22096784,

22189344, 22281904, 22374464, 22467024, 22555584, 22652144, 22744704,

22837264, 22929824, 23022384, 23114944, 23207504, 23300064, 23392624,

23485184, 23577744, 23666720,

# Metainit D8

D8: mirror is setup

# Metainit D82

D82: Concat / Stripe IS Setup

# Metattach D8 D82

# CD /

# mkdir ora

# cd ora

# MKDIR U02

# VI / ETC / VFSTAB

/ DEV / MD / DSK / D8 / DEV / MD / RDSK / D8 / ORA / U02 UFS 2 YES -

# mount / ora / u02

# df -k

FileSystem Kbytes Used Avail Capacity Mounted ON

/ DEV / MD / DSK / D1 11490824 116426 11259490 2% /

/ DEV / MD / DSK / D3 3096423 802092 2232403 27% / usr

/ proc 0 0 0 0% / proc

FD 0 0 0 0% / DEV / FD

MNTTAB 0 0 0 0% / etc / mnttab

/ DEV / MD / DSK / D4 4080897 49687 3990402 2% / Varswap 11678000 8 11677992 1% / var / run

SWAP 11678040 48 11677992 1% / TMP

/ DEV / MD / DSK / D5 4080897 11139 4028950 1% / OPT

/ DEV / MD / DSK / D7 11658394 9 11425218 1% / ORA / U01

/ DEV / MD / DSK / D6 4080897 9 4040080 1% / App / Oracle / Product

/ VOL / DEV / DSK / C0T6D0 / SOL_8_202_SPARC_2

211714 211714 0 100% / CDROM / SOL_8_202_SPARC_2

/ DEV / MD / DSK / D8 11659839 9 11426634 1% / ORA / U02

Section IV. Appendix

/etc/lvm/md.tab

# cat md.tab

D11 1 1 / DEV / DSK / C1T0D0S0

D12 1 1 / DEV / DSK / C1T1D0S0

D1-M D11

D21 1 1 / DEV / DSK / C1T0D0S1

D22 1 1 / DEV / DSK / C1T1D0S1

D2-M D21

D31 1 1 / DEV / DSK / C1T0D0S3

D32 1 1 / DEV / DSK / C1T1D0S3

D3-M D31

D41 1 1 / DEV / DSK / C1T0D0S4

D42 1 1 / DEV / DSK / C1T1D0S4

D4-M D41

D51 1 1 / DEV / DSK / C1T0D0S5

D52 1 1 / DEV / DSK / C1T1D0S5

D5 -M D51

D61 1 1 / DEV / DSK / C1T0D0S6

D62 1 1 / DEV / DSK / C1T1D0S6

D6-M D61

D71 2 1 / DEV / DSK / C1T2D0S0 1 / DEV / DSK / C1T3D0S0

D72 2 1 / DEV / DSK / C1T4D0S0 1 / DEV / DSK / C1T5D0S0

D7 -M D71

D81 2 1 / DEV / DSK / C1T2D0S1 1 / DEV / DSK / C1T3D0S1

D82 2 1 / DEV / DSK / C1T4D0S1 1 / DEV / DSK / C1T5D0S1

D8-M D81

D91 2 1 / DEV / DSK / C1T2D0S3 1 / DEV / DSK / C1T3D0S3

D92 2 1 / DEV / DSK / C1T4D0S3 1 / DEV / DSK / C1T5D0S3

D9-M D91

# cat md.tab-bootmir

D11 1 1 / DEV / DSK / C1T0D0S0

D12 1 1 / DEV / DSK / C1T1D0S0

D1-M D11

D21 1 1 / DEV / DSK / C1T0D0S1

D22 1 1 / DEV / DSK / C1T1D0S1

D2-M D21

D31 1 1 / DEV / DSK / C1T0D0S3

D32 1 1 / DEV / DSK / C1T1D0S3

D3-M D31

D41 1 1 / DEV / DSK / C1T0D0S4

D42 1 1 / DEV / DSK / C1T1D0S4

D4-M D41

D51 1 1 / DEV / DSK / C1T0D0S5

D52 1 1 / DEV / DSK / C1T1D0S5

D5 -M D51

D61 1 1 / DEV / DSK / C1T0D0S6

D62 1 1 / DEV / DSK / C1T1D0S6

D6-M D61

# cat md.tab.orig

#

#ident "@ (#) md.tab 1.6 94/11/14 SMI"

#

# md.tab

#

# Metainit Utility Input File.

#

# The following example show The format for local metadeadevices, and A

# Similar Example for a Shared Metadevice, Where appropiate. The shared

# METADEVICES Are In The Diskset Named "Blue":

#

# Metadevice Database Entry:

#

# MDDB01 / DEV / DSK / C0T2D0S0 / DEV / DSK / C0T0D0S0

#

# ConcateNation of Devices:

#

# D10 2 1 / DEV / DSK / C0T2D0S0 1 / DEV / DSK / C0T0D0S0

# Blue / D10 2 1 / DEV / DSK / C2T2D0S0 1 / DEV / DSK / C2T0D0S0

#

# Stripe of Devices:

#

# D11 2 / DEV / DSK / C0T2D0S1 / DEV / DSK / C0T0D0S1

# Blue / D11 1 2 / DEV / DSK / C2T2D0S1 / DEV / DSK / C2T0D0S1

#

# Concatenation of Stripes (with a hot spare pool):

#

# D13 2 2 / DEV / DSK / C0T2D0S0 / DEV / DSK / C0T0D0S0 /

# 2 / dev / dsk / c0t2d0s1 / dev / dsk / c0t0d0s1 -h HSP001

# Blue / D13 2 2 / DEV / DSK / C2T2D0S0 / DEV / DSK / C2T0D0S0 /

# 2 / dev / dsk / C2T2D0S1 / DEV / DSK / C2T0D0S1 -H blue / hsp001

#

# Two Way Mirror:

#

# D14 -M D10 D11

# Blue / d14 -m blue / d10 blue / d11

#

# Logging w / components for master and logging device

#

# D0 -T / DEV / DSK / C1T2D0S0 / DEV / DSK / C1T0D0S0

# Blue / d0 -t / dev / dsk / c2t2d0s0 / dev / dsk / c2t0d0s0

#

# Logging with mirrored master device and strong logging device

#

# D1-T D14 D13

# Blue / d1 -t blue / d14 blue / d13

#

# RAID of Devices

#

# D15 -R / DEV / DSK / C1T0D0S0 / DEV / DSK / C1T1D0S0 /

# / Dev / dsk / C1T2D0S0 / DEV / DSK / C1T3D0S0

# Blue / D15 -R / DEV / DSK / C2T0D0S0 / DEV / DSK / C2T1D0S0 /

# / Dev / dsk / c2t2d0s0 / dev / dsk / c2t3d0s0 #

# Hot Spare Pool of Devices

#

# HSP001 / DEV / DSK / C1T0D0S0

# Blue / hsp001 / dev / dsk / c2t0d0s0

/ ETC / VFSTAB

# cat vfstab

#Device device mount fs fsck mount mount

#to mount to fsck point Type Pass at boot options

#

# / DEV / DSK / C1D0S2 / DEV / RDSK / C1D0S2 / USR UFS 1 YES -

FD - / DEV / FD FD - NO -

/ Proc - / Proc Proc - NO -

# / dev / dsk / c1t0d0s1 - - swap - no -

/ DEV / MD / DSK / D2 - - SWAP - NO -

/ DEV / MD / DSK / D1 / DEV / MD / RDSK / D1 / UFS 1 NO -

# / dev / dsk / c1T0D0S3 / DEV / RDSK / C1T0D0S3 / USR UFS 1 NO -

/ DEV / MD / DSK / D3 / DEV / MD / RDSK / D3 / USR UFS 1 NO -

# / dev / dsk / c1t0d0s4 / dev / rdsk / c1t0d0s4 / var ufs 1 NO -

/ DEV / MD / DSK / D4 / DEV / MD / RDSK / D4 / VAR UFS 1 NO -

# / dev / dsk / c1t0d0s6 / dev / rdsk / c1t0d0s6 / app / oracle / product uf 2 yes -

/ DEV / MD / DSK / D6 / DEV / MD / RDSK / D6 / App / Oracle / Product UFS 2 YES -

# / dev / dsk / c1t0d0s7 / dev / rdsk / c1t0d0s7 / metadb ufs 2 yes -

# / dev / dsk / c1t0d0s5 / dev / rdsk / c1T0D0S5 / OPT UFS 2 yes -

/ DEV / MD / DSK / D5 / DEV / MD / RDSK / D5 / OPT UFS 2 YES -

SWAP - / TMP TMPFS - YES - YES -

/ DEV / MD / DSK / D7 / DEV / MD / RDSK / D7 / ORA / U01 UFS 2 YES -

/ DEV / MD / DSK / D8 / DEV / MD / RDSK / D8 / ORA / U02 UFS 2 YES -

/ DEV / MD / DSK / D9 / DEV / MD / RDSK / D9 / App / Oracle / Admin UFS 2 YES -

# Cat vfstab-bootmir # Device Device Mount Fs Fsck Mount Mount

#to mount to fsck point Type Pass at boot options

#

# / DEV / DSK / C1D0S2 / DEV / RDSK / C1D0S2 / USR UFS 1 YES -

FD - / DEV / FD FD - NO -

/ Proc - / Proc Proc - NO -

# / dev / dsk / c1t0d0s1 - - swap - no -

/ DEV / MD / DSK / D2 - - SWAP - NO -

/ DEV / MD / DSK / D1 / DEV / MD / RDSK / D1 / UFS 1 NO -

# / dev / dsk / c1T0D0S3 / DEV / RDSK / C1T0D0S3 / USR UFS 1 NO -

/ DEV / MD / DSK / D3 / DEV / MD / RDSK / D3 / USR UFS 1 NO -

# / dev / dsk / c1t0d0s4 / dev / rdsk / c1t0d0s4 / var ufs 1 NO -

/ DEV / MD / DSK / D4 / DEV / MD / RDSK / D4 / VAR UFS 1 NO -

# / dev / dsk / c1t0d0s6 / dev / rdsk / c1t0d0s6 / app / oracle / product uf 2 yes -

/ DEV / MD / DSK / D6 / DEV / MD / RDSK / D6 / App / Oracle / Product UFS 2 YES -

# / dev / dsk / c1t0d0s7 / dev / rdsk / c1t0d0s7 / metadb ufs 2 yes -

# / dev / dsk / c1t0d0s5 / dev / rdsk / c1T0D0S5 / OPT UFS 2 yes -

/ DEV / MD / DSK / D5 / DEV / MD / RDSK / D5 / OPT UFS 2 YES -

SWAP - / TMP TMPFS - YES - YES -

# Cat vfstab.orig

#Device device mount fs fsck mount mount

#to mount to fsck point Type Pass at boot options

#

# / DEV / DSK / C1D0S2 / DEV / RDSK / C1D0S2 / USR UFS 1 YES -

FD - / DEV / FD FD - NO -

/ Proc - / Proc Proc - NO -

/ DEV / DSK / C1T0D0S1 - - SWAP - NO -

/ DEV / MD / DSK / D1 / DEV / MD / RDSK / D1 / UFS 1 NO - / DEV / DSK / C1T0D0S3 / DEV / RDSK / C1T0D0S3 / USR UFS 1 NO -

/ DEV / DSK / C1T0D0S4 / DEV / RDSK / C1T0D0S4 / VAR UFS 1 NO -

/ DEV / DSK / C1T0D0S6 / DEV / RDSK / C1T0D0S6 / App / Oracle / Product UFS 2 YES -

/ DEV / DSK / C1T0D0S7 / DEV / RDSK / C1T0D0S7 / Metadb UFS 2 YES -

/ DEV / DSK / C1T0D0S5 / DEV / RDSK / C1T0D0S5 / OPT UFS 2 YES -

SWAP - / TMP TMPFS - YES - YES -

转载请注明原文地址:https://www.9cbs.com/read-127844.html

New Post(0)