Add space to the Synology NAS in the VM

  • A+
Categories:Life Linux

I have finished similar tasks more than three times, so I though I would better write down it so in the future I could have a reference and just need to follow it step by step.

Below steps only tested on DSM 5.X (5.2 for me), and I will not upgrade it to DSM 6.X, so for 6.X system maybe I will write one blog for it.

My NAS environment:

HP Microserver Gen8 + P212 Smart Array + Highpoint X4 external enclosure, so at most I could add 8 disks to the raid array and this time I added the seventh one.

ESXi 6.0 is running on the Gen8 and Synology NAS is one of the VMs.

A new hard disk will arrive next month and I will convert it to RAID6.

Before the task, we should know it contains below several steps:

  1. Add the disk to the raid array
  2. Expand/extend the logical drive in the array
  3. Extend the datastore and the VMDK file in the ESXi
  4. Extend the volume of the Synology NAS

Another way is to add another basic volume to the Synology NAS while I prefer to place all my files on one file system as I do not want to copy or move files in the future.

The first step is really time consuming -- in fact this time it lasted for about 4-5 days!

Below are the detail commands for every step:

  1. Add the disk to the raid array
    This step will last several days depending on your array size, and after that a Parity Initialization would start automatically:
    After several hours we could extend the logical drive.
  2. Expand/extend the logical drive in the array
    When finished, the size of the logical drive would have been increased.
  3. Extend the datastore and the VMDK file in the ESXi
    Checked and confirmed the new size had been recognizedAdd space to the Synology NAS in the VMAdd space to the Synology NAS in the VMAdd space to the Synology NAS in the VMFrom the 'Properties' of the Datastore, we could increase the size easily.Add space to the Synology NAS in the VMAdd space to the Synology NAS in the VMSelected 'Maximum available space'Add space to the Synology NAS in the VMAnd we could increase the size of the VMDK file directly through the client.Add space to the Synology NAS in the VM
  4. Extend the volume of the Synology NAS
    To finish this step safely, I created another VM and managed this soft raid array, then detached it and opened it in the NAS system.
    Got the Vmid of all the VMs as I could not attach so large disk to the VM directly, and added it to the VM named ora12c:
    I already had five disks (0-4) on the SCSI channel 0, so assigned the number 5 of the vmdk file. Please make sure the NAS system is stopped before following commands.
    The most important thing is the start sector of the partition and it MUST be the same.
    You might not get any error when run the the e2fsck command.

Done!

Now you could enjoy the large space in the NAS system.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: