The quick way to adjust it is to follow the steps listed in this blog
Basically is
rmmod megaraid_sas
modprobe megaraid_sas max_sectors=2048
Please take note that the unit is in sector. If sector size is 512 bytes, setting 2048 is equivalent to 1024kb.
If your boot drive is also from Megaraid card, you will not be able to rmmod as the system will complaint it is in use. In that situation, you need to create a file call megaraid_sas.conf in /etc/modprobe.d with the following contents
options megaraid_sas max_sectors=2048
After that, you need to generate a new initramfs.
Backup your existing initramfs file (take note you have to find the correct img for your kernel version)
mv initramfs-2.6.32-220.el6.x86_64.img initramfs-2.6.32-220.el6.x86_64.img.bk
Create the new initramfs file
dracut initramfs-2.6.32-220.el6.x86_64.img 2.6.32-220.el6.x86_64
After that reboot your system and your max_hw_sectors_kb should show 1024 and you can increase your max_sectors_kb to the maximum 1024.
Wednesday, April 17, 2013
Wednesday, April 10, 2013
Reuse PC Power Supply
To reuse PC power supply without motherboard, you have to short 2 pins on the 24 pin ATX power connector which is the connector that connect to your motherboard. To know which pin to connect together, you can refer to this site which has a detailed pin layout.
As shown in the diagram below, you need to short pin 16 (power Supply On) and pin 17 (Ground) together and this have to stay there as long as you want to use the power supply. Please take note that there are few other ground pins and i choose pin 17 is for convenient.
Tuesday, April 9, 2013
Xrdp not working on CentOS 6.2
If you install Xrdp (xrdp-0.5.0-0.13.el6.x86_64.rpm) on CentOS 6.2 without any update. You might face the following problem when you try to RDP to your Linux machine.
And when you check your error log (/var/log/xrdp-sesman.log), you find the following
[20130410-09:39:03] [WARN ] [init:45] libscp initialized [20130410-09:39:03] [CORE ] starting sesman with pid 4374 [20130410-09:39:03] [INFO ] listening... [20130410-09:40:15] [INFO ] scp thread on sck 7 started successfully [20130410-09:40:16] [INFO ] ++ created session (access granted): username root, ip 10.217.242.65:2137 - socket: 7 [20130410-09:40:16] [INFO ] starting Xvnc session... [20130410-09:40:25] [ERROR] X server for display 10 startup timeout [20130410-09:40:25] [INFO ] starting xrdp-sessvc - xpid=4841 - wmpid=4840 [20130410-09:40:26] [ERROR] X server for display 10 startup timeout [20130410-09:40:26] [ERROR] another Xserver is already active on display 10 [20130410-09:40:26] [DEBUG] aborting connection... [20130410-09:40:26] [INFO ] ++ terminated session: username root, display :10.0 , session_pid 4839, ip 10.217.242.65:2137 - socket: 7
You can try to solve this problem by doing update on your OS. And if that is not the option, because you have certain driver that will not work with the updated OS. You can choose to update these 2 packages:
yum install pixman libXfont
After updating these 2 packages, restart your xrdp service
service xrdp restart
In my case, these updates solve my problem.
Friday, February 15, 2013
Connect-VIServer -- Network Connectivity Error
If you are using Connect-VIServer from vSphere PowerCLI to connect to your vCenter but you encounter network connectivity error, this might be caused by Tomcat server in your vCenter is not running.
To solve this problem, we need to start Tomcat service in your vCenter.
Click on Monitor Tomcat
And you can start the service through the Tomcat icon in the system tray.
After that, you should be able to connect to your vCenter using Connect-VIServer
Labels:
connect-viserver,
tomcat,
vcenter,
VMware,
vsphere powercli
Wednesday, February 6, 2013
Bad Font Rendering in Adobe Reader
Most of the time i use Adobe Reader to read pdf files and i always find the font rendering very bad as shown below. This example is very bad as there are some bold texts in those paragraph but i seen none at all.
After looking through the preference settings, then i realize that there is one setting that i never set properly. To go to this setting, you first go to "Preferences"
So i change it and set it to "For Laptop/LCD screens"
And the end result, finally a smooth rendering text and bold text is obvious. :)
After looking through the preference settings, then i realize that there is one setting that i never set properly. To go to this setting, you first go to "Preferences"
And on the Preferences window, go to Page Display and look for Rendering section. As you can see, under Smooth Text, my setting is "none"
And the end result, finally a smooth rendering text and bold text is obvious. :)
Wednesday, December 12, 2012
SuperMicro X9DRH-7TF with 836BE16-R920B chassis
16 disk slots for 3.5" disk
A very neat design where there are 2 more disk slots for 2.5" disk at the back. The board also has 2 10GBase-T ports.
With Cover and fans, support 2 CPUs and 16 DIMMs
1 x PCIe 3.0 x16 (Occupied by the LSI card) and 6 x PCIe 3.0 x8. Also can see the 8 SATA2 ports and 2 SATA3 ports. The board also contain 2 SFF 8087 ports for 8 more SAS2 connections.
Backplane model: BPN-SAS2-836EL1. This is a backplane with expander chip. With only 1 SFF 8087 cable, you can access all the disks. Is an oversubscribe solution but should have more than enough bandwidth (2400MB/s) for fully populate disks (except maybe will face congestion with 6 or more SSDs).
Thursday, November 22, 2012
Package 'make' has no installation candidate
If you encounter the message stated on the title post when you try to install make on your Ubuntu server as shown below:
There is a possibility that your source is down and this is what happen to me when i do sudo apt-get update
abc@abc:/etc/apt$ sudo apt-get install make Reading package lists... Done Building dependency tree Reading state information... Done Package make is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'make' has no installation candidate
There is a possibility that your source is down and this is what happen to me when i do sudo apt-get update
As you can see there are a lot of "Gateway Timeout" message. So to solve this, i have to manually change the source from sg.archive.ubuntu.com to source like us.archive.ubuntu.com.
Open this file, /etc/apt/sources.list and replace all the sg.archive.ubuntu.com to us.archive.ubuntu.com. After that, do the sudo apt-get update and if the source is workable, you should not see any error messages as shown below:
And now i can install make without problem
abc@abc:/etc/apt$ sudo apt-get install make Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: make-doc The following NEW packages will be installed: make 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 119 kB of archives. After this operation, 324 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main make amd64 3.81-8.1ubuntu1.1 [119 kB] Fetched 119 kB in 3s (36.6 kB/s) Selecting previously unselected package make. (Reading database ... 84546 files and directories currently installed.) Unpacking make (from .../make_3.81-8.1ubuntu1.1_amd64.deb) ... Processing triggers for man-db ... Setting up make (3.81-8.1ubuntu1.1) ...
Subscribe to:
Posts (Atom)









