320 likes | 499 Views
Solaris Volume Manager. M. Desouky. Table of Contents. RAID Overview Introduction to SDS Software SDS Installation SDS User Interfaces Metadevice State Database Concatenation & Stripes Mirrors & Hot Spares RAID-5 Metadevices File System Operations Disksets. RAID.
E N D
Solaris Volume Manager M. Desouky
Table of Contents • RAID Overview • Introduction to SDS Software • SDS Installation • SDS User Interfaces • Metadevice State Database • Concatenation & Stripes • Mirrors & Hot Spares • RAID-5 Metadevices • File System Operations • Disksets
RAID University of California Berkeley 1987
Discussion • Disk Speed Limitations • File System Is Full • Disk Fault Tolerance • 24x7 Systems • Multiple Disks: • Higher probability of disk failure • MTBF • File System Spanning: (Max: 1 TB) • Longer reboot times
Managing Large No of Disks • Decrease the number of file systems • Avoid data loss due to disk failure • Balance I/O across disks, performance • Avoid file systems check at boot • Grow file systems online • Apply dual-host failover
Managing Disks • Techniques: • Concatenation • Striping • Expanding File Systems • Hot Spares • RAID 5 • Mirroring • Disksets
RAID Levels • RAID 0 • RAID 1 • RAID 0+1 • RAID 3 • RAID 5
RAID 0, Concatenation FS 1 RAID Management Software Virtual FS FS 2 FS 3
RAID 0, Striping FS 1 RAID Management Software FS 2 FS 1 FS 2 FS 3 FS 3
RAID 1, Mirroring Data FS 1 RAID Management Software FS 2 FS 3 FS 4 FS 1 FS 2 FS 3 FS 4 FS 1 FS 2 FS 3 FS 4 Mirror
FS 1 FS 1 FS 1 FS 2 FS 2 FS 2 FS 3 FS 3 FS 3 FS 4 FS 4 FS 4 FS 5 FS 5 FS 5 FS 6 FS 6 FS 6 FS 7 FS 7 FS 7 FS 8 FS 8 FS 8 FS 5 FS 1 FS 1 FS 5 FS 2 FS 6 FS 6 FS 2 FS 7 FS 7 FS 3 FS 3 FS 4 FS 8 FS 4 FS 8 RAID 0+1 RAID Management Software Mirroring RAID Management Software Striping RAID Management Software Striping
FS 1 FS 2 FS 3 FS 4 FS 5 FS 6 P(1-3) FS 3 FS 1 FS 2 FS 4 FS 5 FS 6 P(2-4) P(5-6) RAID 3, Striping with Parity RAID Management Software
FS 1 FS 3 FS 9 FS 1 FS 2 FS 5 P(1-3) FS 4 FS 2 P(4-6) FS 5 FS 6 FS 6 FS 10 P(7-9) FS 7 FS 8 FS 7 FS 11 FS 3 FS 9 FS 12 FS 12 FS 11 FS 8 FS 10 FS 4 P(10-12) RAID 5, Distributed Parity RAID Management Software
Introduction • DiskSuite Manage: • Large Number of Disks • Data on Disks • DiskSuite Tasks • Storage Capacity: metadevices • Data Availability: Mirrors, RAID5 metadevices • DiskSuite, Virtual Disks • Metadevice
Planning DiskSuite • Setting Priorities: • Performance: • Availability: Mirroring • Hardware Cost: Striping • Availability: • Performance: Mirroring • Hardware Cost: RAID5 • Hardware Cost: • Availability: RAID5 • Performance: Striping
State Database Replicas • Replicas Stores: • DiskSuite Configuration • State Information • Planning Replicas: • One Disk: 3 replicas on one slice • Two-Four Disks: 2 replicas on each • Five or more Disks: 1 on each
State Database Replicas • Creating Replicas: • Small slices (520 MB) • Slices should NOT contain data! • Backup your data! • Allocating Space from swap partition! • swap -l • swap -d • swap -a • metadb -a -f -c • -a Add • -c Number of replicas • -f Force
Creating Replicas • Examples: • Creating 2 Replicas on 3 Disks: • metadb -a -f -c 2 c0t1d0s3 c1t1d0s3 c2t1d0s3 • Creating 3 replicas on 1 Disk: • metadb -a -f -c 3 c0t0d0s3
DiskSuite Objects • Object: • Assigning physical device to a DiskSuite name • Object: • Replicas • Metadevice • Stripes • Concatenations • Mirrors • RAID5 • Hot Spare Pools • Disksets
Objects, Replicas • Creating Additional Replica: • metadb -a c0t2d0s0 • metadb • Creating 2 Additional Replicas: • metadb -a -c 2 c0t2d0s0
Objects, Stripes • One Stripe of 2 slices: • metainit d10 1 2 c0t1d0s2 c0t2d0s2 • One Stripe of 3 slices: • metainit d20 1 3 c0t1d0s2 c0t2d0s2 c0t3d0s2 • Deleting Meta Devices • metaclear -a
Objects, Concatenation • Creating a Concatenation of 2 Slices: • metainit d25 2 1 c0t1d0s2 1 c0t2d0s1 • Creating a Concatenation of 4 Slices: • metainit d40 4 1 c0t1d0s2 1 c0t2d0s2 1 c0t2d0s3 1 c0t2d1s3
Objects, Mirrors • Mirror: • On different disks • Slices should be the same size! • Types of Mirrors: • One Way • Two Way • Three Way
Objects, Mirrors • Creating Two-Way Mirror: • metainit -f d51 1 1 c0t0d0s2 (/home) • metainit d52 1 1 c1t0d0s2 (unmounted) • metainit d50 -m d51 • umount /home (What if you can’t umount!) • vi /etc/vfstab: /dev/md/dsk/d50 • newfs /dev/md/dsk/d50 • mount /home (on d50) • metattach d50 d52
Objects, Mirrors • Creating a Mirror from root / • metainit -f d11 1 1 c0t3d0s0 • metainit d12 1 1 c1t3d0s0 • metainit d10 -m d11 • metattach d10 d12
Deleting Mirror Metadevice • Detaching a Mirror Meta device • metadetach d50 d51 Deleting the Meta Devices metaclear -a
Objects, RAID5 • Creating a RAID5 metadevice of 3 slices • metainit d45 -r c2t3d0s2 c3t0d0s2 c4t0d0s2