位置: 编程技术 - 正文

linux CentOS/redhat 6.5 LVM分区使用详解

编辑:rootadmin

推荐整理分享linux CentOS/redhat 6.5 LVM分区使用详解,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

1, 介绍

linux CentOS/redhat 6.5 LVM分区使用详解

LVM是逻辑盘卷管理(Logical Volume Manager)的简称,它是Linux环境下对磁盘分区进行管理的一种机制,LVM是建立在硬盘和分区之上的一个逻辑层,来提高磁盘分 LVM区管理的灵活性。前面谈到,LVM是在磁盘分区和文件系统之间添加的一个逻辑层,来为文件系统屏蔽下层磁盘分区布局,提供一个抽象的盘卷,在盘卷上建立文件系统。物理卷(physical volume)物理卷就是指硬盘分区或从逻辑上与磁盘分区具有同样功能的设备(如RAID),是LVM的基本存储逻辑块,但和基本的物理存储介质(如分区、磁盘等)比较,却包含有与LVM相关的管理参数。

2,创建[root@cn-iss-install- mapper]# fdisk -l[root@cn-iss-install- mapper]# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel with disk identifier 0xc.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: invalid flag 0x of partition table 4 will be corrected by w(rite)WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').Command (m for help): mCommand action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only)Command (m for help): pDisk /dev/sdb: .6 GB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0xc Device Boot Start End Blocks Id SystemCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-, default 1):Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-, default ): +GCommand (m for help): pDisk /dev/sdb: .6 GB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0xc Device Boot Start End Blocks Id System/dev/sdb1 1 + 5 ExtendedCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@cn-iss-install- mapper]#reboot or[root@cn-iss-install- Packages]# partprobe[root@cn-iss-install- ~]# fdisk -lDisk /dev/sda: .2 GB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0xb1c0 Device Boot Start End Blocks Id System/dev/sda1 * 2 LinuxPartition 1 does not end on cylinder boundary./dev/sda2 8e Linux LVMPartition 2 does not end on cylinder boundary.Disk /dev/sdb: .6 GB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0xc Device Boot Start End Blocks Id System/dev/sdb1 1 + 5 ExtendedDisk /dev/mapper/VG-LV_rootfs: .4 GB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0xDisk /dev/mapper/VG-LV_swap: MB, bytes heads, sectors/track, cylindersUnits = cylinders of * = bytesSector size (logical/physical): bytes / bytesI/O size (minimum/optimal): bytes / bytesDisk identifier: 0x[root@cn-iss-install- ~]#[root@cn-iss-install- Packages]# pvcreate /dev/sdb1 Writing physical volume data to disk "/dev/sdb1" Physical volume "/dev/sdb1" successfully created[root@cn-iss-install- Packages]#[root@cn-iss-install- Packages]# vgcreate vg /dev/sdb1 Volume group "vg" successfully created[root@cn-iss-install- Packages]# lvcreate -L G -n vgdata vg[root@cn-iss-install- Packages]# mke2fs /dev/vg/vgdatamke2fs 1.. (-May-)Filesystem label=OS type: LinuxBlock size= (log=2)Fragment size= (log=2)Stride=0 blocks, Stripe width=0 blocks inodes, blocks blocks (5.%) reserved for the super userFirst data block=0Maximum filesystem blocks= block groups blocks per group, fragments per group inodes per groupSuperblock backups stored on blocks: , , , , , , , , , , , , Writing inode tables: doneWriting superblocks and filesystem accounting information:doneThis filesystem will be automatically checked every mounts or days, whichever comes first. Use tune2fs -c or -i to override.[root@cn-iss-install- Packages]#[root@cn-iss-install- Packages]#[root@cn-iss-install- Packages]# mkfmkfifo mkfs.cramfs mkfs.ext3 mkfs.ext4devmkfs mkfs.ext2 mkfs.ext4[root@cn-iss-install- Packages]# mkfs.ext4 /dev/vg/vgdatamke2fs 1.. (-May-)Filesystem label=OS type: LinuxBlock size= (log=2)Fragment size= (log=2)Stride=0 blocks, Stripe width=0 blocks inodes, blocks blocks (5.%) reserved for the super userFirst data block=0Maximum filesystem blocks= block groups blocks per group, fragments per group inodes per groupSuperblock backups stored on blocks: , , , , , , , , , , , , Writing inode tables: doneCreating journal ( blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every mounts or days, whichever comes first. Use tune2fs -c or -i to override.[root@cn-iss-install- Packages]#[root@cn-iss-install- spool]# mount /dev/vg/vgdata /var/spool/repo/[root@cn-iss-install- spool]# cd repo/[root@cn-iss-install- repo]# lslost+found[root@cn-iss-install- repo]# pwd/var/spool/repo[root@cn-iss-install- repo]#3,常用检查命令:[root@cn-iss-install- /]# pvdisplay[root@cn-iss-install- /]# vgdisplay[root@cn-iss-install- /]# lvdisplay[root@cn-iss-install- /]# pvcreate Please enter a physical volume path Run `pvcreate --help' for more information.[root@cn-iss-install- /]# vgcreate Please provide volume group name and physical volumes Run `vgcreate --help' for more information.[root@cn-iss-install- /]# lvcreate Please provide a volume group name Run `lvcreate --help' for more information.[root@cn-iss-install- /]# vgextend Please enter volume group name and physical volume(s) Run `vgextend --help' for more information.[root@cn-iss-install- /]# lvextend Please specify either size or extents but not both. Run `lvextend --help' for more information.[root@cn-iss-install- /]#

qq启动linux后插入u盘出现usb 1-1: device descriptor read/, error -,usb 1 上位机:ubuntu.bit下位机:qq交叉编译器:arm-linux-gcc3.4.1下位机使用的linux内核版本:kernel2.6..插入u盘时错误信息如下:[root@FriendlyARM/home]#usb1-1:newfullsp

linux(阿里云ECS)使用Xshell连接服务器 Linux系统挂载数据盘适用系统:Linux(Redhat,CentOS,Debian,Ubuntu)*Linux的云服务器数据盘未做分区和格式化,可以根据以下步骤进行分区以及格式化操作。

linux下.run文件的安装与卸载方法 .run文件的安装很简单,只需要为该文件增加可执行属性,即可执行安装以virtualbox的安装文件virtualbox-3.1.6--Linux_x.run为例,只需要输入命令:chmod+xvi

标签: linux CentOS/redhat 6.5 LVM分区使用详解

本文链接地址:https://www.jiuchutong.com/biancheng/360530.html 转载请保留说明!

上一篇:linux CentOS WEB服务器分区方案

下一篇:qq2440启动linux后插入u盘出现usb 1-1: device descriptor read/64, error -110,usb 1

  • 新办企业购置设备怎么抵税
  • 家里财产分割
  • 资产减值损失纳税调增还是调减
  • 平行结转分步法各步骤的费用
  • 现金及现金等价物期末余额
  • 社保公积金计提是本月计提下月
  • 预提费用所得税前扣除
  • 这部分房屋是否可以抵押
  • 进口转卖业务
  • 物业公司预收的物业费一次性申报还是分期申报
  • 赠品折扣计算法
  • 增值税专用发票跨月退回怎么办?
  • 生产性服务业定义
  • 这个月发票领完了,还可以领吗?
  • 合并报表的收入
  • 存货缺货成本如何算
  • 租赁发票多少点
  • 小规模人力资源服务费税率
  • 所得税季报营业外收入怎么填
  • 材料验收入库会计分录怎么写计划成本法
  • 事业单位利息收入计入什么科目
  • win10专业版分辨率1920x1080不见了
  • 结算起点为
  • window102020年最新版本
  • macos big sur操作
  • SCHDPL32.EXE - SCHDPL32是什么进程 有什么用
  • 税收风险的含义
  • algarin.exe什么意思
  • msmpeng.exe是什么程序
  • 微信小程序下单可以退款吗
  • vue ng
  • 气泡星云图片
  • 静电现象什么意思
  • php bi
  • 托收账款属于什么会计科目
  • 房地产企业项目开发法律风险
  • 小规模附加税费
  • 计算完工产品成本和在产品成本的方法有哪些
  • CUDA版本选择
  • jmeter接口串联
  • 明星身价几十亿
  • 缴纳增值税会计科目
  • 房地产股权转让涉及哪些税费
  • 增值税发票可以重开吗
  • wordpress换域名后主题乱了
  • 织梦的首页怎么换图片
  • 织梦前台数据不能存入中文
  • hashmap的使用场景
  • 两个公司的钱转来转去
  • 电子回单可以入档案吗
  • sql2005sp4
  • 公司购买食品怎么入账
  • 固定资产变动方式对应科目
  • 哪些发票不能用
  • 生产车间制造产品领用材料45000元,领用车间一半消耗
  • 土地承包费和土地租赁费收入记账
  • 以前年度损益调整在报表哪里体现
  • 工程项目必须购买保险吗
  • 企业软件开发哪家好
  • 教育机构的咨询
  • 会计入职新公司
  • 无形资产什么时候开始计提折旧
  • 完美解决英语怎么说
  • 苹果电脑dock栏是什么意思
  • 恢复注册表的方法
  • u盘装win8系统教程图解
  • windows开机显示正在清理
  • smsss.exe - smsss是什么进程
  • windows 托盘
  • win10开机出现microsoft
  • vsftpd.log
  • 铁嘴银牙剧情简介
  • socket restful
  • JavaScript中的变量名不区分大小写
  • javascript入门教学
  • js中的面向对象
  • jq动态设置css
  • python程序讲解
  • 广东省国税局长是谁
  • 按月申报印花税如何计税
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设