Disk Volume Management CSS-1. Terms Extent – any contiguous set of clusters Partition – extent...

18
Disk Volume Management CSS-1

Transcript of Disk Volume Management CSS-1. Terms Extent – any contiguous set of clusters Partition – extent...

Page 1: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Disk Volume Management

CSS-1

Page 2: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Terms

Extent – any contiguous set of clustersPartition – extent treated as a diskVolume - partition formatted with a file

systemBasic disk - basic volumes and logical

drivesDynamic disks

CSS-2© 2012 D. J. Foreman

Page 3: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

WINDOWS

CSS-3© 2012 D. J. Foreman

Page 4: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Basic disk

Exists on single physical driveUses DOS partition tables

■ Simple volume (contiguous extents)■ Primary partitions■ Extended partitions■ Logical drives■ USB removable drives

CSS-4© 2012 D. J. Foreman

Page 5: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Dynamic disks (Windows)Simple volume ≈ primary partition or

logical driveOnly 1 user accessible partitionNot for bootable volumesUp to 1000 volumes on a systemRely on Logical Disk Manager (LDM)

and Virtual Disk ServiceAllows non-contiguous extents

CSS-5© 2012 D. J. Foreman

Page 6: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Dynamic disk volume types

Spanned volumesExtended volumesStriped volumesMirrored volumesRaid-5 volumes

CSS-6© 2012 D. J. Foreman

Page 7: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Partitions

Master Boot Record (DOS style) for Windows

■ 2 choices●4 primary partitions (maximum)●3 Primary + 1 extended partition

Globally Unique ID style■ Basic disk: Up to 128 primary partitions■ Dynamic disk: 1 LDM partition (like MBR)

CSS-7© 2012 D. J. Foreman

Page 8: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

GUID

Allows partitions > 2 terabytesAdded reliability

■ Replication & CRC for partition table

CSS-8© 2012 D. J. Foreman

Page 9: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

MBR example (Basic disk)

CSS-9© 2012 D. J. Foreman

1st Ptable entry

Master boot code

2nd Ptable entry

3rd Ptable entry

4th Ptable entry

Partition table

0x55AA

MBR

Primary Partition 1 C:

Primary Partition 2 E:

Primary Partition 3 F:

Logical Drive G::

Logical Drive H::

Extended Partition

Extended partition does NOT have to be last.Must be contiguous space.

Page 10: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Dynamic disk MBR

Similar to Basic MBR layoutNo extended partitionsOnly ONE Primary partition

■ Called the LDM partitionHidden partition at end for LDM DB

CSS-10© 2012 D. J. Foreman

Page 11: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Dynamic disk

Contains:●simple volumes●spanned volumes●striped volumes●mirrored volumes*●RAID-5 volumes*

* Depends on O/S version

CSS-11© 2012 D. J. Foreman

Page 12: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Dynamic Storage Terms

Simple vol: space on 1 diskSpanned vol: linked space on ≥ 1 disks

■ NOT fault tolerant■ CANNOT be mirrored

CSS-12© 2012 D. J. Foreman

Page 13: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

LINUX

CSS-13© 2012 D. J. Foreman

Page 14: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

A truism

On a Unix system, everything is either a file or a process.

Directories are just files with names of other files

Devices are treated as files with special attributes

http://en.wikipedia.org/wiki/Comparison_of_file_systems

CSS-14© 2012 D. J. Foreman

Page 15: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Partition management

Logical Volume Manager (kernel)Loaders

■ LILO (LInux boot LOader)■ GRUB (GRand Unified Boot loader)

Partitioning programs■ fdisk■ Gparted (Gnome partition editor)■ KDE Partition Manager

CSS-15© 2012 D. J. Foreman

Page 16: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Layout (from Wikipedia)

CSS-16© 2012 D. J. Foreman

PE=Physical Extent

Page 17: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Linux File Systems

Ext (1992)Ext2 (1993)- pref for SD & USBXFS (1994) – B-tree larger than its filesExt3 (1999) – journal, slow, htree index, max

filesystem size=32TBExt4 (2006) – max filesystem size=1 EB (1M TB)

CSS-17© 2012 D. J. Foreman

Page 18: Disk Volume Management CSS-1. Terms  Extent – any contiguous set of clusters  Partition – extent treated as a disk  Volume - partition formatted with.

Htree indexing

Constant depth of 1 or 2 levelsHashes filenameNo rebalancing

CSS-18© 2012 D. J. Foreman