Use Disksuite as an image for hard disks of different specifications
Source: Internet
Author: User
Article Title: Use Disksuite as an image for hard disks of different specifications. 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.
Use Disksuite as an image for hard disks of different specifications
Hardware Platform: Fujitsu PP400 2 * SPARC64GP (basically compatible with Sun E450 (iSCSI III)
Software: Sun Solaris 8 (no difference)
Cause: one of the original Fujitsu su hard disks on the PP400 exploded in less than two years. The hard disks of the original manufacturer specifications have been discontinued (33.6G/Ultra 160/LVD interface/hot swapping ), due to the overwarranty purchase of this specification (manufacturer's spare parts), the hard disk is very expensive (close to pig ), two 36G, Ultra 320, LVD, and hot-swappable hard drives (less than 1/4 of the total price of Fujitsu) are ordered in one breath ). These two hard disks differ greatly in the number of heads and tracks. To ensure a successful operation, I am very careful in every step. Otherwise, the Oracle database on the original disk will pop up and cannot afford to lose it, even if the reinstallation is troublesome.
Process:
1. Back up the database (recommended );
2. Stop application services, especially databases;
3. Init 1 enters single-user mode
4. Remove the bad hard disk and attach the hard disk bracket to the Seagate disk;
5. metadb? I # Check the Metadb status, which consists of/dev/dsk/c0t0d0s6 and/dev/dsk/c0t1d0s6 replicas
6. Because c0t1d0 is broken,> metadb? D/dev/c0t1d0s6
7. Insert a new hard disk;
8. format-> disk 0-> Part-> print: Check the partition status of the hard disk and record it. (do not make a mistake. Be sure to check it carefully );
9. Format-> disk 1-> part-> print: Check the distribution of the track and Block in the partition status of the new hard disk;
10. Because disk1 and Disk 0 do not have the same number of tracks as the magnetic head, calculate the number of tracks starting from the new hard Disk, at the same time, you can refer to the number of blocks because the size of each block is the same as B under Solaris.
11. Adjust the partition size of Part-> 0, 1, 2, 4, 6, and 7 (depending on your partition, my options are 0-> root 1-> swap 2-> overlap 4-> var 6-> (reserved for Replicas, 50 M) 7-> home );
12. Because the partition uses an integer track as the boundary of the partition size, that is, less than half of the track cannot be partitioned, therefore, for two hard disks of different specifications, it is basically unlikely that the partition size is accurate to 1 kb. At first, I am hesitant, because the image hard disk basically uses the same specification. However, I insisted that the size of the new disk should be larger than that of the old one (within the deviation of one track ).
13. part-> lable-> quit # Format if you have time, but the time is too long. I didn't do it, provided that I believe that the quality of Xijie will not be so bad.
14. metadb? Afc 2/dsk/c0t1d0s6 [2 is because two MetaDB instances exist on my old disk]
15. metaoffline? F d10 d12 # offline bad SubMirror
16. metadetach? F d10 d12 # Clear bad SubMirror out of Metadb
17. newfs/dev/dsk/c0t1d0s0 # You must first create a file system. Otherwise, an error occurs.
18. effectach d10 d12
19. Start file system synchronization;
20. From 15 ~ 18. Repeat other partitions once;
21. Go out for a meal or take a stroll to the street. When you come back, it's basically synced;
22. reboot machine;
23. The system is okay. However, when you open the terminal on the GUI, you will find that [using Metastat] and the disk is synchronizing, but this time two SubMirror are synchronizing] (I am wondering, but let it do it to avoid failure.
24. After the installation is complete, hot unplug the old hard disk. The system is normal and the image takes effect. Half of the work is done.
25. You will ask why it is only half the work, because for the sake of insurance, after all, you are still at risk for two hard disks of different specifications. The next step is to repeat the SubMirror of the same type of Xijie hard disk. I used the above process again. I heard that prtvtov + Metarepalce can be used, but I tried it, unsuccessful. The trouble is always better than taking risks.
Conclusion: 1. DiskSuite is a good thing. We recommend that you study it in depth after cloning such a different brother;
2. Solaris is a good thing. Microsoft cannot afford it;
3. Small Japan is a bad thing. It is difficult and expensive. We recommend that you Boycott Japanese goods. Because the phone is coming again, another minicomputer with the Fujitsu hard drive is exploding.
4. This article was originally my work note, but I think there may be something common about the Solaris platform, so that I can correct my criticism.
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