手机版
你好,游客 登录 注册
背景:
阅读新闻

RAID阵列与LVM逻辑卷组

[日期:2013-01-22] 来源:Linux社区  作者:liuyatao666 [字体:大 中 小]
2.给磁盘创建分区:
 
在/dev/sdb上创建两个分区(其他磁盘同样操作,这里不再列出)
 
[root@lyt ~]# fdisk /dev/sdb
 
 
 
The number of cylinders for this disk is set to 2610.
 
There is nothing wrong with that, but this is larger than 1024,
 
and could in certain setups cause problems with:
 
1) software that runs at boot time (e.g., old versions of LILO)
 
2) booting and partitioning software from other OSs
 
  (e.g., DOS FDISK, OS/2 FDISK)
 
 
 
Command (m for help): n
 
Command action
 
  e  extended
 
  p  primary partition (1-4)
 
p
 
Partition number (1-4): 1
 
First cylinder (1-2610, default 1):
 
Using default value 1
 
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610): +200M
 
 
 
Command (m for help): n
 
Command action
 
  e  extended
 
  p  primary partition (1-4)
 
p
 
Partition number (1-4): 2
 
First cylinder (26-2610, default 26):
 
Using default value 26
 
Last cylinder or +size or +sizeM or +sizeK (26-2610, default 2610): +200M
 
 
 
Command (m for help): p
 
 
 
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
 
255 heads, 63 sectors/track, 2610 cylinders
 
Units = cylinders of 16065 * 512 = 8225280 bytes
 
 
 
  Device Boot      Start        End      Blocks  Id  System
 
/dev/sdb1              1          25      200781  83  Linux
 
/dev/sdb2              26          50      200812+  83  Linux
 
 
 
Command (m for help): w
 
The partition table has been altered!
 
 
 
Calling ioctl() to re-read partition table.
 
Syncing disks.
 
[root@lyt ~]#linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款