Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > linux 软raid的配置步骤(raid-0)
【标  题】:linux 软raid的配置步骤(raid-0)
【关键字】:linux,raid,raid-0
【来  源】:http://www.cublog.cn/u/17326/showart.php?id=213176

linux 软raid的配置步骤(raid-0)

Your Ad Here
[root@localhost etc]# cp /usr/share/doc/raidtools-1.00.3/raid0.conf.sample /etc/raidtab
[root@localhost etc]# cat /etc/raidtab  #拷贝和编辑raid0的配置文件
# Sample raid-0 configuration
raiddev                 /dev/md0
raid-level              0    # raid级别
                             # right after raiddev
persistent-superblock   0    # set this to 1 if you want autostart,
                             # BUT SETTING TO 1 WILL DESTROY PREVIOUS
                             # CONTENTS if this is a RAID0 array created
                             # by older raidtools (0.40-0.51) or mdtools!
chunk-size              16
nr-raid-disks           2    #需要的磁盘数量
nr-spare-disks          0
device                  /dev/hda1
raid-disk               0
device                  /dev/hdb1
raid-disk               1
[root@localhost etc]# mkraid /dev/md0 #创建md0文件
[root@localhost etc]# mkfs.ext3 /dev/md0 #格式化md0文件
mke2fs 1.39 (29-May-2006)
mkfs.ext3: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.
[root@localhost etc]# mount /dev/md0 /opt #mount到某个目录下
mount: you must specify the filesystem type #将raid0自动挂载
[root@localhost etc]# vi fstab    
......
/dev/md0  /opt   ext3 defaults 0 0
[root@localhost etc]# raidstop /dev/md0  
[root@localhost etc]# lsraid -A -a /dev/md1 #检查raid设备状态
lsraid: md device [dev 9, 1] /dev/md1 is offline: Please specify a disk to query
squid 编译基本选项:【上一篇】
VNC Enterprise edition:【下一篇】
【相关文章】
  • Linux单网卡绑定多IP与多网卡共用单IP的实现方法
  • 根据需求选择合适的Linux发行版本
  • 集群扫盲篇:Linux高性能计算集群概述
  • 捷力Linux实用集(0) 引子
  • Linux基础入门
  • 捷力Linux实用集(1) 调整行序
  • Linux系统应用程序和内核模块的区别(zz)
  • 编译Linux内核的方法
  • Ubuntu——硬件支持最好的linux发行版
  • Linux 操作系统逻辑盘卷管理 LVM 创建步骤
  • 【随机文章】
  • JavaScript中的正则表达式解析
  • AIX System Security:3.Kernel tuning
  • 基于asp.net的webmenu的数据操作
  • 计算机软件水平考试报名地址[北京、上海、天津、福建、贵州、江苏、浙江]
  • Introducing to Spring Framework
  • Dreamweaver MX 2004 创建网站相册(1)
  • 上网行为管理软件评测
  • 不说不知道!扫描仪维护特别声明
  • freebsd学习笔记(二)
  • 浅析传统网络防火墙的五大不足(2)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.