Raid1 operation notes in freebsd

Source: Internet
Author: User

It is not freebsd, It is freenas7.2. Due to a problem with freenas installed for a friend, I studied how to operate raid1 in freebsd command mode yesterday and the night before. I should say how to configure freenas.

 

In fact, freebsd manual says:

Http://www.freebsd.org/doc/zh_CN.GB2312/books/handbook/geom-mirror.html

The operation is as follows:
Gmirror label-vb round-robin raidone/dev/ad8/dev/ad10

Then:
Echo 'geom _ cmd_load = "YES" '>/boot/loader. conf

Ad8 and ad10 are two wd 1 TB hard disks on our freenas. ad8 and ad10 constitute a soft raid 1.

Raidone is the name of the hard disk after I synthesize raid1, and mount is: mount/dev/mirror/raidone/mnt/myraid
/Mnt/myraid is the directory I created. Generally, people familiar with the bsd and linux systems should understand it.

In fact, freenas itself can be operated, but the problem is that after my friend establishes the server, the raid one will be lost after the server is restarted.
Add [gmirror label-vb round-robin raidone/dev/ad8/dev/ad10] to the Command Script, as shown in figure


Other Command records:
Gmirror status: View raid status
Gmirror list: view the number of disks
Gmirror remove raidone ad10: remove a disk. If all disks are removed, soft raid stops.
Gmirror insert raid one ad10: After a disk is added, it is usually automatically synchronized. If not, enter
Gmirror configure-a raidone, which is a synchronization command

Related Article

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.