Monday, September 16, 2013

Hyper-V Cluster

Ok... This is my new task after taking my confinement leave.. I almost forget the linux command and windows skill. Huhuhu... But I just need 1 week to recover back my skill... and I think we as human also need DRS (Desaster Recovery System)... So, if anything happen in our brain.. we can restore it back.. huhuhu..

Actually this Hyper-V Cluster is not very hard to do. It is simple if you understand how cluster is working.

The step is same as below refference:

1. Name of the Virtual Switch SHOULD same for both cluster... host1 and host2.
Description: Validate that all specified nodes share the same set of network resource pools and virtual switches.
Gathering information about network resource pools used by servers running Hyper-V.
Node
Network Resource Pools
Virtual Ethernet Switches
host1.contoso.com
'Storage_net', 'Internal_IW', 'Segment250', 'DMZ-SCVMM', 'Client-Management-Network'
host2.contoso.com
'Segment250', 'HP NC373i Multifunction Gigabit Server Adapter #42 - Virtual Switch'

Processing information about network resource pools used by servers running Hyper-V.
Node 'host1.contoso.com' is missing a virtual Ethernet switch 'HP NC373i Multifunction Gigabit Server Adapter #42 - Virtual Switch' that is present on at least one other node. Either remove the virtual Ethernet switch from all nodes or ensure that it is present on all nodes.
Node 'host2.contoso.com' is missing a virtual Ethernet switch 'Client-Management-Network' that is present on at least one other node. Either remove the virtual Ethernet switch from all nodes or ensure that it is present on all nodes.
Node 'host2.contoso.com' is missing a virtual Ethernet switch 'DMZ-SCVMM' that is present on at least one other node. Either remove the virtual Ethernet switch from all nodes or ensure that it is present on all nodes.
Node 'host2.contoso.com' is missing a virtual Ethernet switch 'Internal_IW' that is present on at least one other node. Either remove the virtual Ethernet switch from all nodes or ensure that it is present on all nodes.
Node 'host2.contoso.com' is missing a virtual Ethernet switch 'Storage_net' that is present on at least one other node. Either remove the virtual Ethernet switch from all nodes or ensure that it is present on all nodes.

2. Version error. Then you have to update both server so both have same version. 

Result:
Both host was install with virtual machine, eg: vm_host1.contoso.com at host1.contoso.com and vm_host2.contoso.com at host2.contoso.com. Then, I shutdown the host1.contoso.com. You can see the motion of vm_host1.contoso.com is moving from host1.contoso.com to host2.contoso.com. It is a great result... i guest :) .. Done.. 


Thursday, June 20, 2013

Configure Server NTP Server Windows

  1. Stop the time service
    net stop w32time
  2. Set the manual peer list external servers
    w32tm /config /syncfromflags:manual /manualpeerlist:"asia.pool.ntp.org"
  3. Set the connection as reliable
    w32tm /config /reliable:yes
  4. Start the time service back up
    net start w32time
  5. Test the configururation
    w32tm /query /configuration
  6. Check time source
    w32tm /query /source

Tuesday, April 23, 2013

FreeBSD: Upgrade from 8.2 to 9.0

To check the freebsd version;
#uname -a
-if generic, you can use this step.. :)

You can use this command to upgrade to latest release FreeBSD 9.0:

# freebsd-update -r 9.0-RELEASE upgrade

You might see following error:
The update metadata is correctly signed, but failed an integrity check. Cowardly refusing to proceed any further.

This error indicate that it cannot accept % and @ characters which appear in FreeBSD 9. To overcome this, run following command:

# sed -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update

Now start the upgrade process:

# freebsd-update -r 9.0-RELEASE upgrade

Accept all prompted values and follow the wizard. This process downloads all files and patches required for upgrade so it takes time. You might need to press ‘Enter’ once to check /etc/hosts file. Once complete, run following command to start installing the updates:

To quit from vi:  type :q

Then it will asked you to run /usr/sbin/freebsd_update install 

The system must now be rebooted with the newly installed kernel before the non-kernel components are updated.

# reboot

After the process completed, the system will ask you to build back all your application which installed using ports. Once done, you need to rerun again the above command to complete the upgrade process and you should something like below:

# freebsd-update install 
Installing updates... Done

Your update should be completed now. To check the new version, run following command:
# uname -r 
9.0-RELEASE

BUT.. then my apache cannot start... OHHH NOOO... 

here is the error:
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 105 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: Shared object "libz.so.5" not found, required by "libphp5.so"

Edit this file
# ee /etc/libmap.conf

libz.so.5  libz.so

then... you can restart the apache /usr/local/etc/rc.d/apache22 restart


Monday, April 15, 2013

"Kerberos" authentication failed while trying to access EMC or EMS

My colleague have this problem when she want to access EMC Microsoft Exchange: 


After I check the problem, I could see that she don't have this folder.

C:\Users\{user}\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\server.domain.com

So, I copied mine but she still cannot access.

Then, I go to this folder and delete the Exchange Management Console file.
C:\users\\AppData\Roaming\Microsoft\MMC\Exchange Management Console
Close EMC and reopen it.

And its working... hahaha.. very good... :) 

Thursday, April 4, 2013

Reset Password For Wordpress and VB in Mysql


WORDPRESS
  1. Get an MD5 hash of your password.
  2. Visit md5 Hash Generator, or...
  3. Create a key with Python. or...
  4. On Unix/Linux:
  5. Create file wp.txt with the new password in it (and *nothing* else)
  6. md5sum wp.txt
  7. rm wp.txt
  8. "mysql -u root -p" (log in to MySQL)
  9. enter your mysql password
  10. "use (name-of-database)" (select WordPress database)
  11. "show tables;" (you're looking for a table name with "users" at the end)
  12. "SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (this gives you an idea of what's going on inside)
  13. "UPDATE (name-of-table-you-found) SET user_pass="(MD5-string-you-made)" WHERE ID = (id#-of-account-you-are-reseting-password-for)" (actually changes the password)
  14. "SELECT ID, user_login, user_pass FROM (name-of-table-you-found)" (confirm that it was changed)
  15. (type Control-D, to exit mysql client)

Eg: 
UPDATE `wparb_users` SET `user_pass` = MD5('passwordbaru' ) WHERE `wparb_users`.`user_login` = "admin" 


VBULLETIN

Eg:

UPDATE user set password = MD5(concat(MD5(''), user.salt)) WHERE userid =  

Tuesday, April 2, 2013

CVS is Deprecated at FreeBSD.org (and so is cvsup!)

Today I'm starting doing my server preventive maintenance. I usually using cvsup to update package in FreeBSD and today, I received error:
So, the solution is using portsnap.
Here is the step :
1. Download a compressed snapshot of the Ports Collection
# portsnap fetch
2.When running Portsnap for the first time, extract the snapshot
# portsnap extract
3. cd
-> since it will reset your node point.

Then you can still use the port upgrade command as usual :)

Tuesday, March 26, 2013

Equivalence Dell, HP and IBM


Here is some equivalence spec with different brand:

Dell EqualLogic storage
--> HP P4000 (LeftHand)
--> IBM: none available

Dell PowerVault MD storage
--> HP P2000
--> IBM DS3500

Dell PowerEdge R720 server
--> HP Proliant DL380p G8
--> IBM x3650 M4