SUNEnterprise220RServer: Raid1 Summary

Source: Internet
Author: User
Article Title: SUNEnterprise220RServer Raid1 summary. 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.
   I. Disk distribution:
0: c0t0d0
1: c0t1d0
Note: image is used as the image, that is, Raid1;
  
System Disk (c0t0d0) Partition and image disk (c0t1d0:
C0t0d0s0 (d10) d0 c0t1d0s0 (d20)/9534 M
C0t0d0s1 (d11) d1 c0t1d0s1 (d21) swap 2049 M
C0t0d0s2 c0t1d0s2 overlap entire disk
C0t0d0s3 (d13) d3 c0t1d0s3 (d23)/usr 3584 M
C0t0d0s6 (d16) d6 c0t1d0s6 (d26)/metadb 50 M
C0t0d0s7 (d17) d7 c0t1d0s7 (d27)/export/home 2048 M
  
   Ii. Install the DiskSuite:
After the system is installed, use Solarsi8 software 2 of 2 to install DiskSuite_4.2.1. installation path:/cdrom/cdrom0/Solaris_8/EA/installer & select the default installation.
  
   Iii. Images (for root users ):
1. Adjust the file partition table of the second hard disk (c0t1d0) to be consistent with the boot disk
# Prtvtoc/dev/rdsk/c0t0d0s2 | fmthard? S? /Dev/rdsk/c0t1d0s2
Fmthard: New volume table of contents now in place
  
2. Prepare the metadb space used by DiskSuite.
# Umount/metadb ** 50 MB small space usage, similar to swap space
# Rm? R/metadb
# Vi/etc/vfstab
Comment out or delete the following line, as shown below:
#/Dev/dsk/c0t0d0s6/dev/rdsk/c0t0d0s6/metadb ufs 1 yes?
  
3. Create Mirror
① Mr. replicas for internal use in DiskSuite
# Metadb? A? F? C 2 c0t0d0s7 c0t1d0s7
# Metadb
② Creating a mirror from/
# Metainit-f d10 1 c0t0d0s0
# Metainit-f d20 1 c0t1d0s0
# Metainit d0-m d10
# Metaroot d0
③ Creating a mirror from swap
# Metainit-f d11 1 c0t0d0s1
# Metainit-f d21 1 c0t1d0s1
# Metainit d1-m d11
④ Creating a mirror from/var
# Metainit-f d13 1 c0t0d0s3
# Metainit-f d23 1 c0t1d0s3
# Metainit d3-m d13
⑤ Creating a mirror from/export/home
# Metainit-f d17 1 c0t0d0s7
# Metainit-f d27 1 c0t1d0s7
# Metainit d7-m d17
⑥ Edit the/etc/vfstab File
/Dev/dsk/c0t0d0s1--swap-no-
/Dev/dsk/c0t0d0s0/dev/rdsk/c0t0d0s0/ufs 1 no-
/Dev/dsk/c0t0d0s3/dev/rdsk/c0t0d0s3/var ufs 1 no-
/Dev/dsk/c0t0d0s7/dev/rdsk/c0t0d0s7/export/home ufs 2 yes-
Swap-/tmp tmpfs-yes-
Changed:
/Dev/md/dsk/d1--swap-no-
/Dev/md/dsk/d0/dev/md/rdsk/d0/ufs 1 no-
/Dev/md/dsk/d3/dev/md/rdsk/d3/var ufs 1 no-
/Dev/md/dsk/d7/dev/md/rdsk/d7/export/home ufs 2 yes-
Swap-/tmp tmpfs-yes-
7. File System Activation
# Lockfs? Fa
# Reboot
Sequence File System Association
# Define tach d0 d20
# Define tach d1 d21
# Define tach d3 d23
# Define tach d7 d27
⑨ View synchronization status
# Metastat d0
# Metastat d1
# Metastat d3
# Metastat d7
You can also use DiskSuite's graphical tool to view:
# Ool
After 100%, the Status of each file system is OK, even if the image is complete.
  
Note: Each step in the detail step cannot be split into the previous steps for separate execution. In this way, after a file system is executed, the subsequent file system cannot be metainit, and the system prompts that the resources are occupied.
  
   4. boot guide for the image Disk:
① Startup information
# Installboot/usr/platform/'uname? I '/lib/fs/ufs/bootblk/dev/rdsk/c0t1d0s0
② Modify the EEPROM
It is recommended to go to OK mode to modify
# Ls? L/dev/dsk/c0t0d0s0 ** get startup parameters
Lrwxrwxrwx 1 root 41 Jun 14/dev/dsk/c0t0d0s0->.../devices/pci @ 1f, 4000/scsi @ 3/sd @:
# Init 0
OK devalias (view Startup Device)
OK nvalias rootdisk/pci @ 1f, 4000/scsi @ 3/disk @ 0, 0
OK nvalias mirrdisk/pci @ 1f, 4000/scsi @ 3/disk @ 1, 0
OK setenv boot-device rootdisk mirrdisk disk:
③ Test
OK boot rootdisk ** the system starts normally. Find the Startup File.
OK boot mirrdisk ** the system starts normally. Find the Startup File.
  
Note: When nvalias is configured, some documents write 'sd @ *, 0' at 'disk @ *, 0'. However, after testing, it cannot be started normally.

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.