Cant clear disk space

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
orhayun
New here
Posts: 2
Joined: Sun Feb 01, 2015 9:48 pm

Cant clear disk space

Post by orhayun »

Hi,
I deleted old data to clear some dick space, but still when i connect to the administration portal i see the disk space hasn't changed.
Also from the server no matter what i delete, the disk space would not change.
I tried to restart the qnap but no luck. I took control on this qnap from previous owner.
Any help?
kherr4377
Been there, done that
Posts: 898
Joined: Mon Jun 03, 2013 3:33 am

Re: Cant clear disk space

Post by kherr4377 »

Look under <Storage Manager> <Volumes>
Production :
TVS-673 4.3.4 0387
4 X 3TB WD RED : 1 X 4TB HGST DESKSTAR R5
32GB
LAN-10G1SR-D, FiberHal for Cisco SFP-10G-SR
NETGEAR ProSAFE SS3300-28X

Backup :
TS-469L 4.3.4 0387
4 X 3TB WD RED R5
3GB
Located detached garage .. cheap offsite solution ...

2nd TS-469L awaiting drives and reassignment for front-line duty .......
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Cant clear disk space

Post by pwilson »

orhayun wrote:Hi,
I deleted old data to clear some dick space, but still when i connect to the administration portal i see the disk space hasn't changed.
Also from the server no matter what i delete, the disk space would not change.
I tried to restart the qnap but no luck. I took control on this qnap from previous owner.
Any help?
That stupid pie-chart only gets updated once per day. (It's useless information if it isn't "real-time" data).

You can check diskspace from the command line of the NAS. Access your NAS via SSH, login as "admin" and run:

Code: Select all

df -h | grep -v qpkg
For example from my NAS:

Code: Select all

df -h | grep -v qpkg
Filesystem                Size      Used Available Use% Mounted on
none                    200.0M    143.9M     56.1M  72% /
devtmpfs                  3.8G      8.0k      3.8G   0% /dev
tmpfs                    64.0M      2.9M     61.1M   5% /tmp
tmpfs                     3.8G     32.0k      3.8G   0% /dev/shm
/dev/md9                509.5M    132.7M    376.8M  26% /mnt/HDA_ROOT
/dev/mapper/cachedev1     8.1T      5.4T      2.7T  67% /share/CACHEDEV1_DATA
/dev/sde1               465.8G    213.3G    252.4G  46% /share/external/DEV3302_1
/dev/md13               371.0M    289.2M     81.8M  78% /mnt/ext
tmpfs                     8.0M         0      8.0M   0% /var/syslog_maildir
tmpfs                    25.0M      4.0k     25.0M   0% /run

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
AdrianW
Know my way around
Posts: 249
Joined: Thu Jul 10, 2008 6:17 pm

Re: Cant clear disk space

Post by AdrianW »

After you've deleted some data (and emptied the recycle bin if you have it enabled) - go to "Shared Folders" and click the green refresh button for each share. This will update the size column and the pie chart immediately.
TS-853 Pro; TS-859 Pro; TS-409
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Cant clear disk space

Post by pwilson »

AdrianW wrote:After you've deleted some data (and emptied the recycle bin if you have it enabled) - go to "Shared Folders" and click the green refresh button for each share. This will update the size column and the pie chart immediately.
If you do it at the command line, it is always "real time" data. Yes you have a choice, you can continue to do it the hard way if you can't handle the command line. :DD

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
AdrianW
Know my way around
Posts: 249
Joined: Thu Jul 10, 2008 6:17 pm

Re: Cant clear disk space

Post by AdrianW »

Why stuff around with a command line when there's a nice GUI.
TS-853 Pro; TS-859 Pro; TS-409
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Cant clear disk space

Post by pwilson »

AdrianW wrote:Why stuff around with a command line when there's a nice GUI.
Because it is faster, more informative, and usually provides "useful" errors if something is wrong. Also WebUI's change over time but the underlying commands typically stay the same. I've been using "df -h" for over 25 years. UNIX, Xenix, and Linux all support this command. I suspect that OS X probably supports it too.

Windows users can install Cygwin on their machines if they want the same functionality. :lol:

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
orhayun
New here
Posts: 2
Joined: Sun Feb 01, 2015 9:48 pm

Re: Cant clear disk space

Post by orhayun »

Ok thank you very mush guys very helpful stuff.
AdrianW
Know my way around
Posts: 249
Joined: Thu Jul 10, 2008 6:17 pm

Re: Cant clear disk space

Post by AdrianW »

pwilson wrote: df -h | grep -v qpkg
Just plain "df" is enough on my system (I don't have any packages installed so I don't need to exclude those from the listing, and the "-h" option appears to do nothing).
TS-853 Pro; TS-859 Pro; TS-409
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Cant clear disk space

Post by pwilson »

AdrianW wrote:
pwilson wrote: df -h | grep -v qpkg
Just plain "df" is enough on my system (I don't have any packages installed so I don't need to exclude those from the listing, and the "-h" option appears to do nothing).

Code: Select all

df --help
BusyBox v1.01 (2015.01.25-18:18+0000) multi-call binary

Usage: df [-hmkc] [FILESYSTEM ...]

Print the filesystem space used and space available.

Options:
	-c	correct formatting error

	-h	print sizes in human readable format (e.g., 1K 243M 2G )
	-m	print sizes in megabytes
	-k	print sizes in kilobytes(default)


Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
AdrianW
Know my way around
Posts: 249
Joined: Thu Jul 10, 2008 6:17 pm

Re: Cant clear disk space

Post by AdrianW »

Must default to human readable format then - here's the output from "df" :

Code: Select all

[~] # df
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                945.8M      4.0k    945.8M   0% /dev
tmpfs                    64.0M      5.5M     58.5M   9% /tmp
tmpfs                   950.8M         0    950.8M   0% /dev/shm
/dev/md9                509.5M    121.4M    388.1M  24% /mnt/HDA_ROOT
/dev/mapper/cachedev1    32.5T     10.5T     22.1T  32% /share/CACHEDEV1_DATA
/dev/md13               364.2M    286.4M     77.8M  79% /mnt/ext
tmpfs                    32.0M         0     32.0M   0% /.eaccelerator.tmp
[~] #
TS-853 Pro; TS-859 Pro; TS-409
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Cant clear disk space

Post by pwilson »

AdrianW wrote:Must default to human readable format then - here's the output from "df" :

Code: Select all

[~] # df
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                945.8M      4.0k    945.8M   0% /dev
tmpfs                    64.0M      5.5M     58.5M   9% /tmp
tmpfs                   950.8M         0    950.8M   0% /dev/shm
/dev/md9                509.5M    121.4M    388.1M  24% /mnt/HDA_ROOT
/dev/mapper/cachedev1    32.5T     10.5T     22.1T  32% /share/CACHEDEV1_DATA
/dev/md13               364.2M    286.4M     77.8M  79% /mnt/ext
tmpfs                    32.0M         0     32.0M   0% /.eaccelerator.tmp
[~] #
Quite possible. It is Busybox, rather than the "real" GNU version of "df", so anything is possible. I wish QNAP would eradicate Busybox from the Firmware completely. Busybox makes sense on small embedded Linux devices with very little storage, for example Routers, but it is useless to provide it on Storage devices that usually have terabytes of available storage, and can therefore support the "real" binaries.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
Post Reply

Return to “System & Disk Volume Management”