Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to change Solaris RAID disk and replace bad disk

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

What this article shares with you is about how to change Solaris RAID disks and replace bad disks. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. Replace the bad disk of RAID-1

A) after shutting down and replacing the hard drive, power on and enter single-user maintenance mode

B) use format's fdisk tool to create 100% Solaris partitions on the new hard drive

C) create a disk label for the new disk (assuming that the disk1 is damaged and needs to be replaced

# provtoc / dev/rdsk/c0t0d0s2 | fmthard-s-/ dev/rdsk/c1t0d0s2

D) remove the corrupted copy of the state database and then rebuild the appropriate copy

# metadb-d c1t0d0s7

# metadb-a-f-c 3 c0t0d0s7

E) View the array information to determine which disk needs to be replaced

Replace the swap partition

# dumpadm-d / dev/md/rdsk/d2 specifies D2 as the switching device

# metareplace-e D2 c1d0t0s1

Replace other partitions

Metareplace-e D1 c1t1d0s0

F) recreate metadevice and attach

two。 Replace the bad disk of RAID-5

One of the components of array D55, C1t4S2 disk, is damaged.

A) the system recognizes the new hard drive

OK boot-r (x86 can be # touch / reconfigure;sync;init6 or run devfsadm after reboot)

The system recognizes the device at startup only when the "- r" option is added

B) the array identifies the newly replaced hard disk

# metareplace-e d55 c1t4d0s2

If the new hard drive is inserted in a different place from the old hard drive, such as c1t5d0s2:

# metareplace-f d55 c1t4d0s2 c1t5d0s2

C) View RAID status and synchronization progress

# metastat d55

# metastat-I

# metastat-I d0

The above is how to change the Solaris RAID disk and replace the bad disk operation. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report