当前位置: 首页 > news >正文

建筑网站哪里找我想做个卷帘门网站怎么做

建筑网站哪里找,我想做个卷帘门网站怎么做,哪个设计网站做兼职好,嘉兴网站建设多少时间openstack VM 磁盘扩容#xff0c;修复 GPT 分区#xff0c;更新分区表后#xff0c;拉伸文件系统2014-06-23 分类#xff1a;Hardware 标签#xff1a;Openwrt Route起因之前#xff0c;厂里 openstack 虚拟机#xff0c;「云主机类型」不同模板定义的磁盘大小。是在原…openstack VM 磁盘扩容修复 GPT 分区更新分区表后拉伸文件系统2014-06-23 分类Hardware 标签Openwrt Route起因之前厂里 openstack 虚拟机「云主机类型」不同模板定义的磁盘大小。是在原镜像的 「根磁盘」 上 附加 (attach) 相应大小的 「临时磁盘」 来实现的。在虚拟机里面看到的是 2 块独立的磁盘设备。将虚拟机「临时磁盘」扩容到逻辑卷组以此做的快照启动找不到之前附加的「临时磁盘」杯具发生了 起不来 -_-!现在不同模板直接指定不同大小的 「根磁盘」 不再使用 「临时磁盘」 。生成的虚拟机就只看到一个 扩容后 (resize) 的磁盘。但由于母盘镜像大小和模板定义的磁盘大小不一样parted 分区操作时需要先修复分区系统才能识别到相对母盘 扩容 的磁盘空间然后分区扩容逻辑卷组拉伸文件系统这样做的快照才可以正常使用。经过修复 GPT 分区# parted /dev/vdaUsing /dev/vdaWelcome to GNU Parted! Type help to view a list of commands.(parted) pError: The backup GPT table is not at the end of the disk, as it should be.This might mean that another operating system believes the disk is smaller.Fix, by moving the backup to the end (and removing the old backup)?Fix/Ignore/Cancel? fWarning: Not all of the space available to /dev/vda appears to be used,you can fix the GPT to use all of the space (an extra 125829120 blocks) or continuewith the current setting?Fix/Ignore? fparted 没有可以自动 Fix 分区表的命令行参数只好用 expect 交互式修复 GPT 分区并扩增分区expect -c spawn parted /dev/vda; \expect (parted); send -- p\r; \expect Fix/Ignore/Cancel?; send -- f\r; \expect Fix/Ignore?; send -- f\r; \expect (parted); send -- mkpart primary 42.9GB 100%\r; \expect (parted); send -- p\r; \expect (parted); send -- q\r; \exit更新分区表上面修复完 GPT 分区后会出现下面的提示要重启才能重新识别 新分区 WARNING: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy).As a result, it may not reflect all of your changes until after reboot.parted 虽然可以看到新分区但系统里找不到 新分区 对应的 block 设备# parted /dev/vda printModel: Virtio Block Device (virtblk)Disk /dev/vda: 129GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags1 1049kB 211MB 210MB ext4 boot2 211MB 42.9GB 42.7GB lvm3 42.9GB 129GB 85.9GB primary# ls /dev/vdavda vda1 vda2# cat /proc/partitionsmajor minor #blocks name252 0 125829120 vda252 1 204800 vda1252 2 41736192 vda2尝试使用 partprobe 刷新分区表结果无效。依然会提示 reboot 才能更新分区表When you update the partition table, you need to tell the kernel it has been updated. Normally you can use partprobe. However, on RHEL6 , this no longer works for disks that have partitions already mounted (e.g. your system disk on sda) This is considered too dangerous, so the developers stopped this in RHEL6 . You can work around this (although not advisable) by using partx to forcibly add new partitions to /proc/partitions上面帖子说 RHEL6 中 partprobe 不支持更新 已挂载 的磁盘设备要用 partx 命令 强制 更新分区表$ man partx-a, --addAdd the specified partitions, or read the disk and add all partitions.# partx -av /dev/vdadevice /dev/vda: start 0 size 2097152000gpt: 3 slices# 1: 2048- 411647 ( 409600 sectors, 209 MB)# 2: 411648- 83884031 ( 83472384 sectors, 42737 MB)# 3: 83884032-251656191 (167772160 sectors, 85899 MB)BLKPG: Device or resource busyerror adding partition 1BLKPG: Device or resource busyerror adding partition 2added partition 3上面输出的 BLKPG: Device or resource busyerror adding partition 1 报错没关系。 因为前两个分区已经 被识别挂载 了就不用再 画蛇舔脚 的重复添加到分区表了。 执行完后就可以在 /proc/partitions 看到新识别的分区了# cat /proc/partitionsmajor minor #blocks name252 0 125829120 vda252 1 204800 vda1252 2 41736192 vda2252 3 83886080 vda3扩容文件系统修复完分区表、更新完分区表。是该做正经事的时候了扩容文件系统将新分区添加物理卷扩容逻辑卷组拉伸逻辑卷扩容文件系统doit pvcreate /dev/vda3Writing physical volume data to disk /dev/vda3Physical volume /dev/vda3 successfully created vgextend vg /dev/vda3Volume group vg successfully extended lvextend -l 100%FREE /dev/vg/homeExtending logical volume home to 87.75 GiBLogical volume home successfully resized resize2fs -p -F /dev/vg/homeFilesystem at /dev/vg/home is mounted on /home; on-line resizing requiredold desc_blocks 1, new_desc_blocks 6Performing an on-line resize of /dev/vg/home to 23003136 (4k) blocks.The filesystem on /dev/vg/home is now 23003136 blocks long.OVER到此就完成了虚拟机扩容文件系统的任务就完成了。。。
http://www.yutouwan.com/news/92219/

相关文章:

  • 做网站开发需要什么手机上怎么设计广告图片
  • 产品宣传网站的重点保定哪做网站好
  • 王者荣耀官方网站广东网站设计招工.
  • 建自己的网站用多少钱成都网站外包优化公司
  • 长沙好的网站建设公司深圳外贸10强公司
  • 个人网站设计模版html河南网站建设价格大全
  • 广西网站建设推荐莆田网站建设创意
  • 网站开发公司 商业计划书wordpress用户中心授权码
  • wordpress网站关键词网站建设销售方面会遇到的问题
  • 上海网站seo设计提升网站的访问速度
  • 吉安seo网站快速排名做网站生意买螃蟹
  • 从客户—管理者为某一公司做一份电子商务网站管理与维护的方案onethink 网站
  • 建永久网站企业网站搭建方案
  • 盐城网站建设有限公司制作线下交易平台网站建设
  • 建立网站的第一步食品工厂设计平面图
  • google网站管理员工具 下载wordpress 字体 图标
  • 可以自己设计一个公司的网站东莞网页平面设计
  • 网站建设进度汇报网站建设先进城市
  • 网站 工作室 建设 方案企业邮箱邮箱
  • 网站建设方案范文1000字iis 与 wordpress
  • 如何通过建立网站赚钱做静态网站的参考文献
  • 网站综合营销方案为什么建设法律法规网站
  • 建网站一般用什么工具郑州哪家医院看妇科比较专业
  • 商业网站开发实训报告网站建设与栏目设置
  • 网站后台使用app推广视频
  • 衡阳百度网站建设全屋定制都包括什么
  • 培训机构网站建设要求怎么样在网站做产品推广
  • wordpress move 下载win7最好的优化软件
  • 浙江艮威水利建设有限公司网站wordpress 七牛云图床
  • 光通信网站模板郑州百度搜索优化