Knowledgebase
Manually re-sizing the file system or data volume
Posted by Carlos Zavala on 10 March 2014 10:21 AM

In a special case, it might happen that an expand capacity finish successfully, but didn't re-size the file system due to an interruption of the power supply or some application in the background running. The total capacity is not what you were expecting and file system re-sizing need to be done manually. To do this you can follow the steps below:

 

  1. Connect via SSH to the NAS with Putty  (use admin user)
  2. Run [~] # df and [~] # mdadm -D /dev/md0 and which will show you the difference between /dev/md0 and Array Size (this is to check and confirm the mismatch)
  3. Run file system check:
    • Stop services: [~] # /etc/init.d/services.sh stop
    • Unmount data volume: [~] # umount /dev/md0
    • Check the file system: [~] # e2fsck -f /dev/md0
  4. Re-size the file system: [~] # resize2fs /dev/md0
  5. Mount the data volume: [~] # mount /dev/md0 /share/MD0_DATA/ -t ext4
  6. Check /dev/md0 size again to see volume resized: [~] # df
  7. Start services: [~] # /etc/init.d/services.sh start
  8. Reboot the NAS (optional): [~] # reboot

The file system/volume size should be expanded accordingly and operational.

 

Note: for firmwares below 4.0.5. md0 is the first data volume or block device, e2fsck_64 for Intel-based NAS. Step 2 is to confirm the mismatch, make sure there is one.

 

 



Attachments 
 
 file system resize.jpg (322.11 KB)
(12 vote(s))
Helpful
Not helpful

Comments (0)