Disksuite Test Tool

Source: Internet
Author: User
Article Title: disksuite test tool. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Environment: SUN-U250 + Solaris8
Hard Disk: c0t0d0 (root), c8t0d0, c9t0d0, c10t0d0, c11t0d0, c12t0d0
Objective: To use disksuite for RAID0, RAID1, RAID5, hotspare...
Familiar with Common commands
  
Process:
  
1. partitions
Format-select disk-partition-print-modify
20 mb in 7 partitions, used to store State database copies, the remaining 6 partitions
  
# Prtvtoc/dev/rdsk/c0t8d0s2 | fmthard s-dev/rdsk/c9t0d0s2 c10t0d0s2 c11t0d0s2 c12t0d0s2
  
2. Create a database
# Metadb-a-c 2-f c8t0d0s7 c9t0d0s7 c10t0d0s7 c11t0d0s7 c12t0d0s7
# Metadb-I
  
3. RAID0 Test
# Metainit d0 1 2 c8t0d0s6 c9t0d0s6 create a stripe composed of two slice
# Metastat
# Cd/
# Mkdir data1
# Newfs/dev/md/dsk/d0
# Mount/dev/md/dsk/d0/data0
  
# Adding tach d0 c10t0d0s6 c11t0d0s6 to slice to volumn
# Metastat
  
# Delete umount/data1
# Metaclear d0
# Metastat
# Metadb-d-f c8t0d0s7 c9t0d0s7 c10t0d0s7 c11t0d0s7 c12t0d0s7
  
3. RAID1 Test
Create a database
# Metainit d1 1 1 c8t0d0s6 create an image
# Metainit d2 1 1 c9t0d0s6
# Metainit d0-m d1
# Metainit d0 d2
# Metastat
  
# Newfs/dev/md/dsk/d0
# Mount/dev/md/dsk/d0/data1
  
# Metattach d0 c9t0d0s6 c10t0d0s6 disk replacement
  
Unplug c0t10d0s6
# Touch/data1/
Machine? R Error
Insert c0t10d0s6
# Netareplace-e d0 c0t10d0s6 repair (in-situ)
# Metastat
  
# Create a hot spare pool
# Metahs-a hsp001 c0t9d0s6
# Metaparam-h hsp001 d1 binding
# Metaparam-h hsp001 d2
# Metastat
  
Unplug c0t0d10s6
# Touch/data1/
Machine? R: an error is reported. The invalid slice is automatically replaced by the heat.
Insert c0t10d0s6
# Netareplace-e d0 c0t10d0s6 repair (in-situ)
# Metastat
  
# Metaparam-h none d1 disconnection
# Metaparam-h none d2
# Delete metaclear hsp001
  
# Umount/data1 Delete RAID1
# Metaclear d0 d2 d1
# Metadb-d c8t0d0s7 c9t0d0s7 c10t0d0s7 c11t0d0s7 c12t0d0s7
  
4./opt disk image, root disk image
Create a database
# Umount/opt
# Metainit? F d1 1 1 c0t0d0s3 (opt slice)
# Metainit d2 1 1 c0t8d0s6
# Metainit d0-m d1
# Vi/etc/vfstab
  
# Metainit-f d11 1 c0t0d0s0 root disk
# Metainit d12 1 c0t9d0s6
# Metainit d10-m d11
# Metaroot d10
# Lockfs-fa
  
# Reboot
  
# Define tach d10 d12
# Define tach d0 d2
  
# Metadetach d10 d12 cancel/
# Metaroot/dev/dsk/c0t0d0s0
  
# Metadetach d0 d2 cancel opt
# Vi/etc/vfstab
  
# Reboot
  
# Metaclear-r d10
# Metaclear d12
# Metaclear d0 d2
  
5. RAID 5 Test
Create a database
# Metainit d0-r c0t9d0s6 c0t9d0s6 c0t10d0s6
# Metastat
# Newfs/dev/md/dsk/d0
# Mount/dev/md/dsk/d0/data1
  
# Unplug c0t10d0s6
# Touch/data1/a error
# Metadb-f-d c0t0d10s6
# Metadb-a-c 2 c0t0d10s6
Insert c0t10d0s6
# Metareplace-e d0 c0t10d0s6 repair (in-situ)
# Metastat
  
# Metainit hsp001 c0t11d0s6 create a hot spare pool
# Metahs-d hsp001 c0t11d0s6
# Metahs-a hsp001 c0t11d0s6 c0t12d0s6 Add a disk to the heat source
# Metaparam-h hsp001 d0 binding
# Metastat
  
# Unplug c0t0d10s6
# Touch/data1/
Machine? R: an error is reported. The failure of the hard disk is automatically replaced by the heat.
# Metastat
# Metadb-f-d c0t0d10s6
# Metadb-a-c 2 c0t0d10s6
Insert c0t10d0s6
# Metareplace-e d0 c0t10d0s6 repair (in-situ)
# Use c0t11d0s6 to restore c0t10d0s6
# Metastat
  
# Metaparam-hone d0 Delete heat map
# Metaclear hsp001
  
# Umount/data1 Delete RAID5
# Metaclear d0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.