快速业务通道

mdadm

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-16
Partition table entries are not in disk order Command (m for help): t (更改分区类型) Partition number (1-10): 10 Hex code (type L to list codes): fd (分区类型为 Linux raid autodetect) Command (m for help): w (保存退出) # fdisk -l /dev/sda Disk /dev/sda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 9964 80035798 5 Extended /dev/sda5 917 927 88326 7 HPFS/NTFS /dev/sda6 928 996 554211 b Win95 FAT32 /dev/sda7 997 1011 120456 7 HPFS/NTFS /dev/sda8 1040 9964 71690031 83 Linux /dev/sda9 1 916 7357707 83 Linux Partition table entries are not in disk order # fdisk -l /dev/sdb Disk /dev/sdb: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb2 4501 9964 43889580 5 Extended /dev/sdb3 667 4500 30796605 83 Linux /dev/sdb4 658 666 72292 83 Linux /dev/sdb5 5114 5362 2000061 83 Linux /dev/sdb6 5751 5878 1028128 83 Linux /dev/sdb7 5721 5750 240943 83 Linux /dev/sdb8 5620 5720 811251 83 Linux /dev/sdb9 6261 9964 29752348 83 Linux /dev/sdb10 4501 4514 112423 fd Linux raid autodetect Partition table entries are not in disk order #modprobe raid1.ko mdadm: chunk size defaults to 64K #mdadm -C /dev/md0 --level=1 --raid-devices=2 /dev/sda10 /dev/sdb10 mdadm: /dev/sda10 appears to contain an ext2fs file system size=112320K mtime=Sat Jan 1 06:39:59 2000 mdadm: /dev/sdb10 appears to be part of a raid array: size=112320K ctime=Sat Jan 1 02:45:14 2000 Continue creating array? y mdadm: array /dev/md0 started. # mkfs.ext3 /dev/md0 (格式化raid) mke2fs 1.37 (21-Mar-2005) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 28112 inodes, 112320 blocks 5616 blocks (5.00%) reserved for the super user First data block=1 14 block groups 8192 blocks per group, 8192 fragments per group 2008 inodes per group Superblock backups stored . blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. # mdadm -D /dev/md0 (查看raid信息) /dev/md0: Version : 00.90.01 Creation Time : Sat Jan 1 02:45:14 2000 Raid Level : raid1

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号