Windows Server 2003 硬碟管理與磁碟機陣列

33
Windows Server 2003 硬硬硬硬硬硬硬硬硬硬 林林林 jeffl@ms11.hinet.net

description

Windows Server 2003 硬碟管理與磁碟機陣列. 林寶森 [email protected]. What Is Disk Management?. A snap-in located in Computer Management Use to view disk information and perform disk management tasks on local and remote computers - PowerPoint PPT Presentation

Transcript of Windows Server 2003 硬碟管理與磁碟機陣列

Page 1: Windows Server 2003 硬碟管理與磁碟機陣列

Windows Server 2003硬碟管理與磁碟機陣列

林寶森[email protected]

Page 2: Windows Server 2003 硬碟管理與磁碟機陣列

What Is Disk Management?• A snap-in located in Computer Management • Use to view disk information and perform disk

management tasks on local and remote computers• Enables you to perform most disk-related tasks without

shutting down the system or interrupting users

Page 3: Windows Server 2003 硬碟管理與磁碟機陣列

Using Disk Managementcompmgmt - [Computer Management (Local)\Storage\Disk Management]

Action View

Volume (C:)

LayoutPartition

TypeBasic

Computer Management (Local)System ToolsStorage

Removable StorageDisk DefragmenterLogical Drives Disk Management

Server Applications and ServicesDisk Management

Disk 0Basic3.02 GBOnline

(C:)1.37 GB NTFSHealthy (System)

RefreshRescan DisksRestore Basic Disk Configuration…

NewAll TasksViewHelp

OpenExplore

Change Drive Letter and Path…Format…

Delete Partition…

Properties

Help

Mark Partition ActiveMark Partition Active

Upgrade to Dynamic Disk…

Properties

Help

Select disk

Select disk

Select partition or

volume

Select partition or

volume

Page 4: Windows Server 2003 硬碟管理與磁碟機陣列

Organizing a Basic Disk

H:H:G:G:F:F:

E:E:

D:D:

C:C:

F:F:

E:E:

D:D:

C:C:

-OR--OR--OR--OR-

Primarypartitions

Up to four primary partitions

Up to three primary partitions and one extended partition

with logical drives

Extendedpartition withlogical drives

Page 5: Windows Server 2003 硬碟管理與磁碟機陣列

Creating Partitions and DrivesCreating a partitionCreating a partition

Creating a logical driveCreating a logical drive

Page 6: Windows Server 2003 硬碟管理與磁碟機陣列

Assigning Drive Letters

Disk 0

Disk 1

Disk 2

Disk 3

C:I:

C:I:

F:F:

G:G:

H:H:

D:D:

E:E:

Assigned

Primary

Primary

Primary

Logical

Page 7: Windows Server 2003 硬碟管理與磁碟機陣列

Changing a Drive Letter

Page 8: Windows Server 2003 硬碟管理與磁碟機陣列

What Is a Mounted Drive?

• Is assigned a path rather than a drive letter • Can unify different file systems on a logical drive• Allows you to add more drives without using up

drive letters

Page 9: Windows Server 2003 硬碟管理與磁碟機陣列

Creating a Mount Point

Before adding a mount pointBefore adding a mount point

After adding a mount pointAfter adding a mount point

Page 10: Windows Server 2003 硬碟管理與磁碟機陣列

Purpose of a Mounted Drive

• Adds volumes to systems without adding separate drive letters for each new volume– Disk Management assigns a drive path to the drive

rather than a drive letter– Drive paths retain their association to the drive – Add or rearrange storage devices without the drive path

failing

• Increases number of drives, not storage space• Manages data storage based on working

environment and system usage

Page 11: Windows Server 2003 硬碟管理與磁碟機陣列

Deleting a Partition

Page 12: Windows Server 2003 硬碟管理與磁碟機陣列

Disk Storage Types

Simple volume

Basic StorageBasic Storage

Extendedpartition withlogical drivesH:H:

G:G:F:F:

E:E:

D:D:

C:C:

F:F:

E:E:

D:D:

C:C:

-or--or--or--or-

Primarypartitions

Dynamic StorageDynamic Storage

Spanned volume

Mirrored volume

RAID-5 volume

Striped volume

Page 13: Windows Server 2003 硬碟管理與磁碟機陣列

Basic Disks vs. Dynamic Disks

Disk Benefits

Basic disks

Use to create segregated space to organize data

Can be divided into up to 4 primary partitions, or up to 3 primary partitions and one extended partition

Dynamic disks

Use to create volumes that span multiple disks

No limit on the number of volumes per disk

Use to create fault-tolerant disks that ensure data integrity when hardware failures occur

Page 14: Windows Server 2003 硬碟管理與磁碟機陣列

Converting a Basic Disk to a Dynamic Disk

Disk ManagementDisk Management

DiskPartDiskPart

Page 15: Windows Server 2003 硬碟管理與磁碟機陣列

Results of Dynamic Disk Conversion

• Can convert a disk from basic to dynamic storage at any time without losing data

• Dynamic disks are associated with Disk Groups– Disk Groups help you organize dynamic disks– Each disk in a Disk Group stores replicas of the same

configuration data– Windows initializes the disk with a Disk Group identity and a copy

of the current Disk Group configuration

• Existing partitions on the basic disk become volumes • Dynamic disks can be reverted back to basic disks

– Disk structure and data is not maintained– Back up data before reverting

Page 16: Windows Server 2003 硬碟管理與磁碟機陣列

Creating a Volume

• A simple volume resides on a single dynamic disk

• To create a spanned or striped volume, you must have two or more dynamic disks

Page 17: Windows Server 2003 硬碟管理與磁碟機陣列

Creating Simple Volumes

Simple Volumes: • Contain Space on a Single Disk• Can Use NTFS, FAT, or FAT32• Can be created only on dynamic disks• Are Created with the Create Volume Wizard• Can Be Extended if Formatted as NTFS• Can Be Mirrored

Page 18: Windows Server 2003 硬碟管理與磁碟機陣列

Extending a Volume

• Created by extending onto unallocated space on the same disk or a different disk

• You cannot extend a volume that contains a system or boot volume

Page 19: Windows Server 2003 硬碟管理與磁碟機陣列

Creating Spanned Volumes

3994 MBUnallocated

New Volume (G)100 MB NTFSHealthy

Disk 1Dynamic4094 MBOnline

3994 MBUnallocated

New Volume (G)100 MB NTFSHealthy

Disk 2Dynamic4094 MBOnline

EmptyEmpty

Free space combined into one logical volumeFree space combined into one logical volume

Data written to first disk until full, then to next disk in volume

Data written to first disk until full, then to next disk in volume

EmptyData

Page 20: Windows Server 2003 硬碟管理與磁碟機陣列

RAID Systems

• Hardware Disk Array Supports– RAID 0 + 1– RAID 1 + 5

RAID 0RAID 0

RAID 1RAID 1

RAID 2RAID 2

RAID 3RAID 3

RAID 4RAID 4

Disk stripingDisk striping

Disk mirroringDisk mirroring

Disk striping with error-correction code (ECC)Disk striping with error-correction code (ECC)

Disk striping with ECC stored as parityDisk striping with ECC stored as parity

Disk striping large blocks; parity stored on one driveDisk striping large blocks; parity stored on one drive

RAID 5RAID 5 Disk striping with parity distributed across multiple drivesDisk striping with parity distributed across multiple drives

= Software Implementations of RAID Supported by Windows Server 2003

Page 21: Windows Server 2003 硬碟管理與磁碟機陣列

Creating Striped Volumes

3994 MBUnallocated

New Volume (G)100 MB NTFSHealthy

Disk 1Dynamic4094 MBOnline

3994 MBUnallocated

New Volume (G)100 MB NTFSHealthy

Disk 2Dynamic4094 MBOnline

64 KB64 KB64 KB

Free space combined into one logical volumeFree space combined into one logical volume

Data written across all disks in 64-KB unitsData written across all disks in 64-KB units

Page 22: Windows Server 2003 硬碟管理與磁碟機陣列

How Striped Volume WorksDisk 3Disk 1 Disk 2

Page 23: Windows Server 2003 硬碟管理與磁碟機陣列

RAID 1: Mirrored Volume

C:

D:D:

E:

Disk 0 Disk 1

Fault ToleranceDriver

Ftdisk.sys

F:

D :D :

G:

´́

Page 24: Windows Server 2003 硬碟管理與磁碟機陣列

Raid 5: Stripe Sets with Parity

Parity

Parity

Parity

Parity

Parity

Disk 3 Disk 4 Disk 5Disk 1 Disk 2

Parity InformationParityParity

Page 25: Windows Server 2003 硬碟管理與磁碟機陣列

Raid 1 vs. Raid 5

Mirrored VolumeMirrored VolumeMirrored VolumeMirrored Volume RAID-5 VolumeRAID-5 VolumeRAID-5 VolumeRAID-5 Volume

Supports FAT and NTFS Supports FAT and NTFS

Can mirror system or boot partition Can mirror system or boot partition

Requires two hard disks Requires two hard disks

Has higher cost per megabyte(50 percent utilization)

Has higher cost per megabyte(50 percent utilization)

Has good read and write performance Has good read and write performance

Uses less system memory Uses less system memory

Supports FAT and NTFS Supports FAT and NTFS

Cannot stripe system or boot partition Cannot stripe system or boot partition

Requires minimum of three hard disks Requires minimum of three hard disks

Has lower cost per megabyte Has lower cost per megabyte

Has moderate write performance Has excellent read performance

Has moderate write performance Has excellent read performance

Requires more system memory Requires more system memory

Supports up to 32 hard disks Supports up to 32 hard disks

Page 26: Windows Server 2003 硬碟管理與磁碟機陣列

Recovering a Failed Mirrored Volume

When Reactivate Disk fails to recover the mirrored volume, replace the failed disk

and reestablish themirrored volume

Recover a disk identified as Offline, Missing, or

Online (Errors)

Disk 1 Disk 2

D:D: D':D':

Reactivate Disk

D:D: D':D':

Add Mirror

Disk 1Disk 2 Disk 2

Remove Mirror

Page 27: Windows Server 2003 硬碟管理與磁碟機陣列

Creating a Fault Tolerance Boot Disk

Test the boot disk Test the boot disk

Modify Boot.ini Modify Boot.ini

Copy the necessary files Copy the necessary files

Format a disk using Windows Server Format a disk using Windows Server1111

2222

3333

4444

BootBootDiskDisk

BootBootDiskDisk

Boot.ini

BootBootDiskDisk

Page 28: Windows Server 2003 硬碟管理與磁碟機陣列

Understanding ARC Paths

No BIOS

multi(0)disk(0)rdisk(1)partition(2)multi(0)disk(0)rdisk(1)partition(2)

multi(0)

rdisk(0) rdisk(1) disk(0)

partition(1)

partition(2)

partition(1)

partition(2)

partition(1)

scsi(0)

Page 29: Windows Server 2003 硬碟管理與磁碟機陣列

Recovering a Failed RAID-5 Volume

When Reactivate Disk fails to recover the RAID-5 volume, replace the failed disk and regenerate the RAID-5 volume

Recover a disk identified as Offline, Missing, or

Online (Errors)

Parity

Parity

Disk 1 Disk 2

Parity

Parity

Disk 3

Parity

Parity

Reactivate Disk

Parity

Parity

Parity

Parity

Parity

Parity

Regenerate Volume on New DiskReplace Failed Disk

Disk 1 Disk 2 Disk 3

Page 30: Windows Server 2003 硬碟管理與磁碟機陣列

Managing Volumes on Disks

• Deleting Spanned Volume and Striped Volume– Deleting a spanned volume or striped volume

deletes all of the data that the volume contains– You can delete entire volume only

• Repairing and Deleting RAID-5 Volume– Repairing a RAID-5 volume requires additional disk

with sufficient free space– Deleting a RAID-5 volume deletes all data that the

volume contains– You can delete entire RAID-5 volume only

Page 31: Windows Server 2003 硬碟管理與磁碟機陣列

Adding Disks• Adding a New Disk

• Adding Disks from Other Computers

• Failed: Incomplete Volume and Failed Redundancy Mean Disk is Missing from Volume

RefreshRescan DisksRestore Basic Disk Configuration…

NewAll TasksViewHelp

Disk 0Basic1908 MBOnline

CDRom 0

CDRom

No Media

Import Foreign Disk

Page 32: Windows Server 2003 硬碟管理與磁碟機陣列

What Is a Foreign Disk?• A dynamic disk when moved to a local computer

from another computer running:– Windows 2000 Professional and Server family– Windows XP Professional– Windows Server 2003 family

• A disk moved within the same system, in some cases

• A disk moved from a disk group to another computer that contains its own disk group can be displayed as a foreign disk

Page 33: Windows Server 2003 硬碟管理與磁碟機陣列

Moving Dynamic Disks

• When moving a dynamic disk, select import foreign disk to update the dynamic database on the newly added disk

• When moving multi-disk volumes, move all disks in the volume at the same time

Moving a diskMoving a diskMoving a diskMoving a disk