FreeBSD 5.3 Use Geom to create raid

Source: Internet
Author: User
Keywords Below PSD disk two
Tags aliyun computer create data developed disk freebsd html

FreeBSD is a UNIX operating system, an important branch of UNIX developed through BSD, 386BSD, and 4.4BSD, which supports x86 compatibility (including pentium® and athlon™), AMD64 compatibility (including Opteron™, Athlon 64 and Intel), http://www.aliyun.com/zixun/aggregation/1541.html ">alpha/axp, IA-64, PC-98 and UltraSPARC ® The computer for the schema. It runs on Intel x86 accessibility compliant processors, DEC Alpha, Sun Microsystems UltraSPARC, Itanium (IA-64), and AMD64 processors. Support for PowerPC is under development. It is generally considered to be fairly reliable and stable. Mac OS X, the Apple Computer, is based on Mach-core, with FreeBSD drivers and utilities. FreeBSD from the bsd── University of California, Berkeley unix® It is developed and maintained by volunteers from around the world. FreeBSD provides varying degrees of support for different architectures of computer systems.

With the introduction of support for Geom from FreeBSD5.3, it is convenient to create raid with Geom under FreeBSD 5.3, except that it can be created with Geom, and a separate program is provided, for example:

Gconcat, Gmirror, GRAID3, Gstripe. There is also an unfinished gvinum (about to replace Vinum)

Concat version raid

Concat is not really a raid because there is no performance improvement and no data protection. Simply string the disks together to take advantage of disk space.

The following example will concat the IPSD1,IPSD2 two disk systems

Reset the two disks first

Bsdlabel-r-W IPSD1 Auto

Bsdlabel-r-W IPSD2 Auto

Connect two disks using GCONCAT and name data

Gconcat label-v DATA/DEV/IPSD1/DEV/IPSD2

After using Gconcat, there will be a device named data under/dev/concat, corresponding to the previous command's data name

Ls/dev/concat

Format, if you need to close soft-update, just remove-u

Newfs-u/dev/concat/data

Create mount point

Mkdir/data

Hang up the new concat

Mount/dev/concat/data/data

Modify the Fstab to allow the system to reboot and Mount automatically

Vi/etc/fstab

Content

/dev/concat/data/data UFS RW 2 2

Increase the power-on automatic load Geom_concat.ko This module

Vi/boot/loader.conf

Content

Geom_concat_load= "YES"

The simple concat is done.

Stripe raid (RAID0)

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.