1 / 28

Solaris Volume Manager

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.

gusty
Télécharger la présentation

Solaris Volume Manager

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Solaris Volume Manager M. Desouky

  2. 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

  3. RAID University of California Berkeley 1987

  4. 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

  5. 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

  6. Managing Disks • Techniques: • Concatenation • Striping • Expanding File Systems • Hot Spares • RAID 5 • Mirroring • Disksets

  7. RAID Levels • RAID 0 • RAID 1 • RAID 0+1 • RAID 3 • RAID 5

  8. RAID 0, Concatenation FS 1 RAID Management Software Virtual FS FS 2 FS 3

  9. RAID 0, Striping FS 1 RAID Management Software FS 2 FS 1 FS 2 FS 3 FS 3

  10. 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

  11. 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

  12. 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

  13. 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

  14. Introduction • DiskSuite Manage: • Large Number of Disks • Data on Disks • DiskSuite Tasks • Storage Capacity: metadevices • Data Availability: Mirrors, RAID5 metadevices • DiskSuite, Virtual Disks • Metadevice

  15. Planning DiskSuite • Setting Priorities: • Performance: • Availability: Mirroring • Hardware Cost: Striping • Availability: • Performance: Mirroring • Hardware Cost: RAID5 • Hardware Cost: • Availability: RAID5 • Performance: Striping

  16. 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

  17. 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

  18. 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

  19. DiskSuite Objects • Object: • Assigning physical device to a DiskSuite name • Object: • Replicas • Metadevice • Stripes • Concatenations • Mirrors • RAID5 • Hot Spare Pools • Disksets

  20. Objects, Replicas • Creating Additional Replica: • metadb -a c0t2d0s0 • metadb • Creating 2 Additional Replicas: • metadb -a -c 2 c0t2d0s0

  21. 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

  22. 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

  23. Objects, Mirrors • Mirror: • On different disks • Slices should be the same size! • Types of Mirrors: • One Way • Two Way • Three Way

  24. 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

  25. 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

  26. Deleting Mirror Metadevice • Detaching a Mirror Meta device • metadetach d50 d51 Deleting the Meta Devices metaclear -a

  27. Objects, RAID5 • Creating a RAID5 metadevice of 3 slices • metainit d45 -r c2t3d0s2 c3t0d0s2 c4t0d0s2

More Related