Tag Info

New answers tagged

0

Another solution is to prevent that the reports are stored on the disk and restrict the storage to the database by removing store from the puppet.conf: reports = puppetdb Is is possible to change the number of days that Puppet-reports are stored in PuppetDB: report-ttl Automatically delete reports that are older than the specified amount of time. You ...


1

According to the kernel.org RAID wiki: After the new disk was partitioned, the RAID level 1/4/5/6 array can be grown that is, RAID-0 is not eligible for growing. You will need to backup all the data, recreate the array from scratch, and restore from backups.


0

find /proc/*/fd -ls 2> /dev/null | grep '(deleted)' Find all opened file descriptors. Grep deleted. StdError to /dev/null Output: 160448715 0 lrwx------ 1 user user 64 Nov 29 15:34 /proc/28680/fd/113 -> /tmp/vteT3FWPX\ (deleted) Or you can use awk find /proc/*/fd -ls 2> /dev/null | awk '/deleted/ {print $11}'; awk ...


1

Extending on Iain's script with a faster version for working with a large number of files. #!/bin/bash ftypes=$(find . -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq) for ft in $ftypes do echo -ne "$ft\t" find . -name "*${ft}" -exec du -bcsh '{}' + | tail -1 | sed 's/\stotal//' done


0

from du(1) (man page): -P, --no-dereference don't follow any symbolic links (this is the default) -x, --one-file-system skip directories on different file systems


2

du --max-depth=1 -x should do the trick. Option -x means not to follow other file-systems.



Top 50 recent answers are included