Try to pour 100% 100% of the 18G hard drive into a 36G hard disk (Solaris)

zhaozj2021-02-16  76

It is already 22:22, I haven't been in the room for for so long, I have arrived in the computer room in the afternoon, because the new 11 DELL2650, so busy unpacking, putting the shelves, getting the network line, etc., did not expect to deal with a server today It is necessary to replace the 18G hard disk to 36G, of course, important data has been backed up. But in order to make some try, do something try. After all, it is still necessary to install a lot of applications, not for a few hours, although I now have more than 6 hours from doing experiments here, but it is worthwhile (if successful). Because some old hard drives in the company have to replace 36G, if you have to reload the OS every time, the workload is too big. So, still countless today :)

The first thing I thought is that the DD is the command, but this command is suitable for hard drives like the same size. So I was given up by I first gave up.

The second thought is that Solaris is unique to UFSDUMP, UFSRESTORE commands. But I have no choice. Because there may have a better choice.

The third is the flash command in Solaris 8. It is very attractive to see the introduction, but it is suffering that there is no experimental environment (now the test environment is Solaris 7. It is necessary to replace it is Solaris 8, but unfortunately). There is no experiment that can't be used on the line. Will be dropped by fire :(

Finally, I now use another extremely ordinary command. It is not used to make backup recovery commands. It is a trick learned from the Internet. It feels simple enough enough to be safe. Just take it. Specific steps are as follows:

Patch new hard drive. Make sure the machine recognizes the new hard disk (Format can be seen) Sub-partition according to the old hard disk format, excess space points to the partitions that are not used, the partition of the hard disk must not be wrong! Then Newfs every new partition. It is best to write a script, the content is approximately as follows:

#! / bin / sh

CAT / DEV / RDSK / C0T0D0S0> / DEV / RDSK / C0T1D0S0 CAT / DEV / RDSK / C0T0D0S1> / DEV / RDSK / C0T1D0S1 CAT / DEV / RDSK / C0T0D0S3> / DEV / RDSK / C0T1D0S3 CAT / DEV / RDSK / C0T0D0S4> / DEV / RDSK / C0T1D0S4 CAT / DEV / RDSK / C0T0D0S7> / DEV / RDSK / C0T1D0S7

Then run this script. Take more careful, write this script! Otherwise, 嘿嘿 .....

However, the specific result is not known, and the success is successful when doing experiments. After all, the actual combat and training on the line is different! Therefore, I have to stay in the expected results :) Amen ~~~

转载请注明原文地址:https://www.9cbs.com/read-14767.html

New Post(0)