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

What is the implementation of soft RAID0 RAID5 under solaris

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Solaris soft RAID0 RAID5 implementation is how, I believe that many inexperienced people are helpless, for this reason this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Usually we say RAID is basically hard RAID that is to hard disk as a unit, and in solaris we can use soft RAID to achieve RAID between partitions and partitions. Now let's learn how to build soft RAID on Unix platform

1. We attach 10 gigabytes of disk for our virtual machines

2. Divide the partition to be RAID

1. Divide two partitions: s0 (1GB) s1(50M)

#format

Specify disk (enter its number):1 The first device that just hung (i.e. the second)

format> p

partition>p View partition status

partition> 0th partition

。。。。See for yourself the basics of disk partitioning

3. Push the partition configuration of another hard disk automatically consistent with the previous hard disk

prtvtoc /dev/rdsk/c0d0s2 | fmthard -s - /dev/rdsk/c1d1s2

Map the hard disk configuration table of c0 d1s2 to c1d1s2. Note that s2 represents the whole disk by default under salaris

4. Create database partitions that store RAID information

When we do hard RAID, our RAID information is stored on RAID cards and hard disks, and when we do soft RAID, we need to use a partition to create one or more partitions.

RAID information database file why more? ---- In fact, in order to prevent other partitions do not store RAID information and only have a track area to store RAID information. So when one day your hard disk is OK, that track area is bad, then the whole RAID plan will fail.

metadb -afc 3 /dev/dsk/c0d1s1 /dev/dsk/c1d1 s1 Create three database files for c0d1s1 and c1d1s1 to store RAID information

After creation we can use metadb to view

5. Create RAID data zones

So, we've built the RAID partition, and now we're going to build the RAID data partition, and we're going to build the RAID data partition.

If we create RAID 0, then the specific steps are as follows:

metainit d1 1 2 /dev/dsk/c0d1s0 /dev/dsk/c1d1s0 -i 32k

This command means: Create a RAID partition with two partitions/dev/dsk/c0d1s0 /dev/dsk/c1d1s0 (so use 1 2), -i 32k to specify the size of each partition

Create metastat d1 to view

6. format the partition

The newly created RAID area is a bare device and needs to be formatted to use it.

newfs /dev/md/dsk/d1

7. Mount View Device

mount /dev/md/dsk/d1 /mnt/d1

df -k

--------------------------------------------

8. For convenience, we first delete the RAID0 partition before

metaclear [-f] d1 Delete RAID partition d1

We can use metstat d1, and we don't see anything about d1.

9. Create RAID5 data partition

metainit d1 -r /dev/dsk/c0d1s5 /dev/dsk/c0d1s0 /dev/dsk/c1d1s0

Create a RAID 5 partition named D1 with three random partitions, where r indicates that this is RAID 5.

10. formatted

11 Mount View

After reading the above content, do you know how to implement RAID0 RAID5 under solaris? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

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