→ Applies to: SynetoOS 6.x
Step 1. Increase the disk size from 40GB to 80GB ("How to increase disk space for a SynetoOS VMDK on VMware ESXi")
Step 2. Connect to SynetoOS appliance via SSH as admin
ssh admin@<your_ip_address_or_hostname>
Step 3. Become Super User
sudo su
Step 4. Identify the filesystem disk
lsblk
EXAMPLE OUTPUT
[root@syneto-os-echo ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 80G 0 disk ├─sda1 8:1 0 1G 0 part /boot ├─sda2 8:2 0 4G 0 part └─sda3 8:3 0 75G 0 part / sdb 8:16 0 3.5T 0 disk ├─sdb1 8:17 0 3.5T 0 part └─sdb9 8:25 0 8M 0 part sdc 8:32 0 3.5T 0 disk ├─sdc1 8:33 0 3.5T 0 part └─sdc9 8:41 0 8M 0 part sdd 8:48 0 3.5T 0 disk ├─sdd1 8:49 0 3.5T 0 part └─sdd9 8:57 0 8M 0 part sde 8:64 0 3.5T 0 disk ├─sde1 8:65 0 3.5T 0 part └─sde9 8:73 0 8M 0 part sdf 8:80 0 3.5T 0 disk ├─sdf1 8:81 0 3.5T 0 part └─sdf9 8:89 0 8M 0 part sdg 8:96 0 3.5T 0 disk ├─sdg1 8:97 0 3.5T 0 part └─sdg9 8:105 0 8M 0 part sdh 8:112 0 3.5T 0 disk ├─sdh1 8:113 0 3.5T 0 part └─sdh9 8:121 0 8M 0 part sdi 8:128 0 3.5T 0 disk ├─sdi1 8:129 0 3.5T 0 part └─sdi9 8:137 0 8M 0 part sdj 8:144 0 3.5T 0 disk ├─sdj1 8:145 0 3.5T 0 part └─sdj9 8:153 0 8M 0 part sdk 8:160 0 3.5T 0 disk ├─sdk1 8:161 0 3.5T 0 part └─sdk9 8:169 0 8M 0 part sdl 8:176 0 3.5T 0 disk ├─sdl1 8:177 0 71.6G 0 part └─sdl2 8:178 0 3.4T 0 part sdm 8:192 0 3.5T 0 disk ├─sdm1 8:193 0 71.6G 0 part └─sdm2 8:194 0 3.4T 0 part sr0 11:0 1 1024M 0 rom
Step 5. Verify disk space available
df -h
Step 6. List partitions
fdisk -l /dev/sda
EXAMPLE OUTPUT
[root@syneto-os-echo ~]# fdisk -l /dev/sda Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 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 Disklabel type: dos Disk identifier: 0x6d79aa1d Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 10487807 8388608 4G 82 Linux swap / Solaris /dev/sda3 10487808 167772159 157284352 75G 83 Linux
Step 7. Access fdisk for the specific disk
fdisk /dev/sda
Step 8. Press p to see the partition table
EXAMPLE OUTPUT
Command (m for help): p Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 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 Disklabel type: dos Disk identifier: 0x6d79aa1d Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 10487807 8388608 4G 82 Linux swap / Solaris /dev/sda3 10487808 167772159 157284352 75G 83 Linux
Step 9. Press d to delete the partition table
Step 10. If the partition on which to expand the space is sda3, press 3
Step 11. Press n to create the partition table
Step 12. Press p for primary partition
Step 13. Enter the partition number 3
Step 14. Press enter without entering values
Step 15. When asked to remove the XFS signature answer n
Step 16. Save changes with w
Step 17. Exit from fdisk with q
Step 18. Update the system space
xfs_growfs /