位置: IT常识 - 正文

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

编辑:rootadmin
这篇文章主要介绍了linux CentOS/redhat 6.5 LVM分区使用详解,需要的朋友可以参考下... 16-10-08

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

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

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

1, 介绍

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

2,创建[root@cn-iss-install-01 mapper]# fdisk -l[root@cn-iss-install-01 mapper]# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel with disk identifier 0x874c7742.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 0x0000 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: 96.6 GB, 96636764160 bytes255 heads, 63 sectors/track, 11748 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x874c7742 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-11748, default 1):Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-11748, default 11748): +80GCommand (m for help): pDisk /dev/sdb: 96.6 GB, 96636764160 bytes255 heads, 63 sectors/track, 11748 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x874c7742 Device Boot Start End Blocks Id System/dev/sdb1 1 10444 83891398+ 5 ExtendedCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@cn-iss-install-01 mapper]#reboot or[root@cn-iss-install-01 Packages]# partprobe[root@cn-iss-install-01 ~]# fdisk -lDisk /dev/sda: 17.2 GB, 17179869184 bytes64 heads, 32 sectors/track, 16384 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0005b1c0 Device Boot Start End Blocks Id System/dev/sda1 * 2 251 256000 83 LinuxPartition 1 does not end on cylinder boundary./dev/sda2 252 16384 16520192 8e Linux LVMPartition 2 does not end on cylinder boundary.Disk /dev/sdb: 96.6 GB, 96636764160 bytes255 heads, 63 sectors/track, 11748 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x874c7742 Device Boot Start End Blocks Id System/dev/sdb1 1 10444 83891398+ 5 ExtendedDisk /dev/mapper/VG00-LV_rootfs: 16.4 GB, 16374562816 bytes255 heads, 63 sectors/track, 1990 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/mapper/VG00-LV_swap: 536 MB, 536870912 bytes255 heads, 63 sectors/track, 65 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000[root@cn-iss-install-01 ~]#[root@cn-iss-install-01 Packages]# pvcreate /dev/sdb1Writing physical volume data to disk "/dev/sdb1"Physical volume "/dev/sdb1" successfully created[root@cn-iss-install-01 Packages]#[root@cn-iss-install-01 Packages]# vgcreate vg03 /dev/sdb1Volume group "vg03" successfully created[root@cn-iss-install-01 Packages]# lvcreate -L 83G -n vgdata vg03[root@cn-iss-install-01 Packages]# mke2fs /dev/vg03/vgdatamke2fs 1.41.12 (17-May-2010)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks5439488 inodes, 21757952 blocks1087897 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=4294967296664 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000Writing inode tables: doneWriting superblocks and filesystem accounting information:doneThis filesystem will be automatically checked every 23 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.[root@cn-iss-install-01 Packages]#[root@cn-iss-install-01 Packages]#[root@cn-iss-install-01 Packages]# mkfmkfifo mkfs.cramfs mkfs.ext3 mkfs.ext4devmkfs mkfs.ext2 mkfs.ext4[root@cn-iss-install-01 Packages]# mkfs.ext4 /dev/vg03/vgdatamke2fs 1.41.12 (17-May-2010)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks5439488 inodes, 21757952 blocks1087897 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=4294967296664 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000Writing inode tables: doneCreating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 37 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.[root@cn-iss-install-01 Packages]#[root@cn-iss-install-01 spool]# mount /dev/vg03/vgdata /var/spool/repo/[root@cn-iss-install-01 spool]# cd repo/[root@cn-iss-install-01 repo]# lslost+found[root@cn-iss-install-01 repo]# pwd/var/spool/repo[root@cn-iss-install-01 repo]#3,常用检查命令:[root@cn-iss-install-01 /]# pvdisplay[root@cn-iss-install-01 /]# vgdisplay[root@cn-iss-install-01 /]# lvdisplay[root@cn-iss-install-01 /]# pvcreatePlease enter a physical volume pathRun `pvcreate --help' for more information.[root@cn-iss-install-01 /]# vgcreatePlease provide volume group name and physical volumesRun `vgcreate --help' for more information.[root@cn-iss-install-01 /]# lvcreatePlease provide a volume group nameRun `lvcreate --help' for more information.[root@cn-iss-install-01 /]# vgextendPlease enter volume group name and physical volume(s) Run `vgextend --help' for more information.[root@cn-iss-install-01 /]# lvextendPlease specify either size or extents but not both.Run `lvextend --help' for more information.[root@cn-iss-install-01 /]#

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

上一篇:Win7无法使用Aero主题(win7无法使用管理员权限)

下一篇:网络适配器感叹号解决方法(网络适配器感叹号代码43)

  • word电子签名怎么做(word电子签名怎么删除)

    word电子签名怎么做(word电子签名怎么删除)

  • 什么笔记本电脑好(什么笔记本电脑品牌好)

    什么笔记本电脑好(什么笔记本电脑品牌好)

  • 快手直播唱歌怎么调音好听(快手直播唱歌怎么开原唱)

    快手直播唱歌怎么调音好听(快手直播唱歌怎么开原唱)

  • 苹果xs夜景拍照模式在哪设置(iphonexs夜视拍照)

    苹果xs夜景拍照模式在哪设置(iphonexs夜视拍照)

  • 快手级别在哪里看(快手级别在哪里关闭呢)

    快手级别在哪里看(快手级别在哪里关闭呢)

  • 微信群里发的图片怎么删除让群里人看不见(微信群里发的图片超过2分钟怎么删除)

    微信群里发的图片怎么删除让群里人看不见(微信群里发的图片超过2分钟怎么删除)

  • 硬盘内部传输速率和外部传输速率(硬盘内部传输速率和接口传输速率的区别)

    硬盘内部传输速率和外部传输速率(硬盘内部传输速率和接口传输速率的区别)

  • 企业微信未处理什么意思(企业微信显示未处理)

    企业微信未处理什么意思(企业微信显示未处理)

  • 不使用手机mic啥意思(不使用mic什么意思)

    不使用手机mic啥意思(不使用mic什么意思)

  • 华为mate30短信通知栏不显示(华为mate30短信通知不提醒了)

    华为mate30短信通知栏不显示(华为mate30短信通知不提醒了)

  • 华为riotl00是什么型号(华为rioul00是啥型号)

    华为riotl00是什么型号(华为rioul00是啥型号)

  • 1.5v干电池电流是多少(1.5v干电池电流多大)

    1.5v干电池电流是多少(1.5v干电池电流多大)

  • unix和windows的区别(windows与unix的区别)

    unix和windows的区别(windows与unix的区别)

  • powerpoint是哪个公司的产品(powerpoint叫什么)

    powerpoint是哪个公司的产品(powerpoint叫什么)

  • hd显卡是什么(显卡hd是独立显卡吗)

    hd显卡是什么(显卡hd是独立显卡吗)

  • 苹果7p分辨率是几k(iphone7p分辨率是多少)

    苹果7p分辨率是几k(iphone7p分辨率是多少)

  • 手机酷狗歌词显示方式(手机酷狗音乐歌词显示不在中间)

    手机酷狗歌词显示方式(手机酷狗音乐歌词显示不在中间)

  • 抖音作品怎么设为私密(抖音作品怎么设置不让别人下载)

    抖音作品怎么设为私密(抖音作品怎么设置不让别人下载)

  • 三星bixby怎么设置说话(三星bixby页面的设置不见了)

    三星bixby怎么设置说话(三星bixby页面的设置不见了)

  • vivox9怎么关闭低电量模式(vivox7手机怎么关闭低电量模式)

    vivox9怎么关闭低电量模式(vivox7手机怎么关闭低电量模式)

  • a1674ipad哪年产的(苹果平板a1674是几代)

    a1674ipad哪年产的(苹果平板a1674是几代)

  • 华为手机美颜功能在哪(华为手机美颜功能怎么没有了)

    华为手机美颜功能在哪(华为手机美颜功能怎么没有了)

  • 酷我如何上传歌曲(酷我音乐怎么上传自己的音乐作品?)

    酷我如何上传歌曲(酷我音乐怎么上传自己的音乐作品?)

  • MAC OS X Lion启动U盘制作和使用U盘安装系统图文教程(macos usb启动)

    MAC OS X Lion启动U盘制作和使用U盘安装系统图文教程(macos usb启动)

  • 关闭win10开机磁盘检查(win10怎么关闭开机磁盘自检)

    关闭win10开机磁盘检查(win10怎么关闭开机磁盘自检)

  • 【Tensorflow深度学习】实现手写字体识别、预测实战(附源码和数据集 超详细)(tensorflow gan)

    【Tensorflow深度学习】实现手写字体识别、预测实战(附源码和数据集 超详细)(tensorflow gan)

  • 特许权使用费收入
  • 一般纳税人开普票和专票有什么区别
  • 开出商业承兑汇票到期会计分录
  • 一般纳税人印花税税率是多少
  • 销售货物物流公司丢件赔偿会计分录
  • 对债务人取得债权是什么意思
  • 进项税过期不抵扣怎么写会计分录?
  • 公司开出的经济补偿金可以税前扣除吗
  • 异地工程要预缴环境税款吗
  • 以前年度留抵用完 不能抵欠税
  • 升级后的百旺开票系统如何操作
  • 建安业一般纳税人企业所得税率是多少
  • 建筑业的合理避税
  • 房产税要来了!租金也要交,最高达到12%
  • 出口零税率是什么意思
  • 已付款收到发票但没有做计提凭证
  • 我的初级备考经验怎么写
  • 小规模纳税人的增值税计入成本吗
  • 一般纳税人增值税申报操作流程
  • 企业关闭时国税、地税注销需要哪些手续,时间是多长?
  • 购入的车辆入账包括哪些费用
  • 个体工商户需要年审吗
  • php获取农历日期
  • Linux Mint Cinnamon中安装MATE桌面详细步骤
  • 简单了解php编程软件
  • 邮件远程控制
  • 外币债券汇兑损益怎么算
  • 收到专利补助费的会计处理
  • 财政总预算会计科目
  • 会计科目明细分类科目表
  • 报错代码678什么意思
  • phpipam使用
  • 出口增值税怎么计算公式
  • 出差有补贴
  • 上月未结账本月不能操作任何业务
  • 电子承兑汇票支付信用查询是什么意思
  • 利用php实现一个数组
  • thinkphp框架怎么用
  • 公司法人和股东哪个承担的责任大
  • 图片防止侵权怎么写
  • 模型训练的过程是什么过程
  • css网页布局代码
  • 数据模型 excel
  • tree命令常用参数
  • 未记账凭证怎么变成已记账凭证
  • 房租税务局代增值税发票 税点
  • 实发工资知道如何发放吗
  • 存货和固定资产一经计提减值以后期间不得转回
  • mysql数据库中进入mysql库的命令
  • 金税四期上线后对保险
  • 商业企业如何建账
  • 公司拨款给个人分录
  • 研发费用是否包含增值税
  • 将资产货物用于职工福利
  • 水电费进项税额转出20%
  • 商业承兑汇票结算会计分录
  • 企业支付的产品和物资的原始价格是采购成本中的
  • 技术开发技术服务属于什么行业
  • 会计里计提是什么意思
  • 银行的结息怎么做会计分录
  • 购买天然气进项税额
  • 税控系统全额抵扣
  • CMD命令操作MSSQL2005数据库(命令整理)
  • win8.1开机进入桌面
  • windows怎么加速
  • 清理macbook清除系统垃圾
  • linux开机后怎么进去系统
  • win7系统注册表损坏无法启动怎么修复
  • android 相对布局居中
  • js中如何实现数字相加
  • jquery文本框内容改变事件
  • 批处理怎么用
  • 使用文字输入
  • JavaScript Array对象详解
  • javascript操作数组的方法
  • js function.call
  • 解决android 11+的保存文件路径问题
  • 安徽国家税务局网上办税平台
  • 税控盘可以换成ukey吗
  • 电子税务局网上登录
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设