How to replace an LSI raid disk with MegaCli

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

Check and mark badblocks on ext4 partitions

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

ldappasswd and “ldap_sasl_interactive_bind_s: Invalid credentials (49)” error message

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