Category: Network & Server (網絡及服務器)

No GUI and SSH login on console, only [sda] Assuming drive cache: write through

By admin, October 11, 2017 13:05

Today I found out one of the CentOS 7-1611 VMs has no GUI available and also there is no SSH login at the console.

Worst the screen indicates “[sda] Assuming drive cache: write through”, seems it’s hang at startup.

In fact it’s working fine, then I SSH into the server remotely, and issue “systemctl set-default multi-user.target” which set the default login interface to be texted based SSH login, the SSH login screen appears after the reboot.

systemctl isolate multi-user.target to return to command mode
systemctl isolate graphical.target  to return to graphical mode

Somehow, systemctl isolate graphical.target turns the screen into blank, still have no idea what’s causing this, nor startx works.

Finally, the vCenter VM Guest OS status changed from CentOS 4/5 64 bits to Other (32-bit) automatically everything after reboot, anyone knows why? Pls drop me a line, thx.

IIS6對中文路徑或文件名支持問題解決

By admin, October 10, 2017 14:24

默認情況下,無論是IIS6對中文路徑或文件名支持的不是很好,主要表現為:圖片中含有中文路徑顯示無法找到网頁;含有中文的文件直接使用IE下載的時候出現無法找到的錯誤等等。

解決方法:

打開注冊表中的HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters\,
新增的FavorDBCS設置為0,然后重啟IIS。

WannaCry Hot Fix for Windows XP!

By admin, June 7, 2017 16:17

Definitely a big surprise from M$ to release a hotfix for WannaCry for all their EOL products!

wc

When Dell Runs Out of Stock

By admin, June 1, 2017 19:10

This is what my friends showed to me recently.

When Dell ran out of Equallogic disks (15K RPM, 600GB 3.5″ SAS), they supplied him with this alternative solution.

A 2.5″ 15K RPM, 600GB SAS!

IMG-20170602-WA0005

IMG-20170528-WA0003

This is how it fits into the original 3.5″ tray, seems the tray is a revised version with 4 new holes on the back in order to fit that 2.5″ SAS disk.

IMG-20170528-WA0004

IMG-20170602-WA0002

Running Multiple PHP Versions on Windows Server

By admin, May 25, 2017 00:33

The trick is to create an extra environment variable PHPRC and point to the specific PHP version directory that contains php.ini.

* DO NOT put an extra \ at the end, ie, C:\Program Files (x86)\PHP 7.1.5 is the correct form without the ending \.

* Make sure you downloaded the Non-Thread Safe x86 version for PHP release

php

Extra Note:

For FastCGI on Windows Server 2003, the last supported binary Non-Thread Safe x86 version of PHP is 5.4.9. (ie, php-5.4.9-nts-Win32-VC9-x86.zip)

PHP Security Recommendations

By admin, May 19, 2017 13:09

The following settings can be used to tighten the security of a PHP installation. To make the recommended changes, locate and open the php.ini file and edit the configuration settings as described below:

Setting Description
allow_url_fopen=Off allow_url_include=Off Disable remote URLs for file handling functions, which may cause code injection vulnerabilities.
register_globals=Off Disable register_globals.
open_basedir=”c:\inetpub\” Restrict where PHP processes can read and write on a file system.
safe_mode=Off safe_mode_gid=Off Disable safe mode.
max_execution_time=30 max_input_time=60 Limit script execution time.
memory_limit=16M upload_max_filesize=2M post_max_size=8M max_input_nesting_levels=64 Limit memory usage and file sizes.
display_errors=Off log_errors=On error_log=”C:\path\of\your\choice” Configure error messages and logging.
fastcgi.logging=0 The IIS FastCGI module will fail the request when PHP sends any data on stderr by using the FastCGI protocol. Disable FastCGI logging to prevent PHP from sending error information over stderr and generating 500 response codes for the client.
expose_php=Off Hide the presence of PHP.

CentOS 7 NIC is “Off” after reboot

By admin, May 15, 2017 21:43

Got a surprise today! It turns out this is the default policy for the new CentOS, all you need is to modify /etc/sysconfig/network-scripts/ifcfg-eth0 and change ONBOOT=no to ONBOOT=yes. In additional Static IP setups would need to set BOOTPROTO=static.

How to Clear a Equallogic RAID label via a CLI command

By admin, April 24, 2017 12:24

GrpName> mem sel <member name> disk select 0

GrpName(member_MEMBERNAME disk_0)> ?

clear-label          - Clears the label on the selected disk if the disk contai

Just make DOUBLE sure you have the correct drive number.  Remember first drive number is ZERO (0) not one (1).

You can issue it as one command.  mem sel membername disk select <number> clear-label

However, I prefer to select the drive first.  Then do a “show” to make sure it’s the disk I want.

show

______________________________ Disk Information _______________________________

Slot: 0                                Status: spare

Model: ST900MM0006                     Revision: LE09

Size: 838.36GB                         Errors: 0

Rpm: 10000                             SectorSize: 512

Health: ok

What’s New in VMware vSphere 6.5?

By admin, November 4, 2016 14:11

After almost 6 years since the release of ESX 4.1 in Aug 2010, vSphere 6.5 has finally arrived. However imoo, I would still prefer to call it ESX 4.5 at max as there are not much new and useful  features added to be honest.

vCenter Server Appliance 6.5 (VCSA) is probably the most interesting one as it comes with native high availability, so no more worry about that single point of failure.

Other than that, I bet most of the 99% out there won’t really find those so called new feature useful in their daily operation.

In additional, seems there is no major change in VMware’s licensing model, remember that horrible vRAM tax back in 2012? :)

Finally, I am looking for Total SSD storage solution recently, and my eyes are on Pure Storage, but why their stock PSTG is dropping like hell?

vSphere-6.5-Whats-New-2

Virtualization came-in and changed everything!

By admin, November 2, 2016 12:36

Come across this photo of my previous project today, can’t believe it’s almost 10 years already!…Used to setup a lot of cables, servers and network equipment before.

Then Virtualization came-in and changed everything, now with just after a few mouse clicks you have all the pieces ready in the photo, everything is software defined…well, at least it’s much more Eco-friendly for data center environment nowadays, and most importantly virtualization made my life much easier finally! (The answer is VMW if you know what I mean)

14940189_10205556792639017_27051369326164148_o

Pages: 1 2 3 4 5 6 7 8 9 10 ...24 25 26 Next