Sun Solaris uses different sizes of hard drives to mirror with Disksuite

Source: Internet
Author: User
Tags file system oracle database

Use different sizes of hard drives to mirror with Disksuite

Hardware platform: Fujitsu PP400 2*SPARC64GP (Basic and Sun E450 (Sparc III) compatible)

Software: Sun Solaris 8 (no difference)

Reason: PP400 on the original Fujitsu hard disk in less than two years, the manufacturer of the original specifications of the hard disk has been discontinued (33.6g/ultra 160/LVD interface/hot plug), due to the insurance to buy the specification (manufacturer's spare parts) hard drive crazy expensive (close to killing pigs), In a rage order two West Czech 36g/ultra 320/lvd/hot-swappable hard drive (the total price is less than Fujitsu 1/4). These two hard disk in the number of heads and the number of tracks are very different, in order to ensure a successful I basically every step is very careful, otherwise the original disk Oracle database on the explosion, Shang, even if the reload and trouble.

Process:

1, the database backup (recommended);

2, stop application services, especially the database;

3, Init 1 to enter the single user mode

4, the removal of bad hard drive, the hard drive carrier installed to the West Czech disk;

5, Metadb–i #查看Metadb状态, composed of/dev/dsk/c0t0d0s6 and/dev/dsk/c0t1d0s6 replicas

6, because the c0t1d0 has been broken, so >METADB–D/DEV/C0T1D0S6

7, insert a new hard drive;

8, Format->disk 0-> part->print look at the good hard disk partition status, recorded (Don't make a mistake, must be careful);

9, Format->disk 1-> part->print Check the partition status track and block allocation of the new hard disk;

10, because the number of Disk1 and disk 0 and the number of magnetic heads is not the same so to calculate the number of new hard disk start track, and can refer to the number of blocks because each block size under Solaris is the same large 512B.

11, part-> adjust 0,1,2,4,6,7 partition size (look at their own partitions, my is 0->root 1->swap 2->overlap 4->var 6-> (Stay do replicas,50m) 7-> Home);

12, because the partition is an integer track as the size of the boundaries of the partition, that is, not less than half of the track to partition, so for two different size of the hard disk is basically unlikely to appear accurate to 1KB of the partition size, beginning I also more hesitant, because the mirror hard disk is basically selected with the same specifications. But I kept going, and I rowed the new disk larger than the old one (within a track deviation).

13, part->lable->quit #有时间的话做一下Format, but the time is too long, I did not do, the premise is to believe that the quality of Sittie will not be so bad.

14, METADB–AFC 2/dsk/c0t1d0s6[2 is because my old plate is also two metadb]

15, metaoffline–f D10 D12 #将坏SubMirror离线

16, metadetach–f D10 D12 #将坏SubMirror Clear out metadb

17, Newfs/dev/dsk/c0t1d0s0 #一定要先建立文件系统否则出错

18, Metattach D10 D12

19, start synchronizing file system;

20, in turn from the 15~18 repeat the other partitions are also done once;

21, go out to eat dinner or stroll on a trip to the street, back to basic sync well;

22, reboot machine;

23, the system OK however, in the GUI interface in the open terminal you will find [with Metastat], the disk is synchronized, but this time is two submirror in sync] (I am very puzzled, but let it do, lest failure.

24, finished, hot pull old hard drive, system normal, mirror effective. Half of the work was done.

25, you will ask why only half of the work, because for the sake of insurance, after all, two hard drive different specifications you still take the risk. The following will be the same specifications of the West Czech hard drive to do Submirror Basic is repeated work, I was using the above process to do it again, I heard that with Prtvtov + metarepalce can, but I tried, not successful, trouble point is always better than adventure.

Conclusion: 1, Disksuite is a good thing, unexpectedly completed such a different brother cloning, recommended in-depth study;

2, Solaris is a good thing, Microsoft estimates can't afford to old toss;

3, small Japan is a bad thing, things are not good and dead expensive, proposed boycott of Japanese goods, because the telephone again, and there is a Fujitsu hard disk of the minicomputer exploded, hey, good is commiseration.

4, this article is originally my work notes, but I think the Solaris platform for the things may be common, take out to criticize.

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.