The extra disk space has run out, the disk size has increased

To execute the following commands, you will need to connect to the PBX using an SSH client.

Control of free disk space

~ # df -h
Filesystem                Size      Used Available Use% Mounted on
none                    281.3M    324.0K    281.0M   0% /dev
/dev/sda2               392.3M    384.6M      3.8M  99% /offload
/dev/sda3                14.1M    915.0K     12.9M   6% /cf
/dev/sdb1                 4.9G     71.0M      4.5G   2% /storage/usbdisk1

Disabling the disk

Before starting work, you should unmount the disk. To do this, run the script:

~ # /sbin/freestorage

Make sure that the data storage disk is no longer mounted:

~ # df -h
Filesystem                Size      Used Available Use% Mounted on
none                    281.3M    324.0K    281.0M   0% /dev
/dev/sda2               392.3M    388.3M         0 100% /offload
/dev/sda3                14.1M    915.0K     12.9M   6% /cf

Editing the Partition table

Deleting a partition

First, delete the existing partition. This operation does NOT delete data on the disk, just edits the partition table.

Launching the Section Editor:

The system will prompt you to enter a command, enter "d" and press Enter:

Система запросит выбрать раздел к удалению, он один, вводим номер раздела «1» и жмем Enter:

Сохраняем таблицу разделов, вводим команду «w» и жмем Enter:

Adding a larger section

Launching the Section Editor:

The system will prompt you to enter a command, enter "n" and press Enter:

Next, specify the command "p", the section will be primary, press Enter:

Enter the number of the created section "1", press Enter:

Next, the system will ask you to enter the numbers of the first and last sector "First sector" / "Last sector", wait for Enter, do not enter anything and agree with the "default" values.

Checking a new partition

Checking the section for errors

Run the verification command:

Example of the result of the team's work:

Partition file system size

Run the command:

Example of command output:

Rebooting and mounting

When booting, the system will automatically mount a disk for data storage:

Last updated

Was this helpful?