Radu, thank you for helping me with this problem! My beloved power distribution company had always have problems. It is common thing to have a power outage up to half an hour every few weeks. Lately however, the problems increased in rate and gravity. I don’t know exactly what happened last time, but there were 2 … Continue reading mdadm refuses to re-add failed member →
The MegaCli64 command has a lot of command line switches and the syntax is also cryptic. If you have identified a failed, or failing disk, it is possible to replace it using the MegaCli utility. The following commands I found useful when trying to physically identify a failed disk and replace it. IMPORTANT NOTE: Make sure the array is … Continue reading How to replace an LSI raid disk with MegaCli →
My storage is acting weird today and I’m trying to fix it with this command: [codesyntax lang=”bash”] fsck.ext4 -vcDfty -C 0 /dev/vg0/lv0 [/codesyntax] And the result was: /dev/vg0/lv0: ***** FILE SYSTEM WAS MODIFIED ***** 6329 inodes used (0.01%, out of 107380736) 44 non-contiguous files (0.7%) 4 non-contiguous directories (0.1%) # of inodes with ind/dind/tind blocks: … Continue reading Check and mark badblocks on ext4 partitions →
At some point I counted my DROP rules in my firewall and the result was kinda frightening. A lot of subnets and even more IPs… What was really annoying was that there were a lot of IP addresses which belonged to an already blocked subnet, so I needed a script to check this for me. … Continue reading Check if an IP is in a subnet →
I won’t bore you with the details, so let’s just say that for some reason I don’t have the owncloud admin password anymore. I have spend lots of time on owncloud forum and found few more solution. In my point of view the below one is very simple and effective. Get the passwordsalt [codesyntax lang=”bash”] … Continue reading Owncloud: How to reset users’ password →
Some context might be useful. We have an openldap instance to manage users. We also have phpLDAPadmin, but that’s not the point. The point is that I want to add/edit an user from command line. Adding a user it not a problem. [codesyntax lang=”bash”] ldapadduser john.doe users Warning : using command-line passwords, ldapscripts may not be … Continue reading ldappasswd and “ldap_sasl_interactive_bind_s: Invalid credentials (49)” error message →
Recently we bought a FortiGate-200D VPN box. I have more good things than bad things to say about this device. Long story short. I had to remove some users and because of some voodoo type of problem I couldn’t do it from UI (I will contact their support that’s for sure), so I had to … Continue reading FortiGate-200D VPN users and groups operations →
I can't memorize much, so I take notes!