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

中粮我买网是哪个公司做的网站搜索引擎收录查询工具

中粮我买网是哪个公司做的网站,搜索引擎收录查询工具,金华建设网站,网页制作讲解视频Centos 8系统xfs文件系统类型进行扩容缩容 (LVM),xfs分区类型是不支持正常缩容,只能强制缩容 1.磁盘情况:2.缩容home分区1.备份home数据:2.查找使用 /home 的进程:3.终止这些进程:4.卸载 /home …

Centos 8系统xfs文件系统类型进行扩容缩容 (LVM),xfs分区类型是不支持正常缩容,只能强制缩容

  • 1.磁盘情况:
  • 2.缩容home分区
    • 1.备份home数据:
    • 2.查找使用 /home 的进程:
    • 3.终止这些进程:
    • 4.卸载 /home 分区
    • 5.强制缩容home系统大小
    • 6.强制格式化home分区
    • 7.挂载/home 分区
    • 8.恢复备份数据
  • 3.扩容root分区
    • 1.扩展根分区的逻辑卷
    • 2.对扩展后的文件系统进行调整:
    • 3.确认扩展结果

1.磁盘情况:

[root@localhost ~]# df -Th
文件系统            类型      容量  已用  可用 已用% 挂载点
devtmpfs            devtmpfs  876M     0  876M    0% /dev
tmpfs               tmpfs     895M     0  895M    0% /dev/shm
tmpfs               tmpfs     895M  8.7M  887M    1% /run
tmpfs               tmpfs     895M     0  895M    0% /sys/fs/cgroup
/dev/mapper/cl-root xfs        70G  3.8G   67G    6% /
/dev/sda2           xfs      1014M  213M  802M   21% /boot
/dev/mapper/cl-home xfs       127G  935M  126G    1% /home
/dev/sda1           vfat      599M  7.3M  592M    2% /boot/efi
tmpfs               tmpfs     179M     0  179M    0% /run/user/0

2.缩容home分区

把home分区的空间划一部分到root分区

1.备份home数据:

xfs文件类型 缩容home只能强制缩容,
这一步非常重要。在修改分区之前,请确保备份所有重要数据。

mkdir /root/home
cp /home/*  /root/home

2.查找使用 /home 的进程:

lsof +D /home
例如:
COMMAND   PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bash      1234  user1  cwd   DIR  8,1     4096    2   /home/user1
firefox   5678  user1  mem   REG  8,1    123456   3   /home/user1/.mozilla/firefox/xxxxxx.default/...

3.终止这些进程:

sudo kill -9 1234
sudo kill -9 5678

4.卸载 /home 分区

sudo umount /home

5.强制缩容home系统大小

[root@localhost ~]# lvcreate -L 20G -n home_temp cl Volume group "cl" has insufficient free space (0 extents): 5120 required.
[root@localhost ~]# lvreduce -L 20G /dev/cl/homeWARNING: Reducing active logical volume to 20.00 GiB.THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce cl/home? [y/n]: ySize of logical volume cl/home changed from <126.38 GiB (32353 extents) to 20.00 GiB (5120 extents).Logical volume cl/home successfully resized.

6.强制格式化home分区

[root@localhost ~]# mkfs.xfs -f /dev/cl//home 
meta-data=/dev/cl//home          isize=512    agcount=4, agsize=1310720 blks=                       sectsz=512   attr=2, projid32bit=1=                       crc=1        finobt=1, sparse=1, rmapbt=0=                       reflink=1
data     =                       bsize=4096   blocks=5242880, imaxpct=25=                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=2560, version=2=                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
Discarding blocks...Done.

7.挂载/home 分区

[root@localhost ~]# mount -a

8.恢复备份数据

sudo cp /root/home/* /home/

3.扩容root分区

1.扩展根分区的逻辑卷

现在我们可以将原本分配给 /home 的空间扩展到 /root 分区:

[root@localhost ~]# lvextend -l +100%FREE /dev/cl/rootSize of logical volume cl/root changed from 70.00 GiB (17920 extents) to <176.38 GiB (45153 extents).Logical volume cl/root successfully resized.

2.对扩展后的文件系统进行调整:

[root@localhost ~]# xfs_growfs /dev/mapper/cl-root
meta-data=/dev/mapper/cl-root    isize=512    agcount=4, agsize=4587520 blks=                       sectsz=512   attr=2, projid32bit=1=                       crc=1        finobt=1, sparse=1, rmapbt=0=                       reflink=1
data     =                       bsize=4096   blocks=18350080, imaxpct=25=                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=8960, version=2=                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 18350080 to 46236672

3.确认扩展结果

[root@localhost ~]# df -h
文件系统             容量  已用  可用 已用% 挂载点
devtmpfs             876M     0  876M    0% /dev
tmpfs                895M     0  895M    0% /dev/shm
tmpfs                895M  8.7M  887M    1% /run
tmpfs                895M     0  895M    0% /sys/fs/cgroup
/dev/mapper/cl-root  177G  4.5G  172G    3% /
/dev/sda2           1014M  213M  802M   21% /boot
/dev/sda1            599M  7.3M  592M    2% /boot/efi
tmpfs                179M     0  179M    0% /run/user/0
/dev/mapper/cl-home   20G  175M   20G    1% /home
[root@localhost ~]# lvdisplay--- Logical volume ---LV Path                /dev/cl/rootLV Name                rootVG Name                clLV UUID                gX9aeL-1Y8m-tGCz-Euka-YynN-SeY4-ecOMWuLV Write Access        read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:22 -0400LV Status              available# open                 1LV Size                <176.38 GiBCurrent LE             45153Segments               2Allocation             inheritRead ahead sectors     auto- currently set to     8192Block device           253:0--- Logical volume ---LV Path                /dev/cl/homeLV Name                homeVG Name                clLV UUID                dHsXfZ-okNT-82gk-6ed5-oXlP-BxUQ-rQV3xBLV Write Access        read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:22 -0400LV Status              available# open                 1LV Size                20.00 GiBCurrent LE             5120Segments               1Allocation             inheritRead ahead sectors     auto- currently set to     8192Block device           253:2--- Logical volume ---LV Path                /dev/cl/swapLV Name                swapVG Name                clLV UUID                SDh6NB-5tsS-Sdd6-uYpz-ygNi-bKiF-lU5hqnLV Write Access        read/writeLV Creation host, time localhost.localdomain, 2024-08-01 23:03:23 -0400LV Status              available# open                 2LV Size                2.03 GiBCurrent LE             520Segments               1Allocation             inheritRead ahead sectors     auto- currently set to     8192Block device           253:1
http://www.wangmingla.cn/news/143693.html

相关文章:

  • 湛江网站制作公司俄罗斯搜索引擎yandex推广
  • 免费网站制作视频教程2020 惠州seo服务
  • html5网站在线制作公司品牌推广方案范文
  • 怎么做能上谷歌网站吗什么时候网络推广
  • 关于网站建设知识seo关键词优化排名外包
  • 企业做电商网站seo应该怎么做
  • 苹果电脑如何做网站互联网广告公司
  • 杭州公司做网站百度怎么推广自己的产品
  • wordpress menu背景厦门最快seo
  • 动漫网站怎么做的前端开发培训机构推荐
  • 中企动力做的网站好吗网站交易平台
  • 做最好的在线中文绅士本子阅读网站6百度小说排行榜完本
  • 网页做什么主题好seo关键词是什么
  • 网站设置支付宝在线支付seo岗位有哪些
  • 免费制作个人网页天津关键词优化专家
  • 网站建设询价单百度关键词排名联系方式
  • 网站建设费发票网站seo搜索
  • 中文域名做的网站b站推广入口2023
  • 创建网站忘记了怎么办最新军事新闻
  • wordpress 多站点迁移2024年新冠疫情最新消息
  • 青岛哪个网站建设公司价格低还能好一些seo网络推广专员
  • 建设网站网站抖音流量推广神器软件
  • 网站建设属于什么税目百度2023免费
  • 网站开发服务费属于哪种进项全专业优化公司
  • 耒阳在那做网站怎么从网上找客户
  • 日本logo设计网站挖掘关键词工具
  • 谷歌怎么做网站优化数字营销服务商seo
  • 招聘销售员网站建设网络推广网站推广方案范文
  • 工业互联网企业排名百度关键词优化点击 教程
  • 低价做网站深圳关键词seo