diskspace

How to mount my ES data folder to freed filesystem in Mac OS

感情迁移 提交于 2021-01-29 15:09:28
问题 I am running ES locally and have defined path.data in my home dir aka /Users/prerna/es/data but all the time ES complains that high-disk watermark exceeded as shown in below message 2020-09-16 18:16:07,390][INFO ][cluster.routing.allocation.decider] [Karkas] high disk watermark exceeded on one or more nodes, rerouting shards [2020-09-16 18:16:37,393][WARN ][cluster.routing.allocation.decider] [Karkas] high disk watermark [0b] exceeded on [trwvlC3dRUOPYp0QQ9l9GQ][Karkas] free: -1b[100%],

Increase Disk Space on Docker Toolbox

房东的猫 提交于 2020-07-31 07:57:48
问题 I'm trying to start some very large Containers on Docker Toolbox (about 18 GB in total). Unfortunately, I always get the error that there is not enough disk space. I have a 1TB HDD and there are more than 200 GB free. How can I increase the disk space for docker toolbox? 回答1: OK, I finally found the solution: Open Docker Quickstart Terminal, remove the virtual docker-machine and add a new one: $ docker-machine rm default $ docker-machine create -d virtualbox --virtualbox-disk-size "100000"

Increase Disk Space on Docker Toolbox

老子叫甜甜 提交于 2020-07-31 07:57:11
问题 I'm trying to start some very large Containers on Docker Toolbox (about 18 GB in total). Unfortunately, I always get the error that there is not enough disk space. I have a 1TB HDD and there are more than 200 GB free. How can I increase the disk space for docker toolbox? 回答1: OK, I finally found the solution: Open Docker Quickstart Terminal, remove the virtual docker-machine and add a new one: $ docker-machine rm default $ docker-machine create -d virtualbox --virtualbox-disk-size "100000"

How to calculate the total size of certain files only, recursive, in linux

≡放荡痞女 提交于 2020-06-22 07:29:30
问题 I've got a bunch of files scattered across folders in a layout, e.g.: dir1/somefile.gif dir1/another.mp4 dir2/video/filename.mp4 dir2/some.file dir2/blahblah.mp4 And I need to find the total disk space used for the MP4 files only . This means it's gotta be recursive somehow. I've looked at du and fiddling with piping things to grep but can't seem to figure out how to calculate just the MP4 files no matter where they are. A human readable total disk space output is a must too, preferably in GB

integer out of range and remaining disk space too small to convert id to bigint and other solutions

给你一囗甜甜゛ 提交于 2020-01-24 15:04:05
问题 When I insert I am getting integer out of range because my id/primary key was mistakenly created as an int instead of a bigint or bigserial . I tried: ALTER TABLE tbl ALTER COLUMN id TYPE BIGINT; But I get the following error because my free disk space isn't big enough. ERROR: could not extend file "base/16401/3275205": No space left on device HINT: Check free disk space. SQL state: 53100 I can't increase the disk space right now, for frustrating reasons I won't go into. I also tried reusing

How to find the amount of free storage (disk space) left on Android?

旧巷老猫 提交于 2020-01-09 04:39:05
问题 I am trying to figure out the available disk space on the Android phone running my application. Is there a way to do this programmatically? Thanks, 回答1: Try StatFs.getAvailableBlocks. You'll need to convert the block count to KB with getBlockSize. 回答2: Example: Getting human readable size like 1 Gb String memory = bytesToHuman(totalMemory()) /************************************************************************************************* Returns size in bytes. If you need calculate external

How do I monitor the computer's CPU, memory, and disk usage in Java?

☆樱花仙子☆ 提交于 2020-01-08 09:33:13
问题 I would like to monitor the following system information in Java: Current CPU usage** (percent) Available memory* (free/total) Available disk space (free/total) *Note that I mean overall memory available to the whole system, not just the JVM. I'm looking for a cross-platform solution (Linux, Mac, and Windows) that doesn't rely on my own code calling external programs or using JNI. Although these are viable options, I would prefer not to maintain OS-specific code myself if someone already has

Is there a way to determine the amount of disk space an app has used in iOS?

≡放荡痞女 提交于 2020-01-06 02:31:20
问题 I've seen many posts about how to get the amount of free space the iOS device has, or how much free space the iOS device has, but is there a way to determine how much space the app itself has used? (Including the app itself and all of its resources/documents/cache/etc). This would be the same value that can be seen in Settings->General->iPhone Storage. 回答1: I ended up figuring out how to do this: I created a category on NSFileManager and added: -(NSUInteger)applicationSize NSString *appgroup

System.IO.DriveInfo returns wrong disk space values

£可爱£侵袭症+ 提交于 2020-01-04 19:48:48
问题 UPDATE : This issue doesn't appear on Android devices I've tested. It returns good values. Would really appreciate any pointers on this matter. I am having trouble getting the correct AvailableFreeSpace values from my Mac desktop computer. I am working with Unity3D C#, and am using the following code : DriveInfo[] drives = DriveInfo.GetDrives(); foreach(DriveInfo drive in drives) { if (drive.IsReady) { Debug.Log(drive.Name); Debug.Log(drive.AvailableFreeSpace); Debug.Log(drive.TotalFreeSpace)

best disk saving strategy for “replacement inserts”

柔情痞子 提交于 2020-01-04 05:37:16
问题 Every day I delete hundreds of thousands of records from a large table, then I do some calculations (with new data) and replace every one of the records that I previously deleted. I thought doing regular vacuum tbl would do the trick. I know it doesn't return disk space to the server, but (because of the pg docs) I thought because I was inserting about as many records as I was deleting, I wouldn't loose any/much disk space. However, after moving the table to a different namespace (for an