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

RAID阵列与LVM逻辑卷组

[日期:2013-01-22] 来源:Linux社区  作者:liuyatao666 [字体:大 中 小]
3.更改磁盘分区类型:
 
[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): t
 
Partition number (1-4): 1
 
Hex code (type L to list codes): 8e
 
Changed system type of partition 1 to 8e (Linux LVM)
 
 
 
Command (m for help): t
 
Partition number (1-4): 2
 
Hex code (type L to list codes): 8e
 
Changed system type of partition 2 to 8e (Linux LVM)
 
 
 
 
 
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  8e  Linux LVM
 
/dev/sdb2              26          50      200812+  8e  Linux LVM
 
 
 
 
 
Command (m for help): w
 
The partition table has been altered!
 
 
 
Calling ioctl() to re-read partition table.
 
Syncing disks.
 
[root@lyt ~]#
 
4.将建好的分区转换成物理卷(pv)linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

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