linux分区及逻辑卷划分.docx

上传人:rrsccc 文档编号:8944081 上传时间:2021-01-26 格式:DOCX 页数:7 大小:23.58KB
返回 下载 相关 举报
linux分区及逻辑卷划分.docx_第1页
第1页 / 共7页
linux分区及逻辑卷划分.docx_第2页
第2页 / 共7页
linux分区及逻辑卷划分.docx_第3页
第3页 / 共7页
linux分区及逻辑卷划分.docx_第4页
第4页 / 共7页
linux分区及逻辑卷划分.docx_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《linux分区及逻辑卷划分.docx》由会员分享,可在线阅读,更多相关《linux分区及逻辑卷划分.docx(7页珍藏版)》请在三一文库上搜索。

1、linux分区及逻辑卷划分划分磁盘阵列和创建逻辑卷标题内容01 创建磁盘阵列介绍如何创建磁盘阵列分分区区。02 创建逻辑卷介绍如何创建逻辑卷组和组和逻辑卷逻辑卷。3 绑定逻辑卷和介绍如何绑定逻辑卷和裸0裸设备设备。 键入文字 1 创建磁盘阵列分区任务说明执行此任务可以手动格式化磁盘阵列并根据需要创建新的分区。本节以在双机上创建分区/dev/sdc1为例,给出手动创建磁盘分区的方法。操作时请根据实际的安装规划调整分区的具体信息。操作指引创建磁盘阵列的磁盘分区操作步骤如下:步骤 1以 root 用户登录主节点。步骤 2检查磁盘阵列的分区信息。# fdisk -l屏幕显示信息如下(供参考) 。Dis

2、k /dev/sda: 40.0 GB, 40007756288 bytes64 heads, 32 sectors/track, 38154 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesDevice BootStartEndBlocksIdSystem/dev/sda111024104856082Linux swap/dev/sda21025112641048576083Linux/dev/sda311265381542753536083LinuxDisk /dev/sdb: 128.8 GB, 128849018880 b

3、ytes255 heads, 63 sectors/track, 15665 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdb doesnt contain a valid partition tableDisk /dev/sdc: 73.1 GB, 73139224576 bytes255 heads, 63 sectors/track, 8892 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdc doesnt

4、 contain a valid partition table 键入文字 从以上加粗的信息可以看出磁盘阵列里的逻辑盘 sdb 和 sdc没有划分分区。步骤 3格式化磁盘。# fdisk /dev/sdc屏幕显示信息如下(供参考) 。The number of cylinders for this disk is set to 8892.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that ru

5、ns at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(e.g., DOS FDISK, OS/2 FDISK)步骤 4查看 fdisk 命令的参数。Command (m for help):m屏幕显示信息如下(供参考) 。Command actiona toggle a bootable flagb edit bsd disklabelc toggle the dos compatibility flagd delete a partitionl list

6、known partition typesm print this menun add a new partitiono create a new empty DOS partition tablep print the partition tableq quit without saving changess create a new empty Sun disklabelt change a partitions system idu change display/entry unitsv verify the partition tablew write table to disk an

7、d exitx extra functionality (experts only)步骤 5查看磁盘 /dev/sdc的分区表。Command (m for help):p屏幕显示信息如下(供参考) 。Disk /dev/sdc: 73.1 GB, 73139224576 bytes 键入文字 255 heads, 63 sectors/track, 8892 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice BootStartEndBlocksIdSystem步骤 6给磁盘 /dev/sdc添加新的分区。Comma

8、nd (m for help):n屏幕显示信息如下(供参考) 。Command actioneextendedpprimary partition (1-4)步骤 7配置分区信息。1. 输入“p”,设定分区为主分区, 按“Enter”键。2. 输入“1”,划分 /dev/sdc1分区,按“Enter”键。Partition number (1-4):13. 输入柱面开始位置,按“ Enter”键。First cylinder (1-8892, default 1):14. 输入柱面结束位置,按“ Enter”键。Last cylinder or +size or +sizeM or +size

9、K (1-8892, default 8892):8892步骤 8设置分区 ID 。1. 输入修改分区编号的命令。Command (m for help):t2. 输入待修改的分区编号。Partition number (1-4): 13. 输入分区类型“ 8e”。Hex code (type L to list codes): 8e 键入文字 步骤 9查看磁盘 /dev/sdc的分区表,检查分区是否成功。Command (m for help):p屏幕显示信息如下(供参考) 。Disk /dev/sdc: 73.1 GB, 73139224576 bytes255 heads, 63 sec

10、tors/track, 8892 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice BootStartEndBlocksIdSystem/dev/sdc11889271424958+8eLinux LVM步骤 10 将分区信息写入分区表并退出fdisk 命令。Command (m for help):w屏幕显示信息如下(供参考) 。The partition table has been altered!Calling ioctl() to re-read partition table.WARNING: Re-re

11、adingthepartitiontablefailedwitherror16:Deviceorresourcebusy.The kernel still uses the old table.The new table will be used at the next reboot.Syncing disks.步骤 11 重启操作系统。# reboot步骤 12 检查磁盘阵列的分区信息。# fdisk -l屏幕显示信息如下(供参考) 。Disk /dev/sda: 40.0 GB, 40007756288 bytes64 heads, 32 sectors/track, 38154 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesDevice BootStartEndBlocksIdSystem/dev/sda111024104856082Linux swap/dev/sda21025112641048576083Linux/dev/sda31126538154275353605Extended 键入文字

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1