What units are the output of mdadm -D below (specifically the Array Size and Used Dev Size values)? The answer is Kilobytes (1 byte = 1024 byte) for the number without units orRead More…
DF Speed – Volume fill/empty speed – ddf & ddf-auto & ddf-auto-i scripts
DF speed – Volume fill up speed – ddf & ddf-auto & ddf-auto-i script Need to know how fast in Kilobytes per second or Megabytes per second you mount point or volume isRead More…
SSH SERVER ERROR buffer_get_string_ret and buffer_get_string
SSH error “buffer_get_string_ret: bad string length 13105607” and “buffer_get_string: buffer error” I had no problem connecting via SSH from all my remote locations to my debian server for a long time, butRead More…
Cloning BTRFS drive with gddrescue (command: ddrescue)
On the BTRFS mailing list one of the devs (or smart engineers) posted a different gddrescue script to clone brtfs drives, that should allow for better clones in times of troubles. ItRead More…
Exporting & Importing Winbind User Maps for Samba (for Backup & Restore of User maps)
When you join one linux server to a domain it maps windows SIDs to linux UIDs (for users) and GIDs (for groups). When you join another server to the same domain itRead More…
Resetting the RX/TX and Error Counters on ifconfig
RESETTING THE COUNTERS Lets say you want to reset all of the counters to 0. Given this, we need this: # ifconfig eth0 RC packets:12341234 errors: 0 dropped:0 overruns:0 frame:0 TX packets:61123Read More…
JOBS & PROCESS CONTROL – NOHUP REDIRECTION NOT WORKING WORKAROUND – BUG PERHAPS?
NOHUP REDIRECTION NOT WORKING WORKAROUND – BUG PERHAPS? If your running a script that redirects to files Then you have nohup wrapping that script Showing by Example: Here is the contents ofRead More…
SLABTOP BTRFS DURING MOUNTS
SLABTOP BTRFS DURING MOUNTS ############################# Its intersting to watch the mounts with slabtop and top. Btrfs moutns can take a minute because of the metadata work they do during the mount. ThisRead More…
dd vs fallocate vs truncate – making big files quick
dd and fallocate and truncate to make big files quick ########################################## Every example below will be with creating a 10 gig file. dd will take time, where as fallocate and truncate willRead More…
ddkrescue – kossboss gddrescue script – my favorite way to clone drives
THE SPEECH BEFORE THE SCRIPT tl;dr note you can just skip to the script below if you want This script uses ddrescue (the newer one between gddrescue and ddrescue, so it uses gddrescueRead More…