Perform RAID 1 for Disk Mirroring in solaris

Source: Internet
Author: User
# Adjust the file partition table of the second hard disk (c0t1d0) to be consistent with the boot disk
Prtvtoc/dev/rdsk/c1t0d0s2 | fmthard-s-/dev/rdsk/c1t1d0s2 # replicas for internal use of DiskSuite
Metadb-afc 3 c1t0d0s6 c1t1d0s6 # Creating a mirror
Metainit-f d10 1 c1t0d0s0
Metainit d20 1 1 c1t1d0s0
Metainit d0-m d10
Metaroot d0 metainit-f d11 1 c1t0d0s1
Metainit d12 1 1 c1t1d0s1
Metainit d1-m d11 metainit-f d31 1 c1t0d0s3
Metainit d32 1 1 c1t1d0s3
Metainit d3-m d31 metainit-f d41 1 c1t0d0s4
Metainit d42 1 c1t1d0s4
Metainit d4-m d41 metainit-f d51 1 c1t0d0s5
Metainit d52 1 1 c1t1d0s5
Metainit d5-m d51 metainit-f d71 1 c1t0d0s7
Metainit d72 1 c1t1d0s7
Metainit D7-M d71 # edit the/etc/vfstab File
/Dev/MD/DSK/D1--Swap-no-
/Dev/MD/DSK/D0/dev/MD/rdsk/D0/ufs 1 no-
/Dev/MD/DSK/D5/dev/MD/rdsk/D5/usr UFS 1 no-
/Dev/MD/DSK/D3/dev/MD/rdsk/D3/backup UFS 2 Yes-
/Dev/MD/DSK/D7/dev/MD/rdsk/D7/export/home UFS 2 Yes-
/Dev/md/dsk/d4/dev/md/rdsk/d4/opt ufs 2 yes-
Swap-/tmp tmpfs-yes-# File System Activation
Lockfs-fa reboot # File System Association
Metattach d0 d20
Metattach d1 d12
Effectach d3 d32
Metattach d4 d42
Metattach d5 d52
Effectach d7 d72 ----------
Metadb-d c1t0d0s6 delete a database
Metadb-fd c1t1d0s6metaclear-f d62 clear image
Metastat status check ----------------------------------------------------------
/Dev/dsk/c1t0d0s0 9.8G 3.6G 6.1G 37%/
/Dev/dsk/c1t0d0s5 4.9G 1.6G 3.3G 34%/usr
/Proc 0 K 0 K 0 K 0%/proc
Mnttab 0 K 0 K 0 K 0%/etc/mnttab
FD 0 K 0 K 0 K 0%/dev/FD
Swap, 10g, 32 K, 10g, 1%/var/run
Swap, 10g, 15 m, 10g, 1%/tmp
/Dev/DSK/c1t0d0s4 31g 2.2g 29G 8%/OPT
/Dev/dsk/c1t0d0s3 10G 4.8 M 10G 1%/backup
/Dev/dsk/c1t0d0s7 6.9G 7.2 M 6.8G 1%/export/home

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.