linux LVM 逻辑卷组管理
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-03-23
linux LVM 逻辑卷组管理
LVM逻辑卷组管理
LVM实现硬盘容量自由扩展,提高可用性.
实验部分:
1、创建3个100M的分区.
[root@zhaoyun ~]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3916 31455238 83 Linux Disk /dev/sdb: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb doesn''t contain a valid partition table [root@zhaoyun ~]# fdisk /dev/sdb Command (m for help): n Command action e extended p primary partition (1-4) e 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): Using default value 2610 Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (1-2610, default 1): Using default value 1 Last cylinder or size or sizeM or sizeK (1-2610, default 2610): 100M Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (14-2610, default 14): Using default value 14 Last cylinder or size or sizeM or sizeK (14-2610, default 2610): 100M Command (m for help): n Command action l logical (5 or over) p primary partition (1-4) l First cylinder (27-2610, default 27): Last cylinder or size or sizeM or sizeK (27-2610, default 2610): 100M 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 2610 20964793 5 Extended /dev/sdb5 1 13 104359 83 Linux /dev/sdb6 14 26 104391 83 Linux /dev/sdb7 27 39 104391 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@zhaoyun ~]# [root@zhaoyun ~]# fdisk -l Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3916 31455238 83 Linux 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 2610 20964793 5 Extended /dev/sdb5 1 13 104359 83 Linux /dev/sdb6 14 26 104391 83 Linux /dev/sdb7 27 39 104391 83 Linux [root@zhaoyun ~]# 2、创建物理卷 使用pvcreate命令创建物理卷.pvs可以查看已经创建好的物理卷. [root@zhao |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: LAMP环境搭建安装下一篇: Linux的常用命令1
关于linux LVM 逻辑卷组管理的所有评论