Posts

Showing posts from 2013

cPanel The MySQL® server is currently offline could not access the MySQL

Please follow the following steps: 1> Try to reset the password to see if the MySQL's password is syncing with the new password. ( http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/ChangeDbPass  & http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/MySQLRoot ) 2> Access the MySQL DB by using the cmd to see if you can access the MySQL DB                MySQL -u root -p 3> In the cPanle, it stores the MySQL's password under /root/.my.cnf. Check the MySQL's password is the same as the current MySQL's password 4> Check the cPanle's log:  /usr/local/cpanel/logs/

SPAM email PHP Plesk

Image
The Originail post is from http://www.uk-cheapest.co.uk/blog/2012/01/how-to-find-an-anonymous-spammer-on-a-plesk-server/   1) Let’s take a look in the mail queue and read one of those spam email references: # /var/qmail/bin/qmail-qread remote ankush_krishna2137@yahoo.com 6 Jan 2012 09:14:53 GMT # 34012584 2987 <anonymous@server.microlite8.com> 2) Now we have a message ID, let’s search for the actual message: # find /var/qmail/queue/ -name 34012584 /var/qmail/queue/info/0/34012584 /var/qmail/queue/remote/0/34012584 /var/qmail/queue/mess/0/ 34012584 3) Great! Now let’s see what’s in the message to get out that all telling UID: # cat /var/qmail/queue/mess/0/ 34012584 Received: (qmail 9936 invoked by uid 10820 ); 6 Jan 2012 09:14:50 +0000 Date: 6 Jan 2012 09:14:50 +0000 Message-ID: <20120106091450.9934.qmail@server.microliteX.com> To: annette@recdom.wandoo.co.uk Subject: Urgent Reply From: Mrs.Farida Waziri <faridawaziri@hotmail.com> 4) Let’s map the UID t

Configure the Oracle ASM Redhat 6.x in the VMware

Image
1> Enabling Virtual Disk Sharing ( http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1034165 ) To configure a shared virtual disk by setting the multi-writer flag: Create a virtual disk to be shared using any acceptable approach. For example, through the vSphere Client: Create a new disk for a virtual machine on a VMFS data store: Select Support clustering features such as Fault Tolerance . This creates the new virtual disk in the required format, eager zeroed thick. Note : ESXi 5.0 provides Thick Provision Lazy Zeroed, Thick Provision Eager Zeroed, and Thin Provision options under Disk Provisioning. Be sure to select Thick Provision Eager Zeroed . Also, note that the documentation may refer to this as Flat pre-initialized. Choose the appropriate Virtual Device Node setting, such as SCSI (1:0). Make a note of it, as it is required later. Note: There are command-line alternatives to perform the previous operation, but t

ssh very useful command

The following must be enabled to make the "ssh remote access without password" work PubkeyAuthentication Yes RSAAuthentication Yes PermitRootLogin Yes

HPUX multipath disk

Run this command to see the multipath disk which is managd by HPUX. (This commmand will show four disks because of the multi-pathes) # ioscan -C disk H/W Path  Class                                        Description ================================================================== 0/0/0/2/0/0/0.0.0                                     disk                HP      LOGICAL VOLUME 0/0/0/5/0/0/0.1.10.0.0.0.1                                        disk    IBM     2810XIV 0/0/0/5/0/0/0.1.170.0.0.0.1                                       disk    IBM     2810XIV 0/0/0/5/0/0/1.2.10.0.0.0.1                                        disk    IBM     2810XIV 0/0/0/5/0/0/1.2.170.0.0.0.1                                       disk    IBM     2810XIV (This command will show one disk because the HPUX takes care of the multipath) # ioscan -kfnNC disk Class     I  H/W Path  Driver S/W State   H/W Type     Description =================================================================== disk      1  64000

IBM VIOS

Please check this page first: http://www.getshifting.com/wiki/aixvios Please do not use cfgassist to assign IP address which never works for me. To assign a IP address, please use this command or use smit: mktcpip -hostname vios -inetaddr 10.10.10.10 -interface en0 -netmask 255.255.0.0 -gateway 10.10.10.1 -nsrvaddr 10.10.10.100 -nsrvdomain company.local -start   To enable the regular AIX shell, please type the following command: oem_setup_env After you are in the regular AIX shell,   To find which NIC has the link: entstat -d en[0-9]   To run the smit: smit   To find out network link info: prtconf to find network card info   # entstat -dt en4 ------------------------------------------------------------- ETHERNET STATISTICS (en4) : Device Type: 10 Gb Ethernet PCI Express Dual Port Adapter (7710008077108001) Hardware Address: 00:c0:dd:15:b8:ec Elapsed Time: 0 days 0 hours 0 minutes 0 seconds Transmit Statistics:                          Receive Stati

AIX Logic Volume

Read the error message creaful to understand where the problem is -- MAX pps per PV is not big enough or MAX LPs 0516-1162 extendvg: The Physical Partition Size of 256 requires the creation of 1300 partitions for hdisk15.  The limitation for volume group oeclconv_vg is 1016 physical partitions per physical volume. Use chvg command with -t option to attempt to change the maximum Physical Partitions per Physical volume for this volume group. 0516-792 extendvg: Unable to extend volume group. # lsvg newsan VOLUME GROUP:       newsan                   VG IDENTIFIER:  00f719f800004c000000013a0813fbf2 VG STATE:           active                   PP SIZE:        512 megabyte(s) VG PERMISSION:      read/write               TOTAL PPs:      575 (294400 megabytes) MAX LVs:            256                      FREE PPs:       2 (1024 megabytes) LVs:                4                        USED PPs:       573 (293376 megabytes) OPEN LVs:           4                        QUORUM:         2 (Enabl

IBM VIOS useful command

After login the server as padmin by ssh Last unsuccessful login: Thu Sep 27 08:23:35 CDT 2012 on ssh from xxxxxx Last login: Wed Feb 13 07:44:04 CST 2013 on /dev/vty0 $ lsmap -all SVSA            Physloc                                      Client Partition ID --------------- -------------------------------------------- ------------------ vhost0          U8233.E8B.0619F8R-V2-C3                      0x00000003 VTD                   vtscsi1 Status                Available LUN                   0x8200000000000000 Backing device        dubua003v02 Physloc                Mirrored              N/A VTD                   vtscsi4 Status                Defined LUN                   0x8100000000000000 Backing device        hdisk9 Physloc               U78A0.001.DNWKG3N-P1-C1-T2-W5001738013B50150-L2000000000000 Mirrored              false VTD                   vtscsi5 Status                Available LUN                   0x8300000000000000 Backing device        hdisk11 Physloc               U

Change P410i from HBA mode to Raid mdoe

fs0:\> dir Directory of: fs0:\   03/07/13  10:44a            1,492,736  0126.bin   03/07/13  10:44a                  953  fwupdate.nsh   03/07/13  10:44a            4,194,304  sandman_578b0.bin   03/07/13  10:44a              452,096  saupdate.efi   12/03/12  10:12a               12,792  .psafe3   03/07/13  10:38a <DIR>          4,096  .Trash-500           5 File(s)   6,152,881 bytes           1 Dir(s) fs0:\> fwupdate.nsh fwupdate.nsh> echo -off ******************************************************************************** ****                                                                        **** ****                        IO CARD FIRMWARE UPDATE                         **** ****            (c) Copyright Hewlett-Packard Company, 2001-2012            **** ****                          All rights reserved.                          **** ****                                                                        **** ****                                         

Solaris Zpool

root@edus008:/rpool # zpool status rpool   pool: rpool  state: ONLINE   scan: resilvered 37.8G in 0h6m with 0 errors on Fri Nov  9 13:37:50 2012 config:         NAME          STATE     READ WRITE CKSUM         rpool         ONLINE       0     0     0           mirror-0    ONLINE       0     0     0             c3t0d0s0  ONLINE       0     0     0             c3t1d0s0  ONLINE       0     0     0 errors: No known data errors root@edus008:/rpool # zpool add -f rpool mirror /dev/dsk/c3t2d0 /dev/dsk/c3t3d0 cannot label 'c3t2d0': EFI labeled devices are not supported on root pools. If root rpool exists, additional devices must be attached; can NOT be added. And pelase use the parition (c0t1d0s0) to attach; not the disk (c0t1d0) root@edus009 # zfs create rpool/woodstock root@edus009 # zfs list NAME                                           USED  AVAIL  REFER  MOUNTPOINT ais_local                                      181K   268G   115K  /ais_local rpool