文档详情

Linux卷管理学习笔记.pdf

发布:2017-05-23约1.35万字共14页下载文档
文本预览下载声明
Linux 卷管理学习笔记 什么是VG LV PV,理解它们,并学习如何使用! 创建和管理LVM 建立流程: 1.建立PV 2.建立VG ,将PV 加入到VG 中。 3.建立LV,并设置LV 大小。 4.格式化LV 或LP 成你需要的文件系统。 删除流程: 1.umountFS 2.删除LV。 3.将PV 从所在的VG 中删除。 4.删除VG 。 卷管理常用命令集合: 查看显示创建 删除 扩容 激活 扫描查找 LV lvdisplay lvcreate lvremove lvextend lvchange lvscan PV pvdisplay pvcreate pvremove pvchange pvscan VG vgdisplay vgcreate vgremove vgextend vgchange vgscan 1 赛特学习linux 之路 1、查看磁盘信息 命令:fdisk -l 例: [root@www ~]# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders 2 赛特学习linux 之路 Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000aa8ed Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 287 2097152 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/sda3 287 1306 8182784 83 Linux Disk /dev/sdb: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0 Disk /dev/sdc: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000c54ca Device Boot Start End Blocks Id System 现有DISK SDA ,SDB , SDC 三块逻辑磁盘 其中sdb,sdc 未使用 2、PV 物理
显示全部
相似文档