Thursday 10 May 2018

Finding “Other Usage” from cPanels Disk Space Usage

If you are trying to track down where your disk space is used up, and you see a lot used by “Other Usage” you can find this by using the following command.

find / -user $USER > /root/list_of_files.txt

Change $USER with the username of the account you are trying to find the files for. This will search the entire server for all files owned by that username, and dump them into a file in /root called list_of_files.txt

Thursday 5 April 2018

Commands to check The HP raid array configuration utility

hpacucli controller slot=0 ld all show

Sample output :

Smart Array P420i in Slot 0 (Embedded)

       array A

          logicaldrive 1 (4.6 TB, RAID 5, OK)
         
hpacucli controller slot=0 show config

Sample output :

Smart Array P420i in Slot 0 (Embedded)    (sn: 5001438025C6B000)

   array A (SAS, Unused Space: 0  MB)


      logicaldrive 1 (4.6 TB, RAID 5, Interim Recovery Mode)

      physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS, 200 GB, OK)
      physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS, 200 GB, OK)
      physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS, 600 GB, OK)
      physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS, 600 GB, OK)

   unassigned

      physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS, 700 GB, OK)

Monday 8 January 2018

Open Cart password reset

To reset the open cart admin area password we can use the script mentioned in the link https://github.com/rmak78/ocreset