• <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
  • <th id="l3qpx"><progress id="l3qpx"></progress></th>
      <th id="l3qpx"></th>
      <dd id="l3qpx"><font id="l3qpx"></font></dd>
      <th id="l3qpx"></th>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風信網絡科技有限公司微信公眾號

      當前位置:主頁 > 技術支持 > Linux > 實戰(zhàn)百度云服務器CDS磁盤無損數(shù)據盤擴容到50G

      實戰(zhàn)百度云服務器CDS磁盤無損數(shù)據盤擴容到50G

      時間:2019-06-11來源:風信官網 點擊: 1217次
      最近風信建站服務的客戶所使用的獨立Linux服務器系統(tǒng),因為客戶平臺數(shù)據太多,導致數(shù)據盤滿了,為了保證數(shù)據的安全及增加數(shù)據盤的空間容量,風信建站對客戶的服務器進行了數(shù)據盤擴容升級,保證了客戶的數(shù)據安全。
       
      先把掛載分區(qū)進行卸載
       
      [root@instance-549sbowh /]# umount /www
      umount: /www: target is busy.
              (In some cases useful info about processes that usethe device is found by lsof(8) or fuser(1))
       
      顯示無法卸載成功。
       
      方法1、查看是否有進程占用
       
      [root@instance-549sbowh /]# lsof | grep /www
       
      如果發(fā)現(xiàn)有被占用的進程,我們可以使用kill命令,直接殺掉進程。
       
      方法2:編輯vi /etc/fstab文件
       
      [root@instance-549sbowh ~]# vi /etc/fstab
       
      直接注銷掛載點,重新啟動服務器。
       
      查看磁盤信息,已經卸載成功。
      [root@instance-549sbowh ~]# df -lh
      Filesystem      Size  Used Avail Use% Mounted on
      /dev/vda1        40G  7.3G   31G  20% /
      devtmpfs        980M     0  980M   0% /dev
      tmpfs           991M     0  991M   0% /dev/shm
      tmpfs           991M  9.1M  982M   1% /run
      tmpfs           991M     0  991M   0% /sys/fs/cgroup
      tmpfs           199M     0  199M   0% /run/user/0
       
      使用parted -l查看磁盤情況:
      [root@instance-549sbowh ~]# parted -l
      Model: Virtio Block Device (virtblk)
      Disk /dev/vda: 42.9GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags: 
       
      Number  Start   End     Size    Type     File system  Flags
       1      1049kB  42.9GB  42.9GB  primary  ext4         boot
       
       
      Model: Virtio Block Device (virtblk)
      Disk /dev/vdb: 53.7GB
      Sector size (logical/physical): 512B/512B
      Partition Table: loop
      Disk Flags: 
       
      Number  Start  End     Size    File system  Flags
       1      0.00B  53.7GB  53.7GB  ext4
       
      [root@instance-549sbowh ~]# cat /proc/partitions 
      major minor  #blocks  name
       
       253        0   41943040 vda
       253        1   41941999 vda1
       253       16   52428800 vdb
       
      檢查文件系統(tǒng)
      [root@instance-549sbowh ~]# e2fsck -f /dev/vdb
      e2fsck 1.42.9 (28-Dec-2013)
      Pass 1: Checking inodes, blocks, and sizes
      Pass 2: Checking directory structure
      Pass 3: Checking directory connectivity
      Pass 4: Checking reference counts
      Pass 5: Checking group summary information
      /dev/vdb: 31325/327680 files (0.2% non-contiguous), 713819/1310720 blocks
       
      變更文件系統(tǒng)大小
      [root@instance-549sbowh ~]# resize2fs /dev/vdb
      resize2fs 1.42.9 (28-Dec-2013)
      Resizing the filesystem on /dev/vdb to 13107200 (4k) blocks.
      The filesystem on /dev/vdb is now 13107200 blocks long.
       
      重新掛載分區(qū)
      [root@instance-549sbowh ~]# mount /dev/vdb /www
       
      數(shù)據盤擴容成功
      [root@instance-549sbowh ~]# df -lh
      Filesystem      Size  Used Avail Use% Mounted on
      /dev/vda1        40G  7.3G   31G  20% /
      devtmpfs        980M     0  980M   0% /dev
      tmpfs           991M     0  991M   0% /dev/shm
      tmpfs           991M  9.1M  982M   1% /run
      tmpfs           991M     0  991M   0% /sys/fs/cgroup
      tmpfs           199M     0  199M   0% /run/user/0
      /dev/vdb         50G  12.6G   35G   6% /www
      欄目列表
      推薦內容
      熱點內容
      展開
      欧美一区二区三区免费A级视频,亚洲精品中文字幕综合,动漫精品中文字幕无码第一页,1024亚洲国产综合 亚太影院 柯西贝尔-游戏赚网
    1. <b id="l3qpx"><abbr id="l3qpx"></abbr></b>
    2. <th id="l3qpx"><progress id="l3qpx"></progress></th>
        <th id="l3qpx"></th>
        <dd id="l3qpx"><font id="l3qpx"></font></dd>
        <th id="l3qpx"></th>
        亚洲无码午夜| 全国精品国产自在现线| a视频在线观看无码| 国产一区二区三区欧美| 亚洲成AV人片女在线观看| 亚洲AV秘 一区二区| 亚洲 日韩 欧美 综合| 亚洲国产超清无码专区| 国产一国产一级精品毛片| 亚洲第一av无码专区| 在线免费看成年入口视频| 97人妻资视频源网站| 制服丝袜亚洲综合无码| 亚洲精精品无码国产| 国产成人在线视频| 亚洲AV秘 无码东京热| 欧美精品久久天天躁| 亚洲乱码中文字幕综合站| 亚洲av高清在线观看一区二区| 日本精品视频一区二区三区| 中文成人无字幕乱码精品区| 97色在线精品视频|