当前位置: 首页 > 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.huolong8.cn/news/92219/

相关文章:

  • dz网站模版wordpress售后主题
  • 传奇服务器网站如何建设wordpress怎么静态页面
  • 查建设工程业绩在哪个网站做网站需要申请商标哪些类目
  • 网站建设 电子书中国最大的外包公司有哪些
  • 建设银行网站怎么开通短信服务聊天软件是怎么开发的
  • 四川成都营销型网站dedecms做网站全教程
  • 网站手机端排名软件四川省住房与城乡建设厅网站官网
  • 绵阳网站建设制作企业手机网站 案例
  • 做网站多少钱一个月广西网络营销外包公司
  • 舟山市建设工程质量监督站网站陕西交通建设集团蓝商公司网站
  • 深圳招聘网站有哪些广州越秀金融大厦
  • 微信二维码网站制作wordpress拖动实现
  • 网站建设取得实效沈阳网络平台推广公司
  • 做pc端网站行情网站顶部悬浮导航代码
  • 做网站可以使用免费空间吗给企业做网站的平台
  • 树荫营销网站十大国外室内设计网站
  • 教如何做帐哪个网站好长沙专业企业建站联系人
  • 建设银行网站百度一下爱站网关键词长尾挖掘
  • wordpress建站后怎样发布营销型网站及原因有哪些方面
  • 织梦做的网站首页出现空白企业策划书目录
  • 广州微信网站建设费用建设信用卡积分商城网站
  • 贵城乡建设官方网站青岛九二网络科技有限公司
  • 网站建设+廊坊网站整体排名大幅下降
  • 好医生网站怎么做不了题目了百度关键词排名推广
  • 公司规划发展计划书网页优化怎么做
  • 制作网站river 上app下载
  • 个人建设网站流程软件系统开发平台
  • 网站建设与网页设计期末考试运营网站
  • 网站建设公司下载手机浏览器
  • 设计类专业就业前景怎么样天津seo代理商