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

甘肃做网站找谁/站长工具网站排名

甘肃做网站找谁,站长工具网站排名,菏泽做网站设计,网络营销工作岗位有哪些一、 修改虚拟机磁盘大小 先把虚拟机停掉。再增加磁盘大小。 路径中有空格的用""包起来。 D:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd "D:\Program Files\VirtualBox VMs\mycentos\mycentos.vdi" --resize 30000 0%...10%...20%...3…

一、 修改虚拟机磁盘大小
先把虚拟机停掉。再增加磁盘大小。
路径中有空格的用""包起来。

D:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd "D:\Program Files\VirtualBox VMs\mycentos\mycentos.vdi" --resize 30000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

查看虚拟机的大小
在这里插入图片描述
二、启动虚拟机
查看磁盘,看不到新增的磁盘。
在这里插入图片描述
查看总磁盘已经扩展到31.5GB

[root@localhost ~]# fdisk -l /dev/sdaDisk /dev/sda: 31.5 GB, 31457280000 bytes, 61440000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009162bDevice Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    41943039    20458496   8e  Linux LVM

三、格式化新增的空间

[root@localhost ~]# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.Command (m for help): m
Command actiona   toggle a bootable flagb   edit bsd disklabelc   toggle the dos compatibility flagd   delete a partitiong   create a new empty GPT partition tableG   create an IRIX (SGI) partition tablel   list 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 partition's system idu   change display/entry unitsv   verify the partition tablew   write table to disk and exitx   extra functionality (experts only)Command (m for help): n
Partition type:p   primary (2 primary, 0 extended, 2 free)e   extended
Select (default p): p
Partition number (3,4, default 3): 3
First sector (41943040-61439999, default 41943040): 
Using default value 41943040
Last sector, +sectors or +size{K,M,G} (41943040-61439999, default 61439999): 
Using default value 61439999
Partition 3 of type Linux and of size 9.3 GiB is setCommand (m for help): t
Partition number (1-3, default 3): 3    
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'Command (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

再查看磁盘

[root@localhost ~]# fdisk -l /dev/sdaDisk /dev/sda: 31.5 GB, 31457280000 bytes, 61440000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009162bDevice Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048    41943039    20458496   8e  Linux LVM
/dev/sda3        41943040    61439999     9748480   8e  Linux LVM
# 重新分区
[root@localhost ~]# partprobe
[root@localhost ~]# mkfs.ext3 /dev/sda3
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
609600 inodes, 2437120 blocks
121856 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2495610880
75 block groups
32768 blocks per group, 32768 fragments per group
8128 inodes per group
Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done [root@localhost ~]# lvm
lvm> pvcreate /dev/sda3
WARNING: ext3 signature detected on /dev/sda3 at offset 1080. Wipe it? [y/n]: yWiping ext3 signature on /dev/sda3.Physical volume "/dev/sda3" successfully created.
lvm> vgdisplay--- Volume group ---VG Name               centosSystem ID             Format                lvm2Metadata Areas        1Metadata Sequence No  3VG Access             read/writeVG Status             resizableMAX LV                0Cur LV                2Open LV               2Max PV                0Cur PV                1Act PV                1VG Size               <19.51 GiBPE Size               4.00 MiBTotal PE              4994Alloc PE / Size       4984 / <19.47 GiBFree  PE / Size       10 / 40.00 MiBVG UUID               dGZuCt-X5L5-WTQD-BSRs-OO3m-GzGy-mIy0y3lvm> vgextend centos /dev/sda3Volume group "centos" successfully extended
lvm> lvextend -l +4984 /dev/mapper/centos-rootInsufficient free space: 4984 extents needed, but only 2389 available
lvm> lvextend -l +2389 /dev/mapper/centos-rootSize of logical volume centos/root changed from <17.47 GiB (4472 extents) to 26.80 GiB (6861 extents).Logical volume centos/root successfully resized.
lvm> quitExiting.[root@localhost ~]# xfs_growfs /dev/mapper/centos-root
meta-data=/dev/mapper/centos-root isize=256    agcount=4, agsize=1144832 blks=                       sectsz=512   attr=2, projid32bit=1=                       crc=0        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=4579328, imaxpct=25=                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal               bsize=4096   blocks=2560, version=2=                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 4579328 to 7025664
[root@localhost ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 1.9G     0  1.9G   0% /dev
tmpfs                    1.9G     0  1.9G   0% /dev/shm
tmpfs                    1.9G  8.6M  1.9G   1% /run
tmpfs                    1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mapper/centos-root   27G   14G   14G  51% /
/dev/sda1                497M  164M  334M  33% /boot
tmpfs                    379M     0  379M   0% /run/user/0

/dev/mapper/centos-root大小已经变成27G

http://www.fp688.cn/news/728.html

相关文章:

  • 上海网站制作网站建设/平台做推广的技巧
  • wordpress版权怎/搜索引擎优化seo多少钱
  • 网站建设都需要什么费用/一站式发稿平台
  • 安徽富通建设集团有限公司网站/联赛积分榜排名
  • 小红书推广费用标准/百度ocpc如何优化
  • 企业网站建设规划的基本原则是什么/短视频营销常用平台有
  • 网站流量的做/优化搜索引擎的方法
  • 网站的建设与维护有什么作用/百度查询最火的关键词
  • 怎么快速仿wordpress站/网站服务器搭建
  • 传奇备案域名购买/seo优化总结
  • 搜集10个优秀网站/盘多多百度网盘搜索引擎
  • 手机网站js特效/百度搜索什么关键词排名
  • 家用机能否做网站服务器/百度搜索引擎下载免费
  • 成都手机网站建设开发/营销助手下载app下载
  • 黑龙江省住房和建设厅网站/重庆电子商务seo
  • 中国建设银行网站查征信/谷歌外贸
  • 商品展示网站源码/百度一下你就知道官页
  • 传媒网站源码带手机/如何注册属于自己的网站
  • 网站建设培训 南宁/品牌推广渠道有哪些
  • 欧赛网站建设/百度平台客服电话
  • 惠州专业网站建设/新媒体运营培训
  • 怎么做游戏网站编辑/网站搜索引擎推广
  • 产品网站建设/徐州seo培训
  • 网站开发所需能力/网络营销模式包括哪些
  • 高端 网站定制/建网站模板
  • CMS源码就可以做网站吗/电商运营推广是做什么的
  • 电脑ps软件有免费的吗/优化设计七年级上册语文答案
  • 江苏住房与城乡建设部网站/网站流量查询站长之家
  • 南浔哪有做网站的/百度招聘官网首页
  • 商城网站建设咨询/做一个网站需要多少钱大概