<th id="1dxm2"><option id="1dxm2"></option></th><object id="1dxm2"></object>

<th id="1dxm2"><video id="1dxm2"></video></th>
    <th id="1dxm2"><option id="1dxm2"></option></th>

    <nav id="1dxm2"></nav>

  1. <object id="1dxm2"></object>
        1. 0712-2888027 189-8648-0214
          微信公眾號

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

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

          實戰百度云服務器CDS磁盤無損數據盤擴容到50G

          時間:2023-03-24來源:風信官網 點擊: 658次
          最近風信建站服務的客戶所使用的獨立Linux服務器系統,因為客戶平臺數據太多,導致數據盤滿了,為了保證數據的安全及增加數據盤的空間容量,風信建站對客戶的服務器進行了數據盤擴容升級,保證了客戶的數據安全。
           
          先把掛載分區進行卸載
           
          [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
           
          如果發現有被占用的進程,我們可以使用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
           
          檢查文件系統
          [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
           
          變更文件系統大小
          [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.
           
          重新掛載分區
          [root@instance-549sbowh ~]# mount /dev/vdb /www
           
          數據盤擴容成功
          [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片免费观看

          <th id="1dxm2"><option id="1dxm2"></option></th><object id="1dxm2"></object>

          <th id="1dxm2"><video id="1dxm2"></video></th>
            <th id="1dxm2"><option id="1dxm2"></option></th>

            <nav id="1dxm2"></nav>

          1. <object id="1dxm2"></object>