網頁

2013年5月1日 星期三

CentOS 6.3 --- why choose yum to install RPM package!

One day, I want to use the LVM utility for configuring logical volume because it is easy to set by GUI. Due to it never is pre-installed on CentOS 6.3, I have to download and install this RPM from Internet so that I choose the RPMfind Mirror site for searching the "system-config-lvm” package.
When we open this Web site, directly click Go directly to the RPM database link
ScreenHunter_03continue to click Search link to launch Search the RPM repository on rpmfind.netScreenHunter_06key in “system-config-lvm” word next to click Search… buttonScreenHunter_17Based on the OS platform and version, select the right rpm file as “system-config-lvm-1.1.12-12.el6.noarch.rpm” and then click this link to download it.ScreenHunter_18After finish file downloading, we have to check and verify this package's signature & integrity so that execute the command as rpm –K <package file> or rpm –checksig <package file> ScreenHunter_07ScreenHunter_05By using the command as rpm –qpR <package file>, we can realize whether this package exist any dependency file that never be installed ScreenHunter_04If we force to install this by using the command as rpm –ivh <package file> , we will also find out what the dependencies need to be installed firstly before install this package.ScreenHunter_02Until now, there are eight dependency files as “gnome-python2” “gnome-python2-bonobo” “gnome-python2-canvas” “gnome-python2-gnome” "pygtk2” “pygtk2-libglade” “urw-fonts” “usermode-gtk”
In the next process, we need to install these files and their dependencies step by step.

To return to the RPMfind Web site, click “system-config-lvm-1.1.12-12.el6.noarch.html” based on its OS version.ScreenHunter_08In Requires session, click gnome-python2 linkScreenHunter_09Based on the OS platform and version, select the right rpm file as “gnome-python2-2.28.0-3.el6.x86_64.rpm” and then click this link for downloading it.ScreenHunter_04To realize this package dependency by using the command as rpm –qpR <package file> and we find out this file without dependency file. (lucky!)ScreenHunter_15When we download the second file as “gnome-python2-bonobo-2.28.0-3.el6.x86_64.rpm” and execute the above command for realizing this package dependency, we find out there are more and more files need to be done the same steps.ScreenHunter_16ScreenHunter_17Its procedure has a little crazy for me if continue to do it manually!
So I decide to use yum localinstall <package file> command for installing the related dependencies automatically.ScreenHunter_39
The result will be very quick and smart to complete the installation including the package and its dependency once.ScreenHunter_03

2013年4月27日 星期六

VMware Workstation 9.x --- Repair virtual disk when disk defragment fail

The behavior of virtual disk is a little like as the physical disk drive that file, program and unused space dose not continue serial arrangement. It will become fragmented in the duration of working so that will influence read/write performance.
For improving this, maybe we need to defrag virtual disk to rearrange the file and program sometimes. So does that the file will be opened quickly or the program run faster than before.

For this sake, I have to first power off VM and then click Edit virtual machine settings to launch the Virtual Machine Settings. When I select the hard disk entry from the Hardware tab and click the Utilities next to select Defragment in menu,ScreenHunter_01a warning message pop up and tell me that “Defragmentation failed: The specified virtual disk needs repair”.ScreenHunter_02Based on this warning sentence, I search the answer from the VMware KB and it is lucky for me to find out How to do it.ScreenHunter_03On the command prompt to run “vmware-vdiskmanager.exe -R “path of the vmdk file”ScreenHunter_04ScreenHunter_06After redo the above operation for defragment, it will successfully complete now.ScreenHunter_08

2013年4月25日 星期四

Hyper-V 3.0 --- Deploy Replica with self-signed certificate (part 10)

Although it is simple and easy to configure Hyper-V Replica that join AD domain, it still exist risk as the data transfer is unencrypt or have not flexibility as the network traffic cannot be in the dedicated line. For improve this, we can replace Kerberos authentication with Certificate based authentication. Drawing6To continue the previous article, I will introduce “Step by Step” to you when we have already apply for the self-signed certificate.

Add a record into hosts fileOn Primary Node
Due to this computer never join AD, we have to modify the hosts file to map hostname to IP address and its value will be the Replica Server information. Of course, it is another method to add this record into DNS server.ScreenHunter_07The “AS-IS” of the name resolutionScreenHunter_06The “TO-BE” of the name resolutionScreenHunter_08On Replica Node
To do the same activity “map hostname to IP address in hosts file” for name resolutionScreenHunter_10
Enable & Configure Replica on Replica NodeIn Hyper-V Manager, select Replica node as “VW-HYPERV-05” next to click Hyper-V Settings… linkScreenHunter_20In Hyper-V Settings, select Replication Configuration Enabled as a Replica server and click Enable this computer as a Replica server check box. In Authentication and ports combo box, enable Use certificate-based Authentication (HTTPS) check box next to click Select Certificate… buttonScreenHunter_21In Windows Security dialog, select one certificate to be used for the authentication next to click OK button.ScreenHunter_22So does that this certificate information will show up in Specify the certificate field.
In Authorization and storage combo box, we will choose Allow replication from the specified servers option next to click Add… button.ScreenHunter_23In Add Authorization Entry dialog, write down the primary server, the default location to store replica files, and the trust group next to click OK button.ScreenHunter_25If the setting is right about Allow replication from the specified servers, click OK button to close this procedure.ScreenHunter_26Suddenly, the alert message will show up and tell us to confirm whether inbound TCP 443 port traffic is allowed in the firewall rule. If no any question, click OK button to complete the Replica setting.ScreenHunter_27
Enable VM Replication on Primary NodeIn Hyper-V Manager, right-click one VM next to select Enable Replication… in menu to launch the Enable Replication wizard.ScreenHunter_49In Before You Begin dialog, click Next > buttonScreenHunter_50In Specify Replica Server dialog, write down Replica server name as “vw-hyperv-05.xxx.mooo.com” next to click Next > buttonScreenHunter_53 In Specify Connection Parameters dialog, click Select Certificate… buttonScreenHunter_54In Windows Security dialog, select one certificate to be used for authentication next to click OK buttonScreenHunter_55So does that the imported certificate will show up. If no any question,click Next > button to go ahead.ScreenHunter_56In Choose Replication VHDs dialog, select some virtual Hard Disks that want to be replicated and click Next > buttonScreenHunter_57In Configure Recovery History dialog, select Additional recovery points option, specify Number of additional recovery points to be stored, enable Replicate incremental VSS copy every check box, and change the frequency to take Volume shadow Copy Service (VSS) incremental snapshots. If the correction is right, click Next > button to go ahead.ScreenHunter_58In Choose Initial Replication Method dialog, click Next > button if the default choice can be accepted.ScreenHunter_59Click Finish button to complete the Enable Replication wizardScreenHunter_60The initial replication will begin to trigger from Primary to Replica server.ScreenHunter_63and the data delivery will go through the dedicated replication path until the replication finish.
On Primary NodeScreenHunter_61ScreenHunter_66
On Replica Node
ScreenHunter_62ScreenHunter_67
Test Failover on Replica Node
For confirming the replicated VM function on Replica server as it locate on the Primary server, we have to execute a test failover before the system will be online or in the duration of maintenance.
In Hyper-V Manager of Replica server, right-click the VM that want to do “test failover” next to select Replication and Test Failover… linkScreenHunter_70In Test Failover dialog, choose a recovery point next to click Test Failover buttonScreenHunter_71So does that a VM with the name as “VW-CENTOS-01 - Test” will be created. To right-click this VM and select Start in menu.ScreenHunter_72The temporary VM will be online and it doesn’t interrupt the ongoing replication & production VM on Primary node.ScreenHunter_73But it have one drawback --- this test VM doesn’t connect to any network by default so that we have to modify the network setting by ourselves.

<<<   Hyper-V 3.0 --- the prerequisite of Replica with self-signed certificate (part 9)
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.