Ինչպես ընդլայնել դիսկային տարածքը Վիրտուալ սերվերում

Step 1 – Preparations

Ստուգեք ընթացիկ partition-ի աղյուսակը (այն պետք է նման լինի այս օրինակին՝ կախված մոդելից).

# fdisk -l /dev/sda

Արդյունք:

Disk /dev/sdb: 102.4 GB, 102399737856 bytes
255 heads, 63 sectors/track, 12449 cylinders, total 199999488 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 identifier: 0x00051eb3

   Device Boot      Start         End      Blocks   Id  System
 /dev/sda1            2048    52426752    26212352+  83  Linux

Step 2 – Ստուգեք ֆայլային համակարգը հետևյալ քայլով.

# e2fsck -f -C0 /dev/sda1

Արդյունք:

e2fsck 1.42.5 (29-Jul-2012)
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/sdb1: 26283/1638400 files (5.6% non-contiguous), 283813/6553088 blocks

Step 3 – Ֆայլային համակարգի չափի փոփոխում

#resize2fs /dev/sda1

Արդյունք:

resize2fs 1.42.5 (29-Jul-2012)
Resizing the filesystem on /dev/sda1 to 24999680 (4k) blocks.
The filesystem on /dev/sda1 is now 24999680 blocks long.

 

Թարմացրեք ձեր համակարգիչ:

  • 149 Հաճախորդ սա օգտակար են համարել
Օգնեց ձեզ այս պատասխանը?

Կապակցված հոդվածներ

How to Configure Static IP Address on CentOS 7

1. From the home page of your HayHost client area, click "SERVICES".   2. Select the server...

How to Install XRDP Server (Remote Desktop) on Debian 11/12

1. Update and Upgrade Debian 11/12 apt update && sudo apt upgrade -y   2. Install the...

Ինչպես գնել Վիրտուալ Սերվեր ՀայՀոստում

1. Մուտք գործեք ՀայՀոսթի հաճախորդի տարածքի գլխավոր էջ, նեքևի ձախ անկյունում սեղմեք «Պատվիրել...

How to Configure Static IP address on Ubuntu 20.04

1. From the home page of your HayHost client area, click "SERVICES".   2. In the My Products...

Ինչպես միանալ ձեր սերվերին RDP-ի միջոցով Windows 7-ում

1. Ձեր համակարգչում մուտք գործեք «Start» մենյու, որոնեք «Remote Desktop Connection» և սեղմեք դրա...