diskspace

Trying to resize2fs EB volume fails [closed]

时光毁灭记忆、已成空白 提交于 2019-12-03 05:39:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have a 200GB EBS volume and am trying to increase the space available. I followed the instructions on: http://www.hellersoftware.com/2012/resize-ebs-volume-attached-to-amazon-web-services-ec2-instance/ and managed to create a snapshot and create a new EBS based on that snapshot. Everything is peachy, except

Get available diskspace in ruby

帅比萌擦擦* 提交于 2019-12-03 05:34:22
What is the best way to get diskspace information with ruby. I would prefer a pure ruby solution. If not possible (even with additional gems), it could also use any command available in a standard ubuntu desktop installation to parse the information into ruby. dkam You could use the sys-filesystem gem (cross platform friendly) require 'sys/filesystem' stat = Sys::Filesystem.stat("/") mb_available = stat.block_size * stat.blocks_available / 1024 / 1024 How about simply: spaceMb_i = `df -m /dev/sda1`.split(/\b/)[24].to_i where '/dev/sda1' is the path, determined by simply running df (Ruby)

What is the unix command to see how much disk space there is and how much is remaining?

雨燕双飞 提交于 2019-12-03 04:45:51
I'm looking for the equivalent of right clicking on the drive in windows and seeing the disk space used and remaining info. Look for the commands du (disk usage) and df (disk free) Use the df command: df -h df -g . Option g for Size in GBs Block and . for current working directory. Paulo Delgado I love doing du -sh * | sort -nr | less to sort by the largest files first German If you want to see how much space each folder ocuppes: du -sh * s – summarize h – human readable * – list of folders Note: The original question was answered already, but I would just like to expand on it with some extras

How to solve jenkins 'Disk space is too low' issue?

末鹿安然 提交于 2019-12-03 04:44:16
问题 I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours? 回答1: You can easily change the threshold from jenkins UI (my version is 1.651.3): [ ] Update: How to ensure high disk space This feature is meant to prevent working on slaves with low free disk space. Lowering the threshold would not solve the fact that some jobs do not

Postgresql find total disk space used by a database

浪子不回头ぞ 提交于 2019-12-03 02:03:52
I have more than 50 databases hosted in my postgresql server. I need to move some of them on another host, to free-up some disk space,but how can I measure the disk-space used by each database on my volume? Is there any function exists to get the information that I want? SELECT pg_database_size('geekdb') or SELECT pg_size_pretty(pg_database_size('geekdb')) http://www.thegeekstuff.com/2009/05/15-advanced-postgresql-commands-with-examples/ You could use postgresql Meta-Commands: \l would list databases \l+ extends list with Size, Tablespace, Description. Use \? to get full list of meta-commands.

MacOS Xcode CoreSimulator folder very big. Is it ok to delete content?

允我心安 提交于 2019-12-03 00:01:31
问题 My ~/Library/Developer/CoreSimulator/Devices folder is 26 Gb in size. Is it safe to just delete all the content? Will those files be automatically regenerated? 回答1: Try to run xcrun simctl delete unavailable in your terminal. Original answer: Xcode - free to clear devices folder? 回答2: That directory is part of your user data and you can delete any user data without affecting Xcode seriously. You can delete the whole CoreSimulator/ directory. Xcode will recreate fresh instances there for you

Amazon EC2 and EBS disk space problem

喜欢而已 提交于 2019-12-02 22:03:06
I am having a problem reconciling the space available on my EBS volume. According to the AWS console the volume is 50GB and is attached to an instance. If I ssh to this instance and do a df -h, I get the following output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 13G 3.0G 81% / udev 858M 76K 858M 1% /dev none 858M 0 858M 0% /dev/shm none 858M 72K 858M 1% /var/run none 858M 0 858M 0% /var/lock none 858M 0 858M 0% /lib/init/rw I am pretty new to AWS. I interpret this as "there is a device attached and it has 15GB capacity. Whats more, you're nearly out of space!" Can anyone point

Easiest way to simulate no free disk space situation?

馋奶兔 提交于 2019-12-02 21:56:14
I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app). Indeed, temporarily prohibiting disk writes to a process must be enough. What’s the easiest way to do this? I’m using Mac OS X 10.6.2 with built-in Apache/PHP bundle. Thanks. Edit : Disk free space check is not going to be reliable since it can change any moment. Many pages are being served

TFS creates a $tf folder with gigabytes of .gz files. Can I safely delete it?

妖精的绣舞 提交于 2019-12-02 20:02:50
I am using visual studio 2012 with Microsoft TFS 2012. On the workspace that is created on my c: drive, a hidden folder $tf is created. I suspect TFS from creating this folder. It's lurking diskspace as the current size is several gigabytes now and it's about 25% diskspace of the total amount of gigabytes needed for the complete workspace. So this hidden $tf folder is quite huge. The structure is like this: c:\workspace\$tf\0\{many files with guid in filename}.gz c:\workspace\$tf\1\{many files with guid in filename}.gz Does anyone know if I can delete this $tf folder safely or if it is

How to solve jenkins 'Disk space is too low' issue?

北城余情 提交于 2019-12-02 17:55:45
I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours? You can easily change the threshold from jenkins UI (my version is 1.651.3): [ ] Update: How to ensure high disk space This feature is meant to prevent working on slaves with low free disk space. Lowering the threshold would not solve the fact that some jobs do not properly cleanup after they finish. Depending on what you're building: Make sure you understand what is the