Posts

Showing posts from August, 2011

Viewing directory listing

In Linux/Unix, sometimes we have to view only directory listing i.e. we have to view only the directories not files, this can be done by using the command -bash-3.00# ls -l | egrep ^d

Blocking Mass Storage in Linux

To Disable MASS Storage in Linux based distro's 1. Unmount the USB device if it is already plugged in [root@centos ~]#umount /dev/sdb #Device name may differ in your case 2. Remove the module [root@centos ~]# modprobe -r usb_storage 3. Edit /etc/modprobe.d/blacklist.conf and append blacklist usb_storage Save the file. Now when USB PIN Drive is plugged in, the hotplug scripts will no load it automatically.

IPS (Image Packaging system) in Solaris 10

Centralized package delivery is always considered to be a great feature of any OS. For Centralized Package Management Sun have a nice solution in OpenSolaris in the form of Image Packaging System (IPS), still this is not ready yet available for Standard Solaris and also SUN has stopped supporting the further development of Open Solaris. In Case of Standard Solaris IPS is truly & purely a feature of Oracle Solaris 11. In Oracle Solaris 10 we can use some tools to get this functionality but in case of production it is somewhat questionable. In Solaris package installation has has always been a daunting task but now there are some solution giving IPS functionality which are 1.OpenCSW. 2.Blastwave Both the the above mentioned camps are delivering the same packages to the same disk hierarchy, I am going to mention the procedure to use both of these. Using OpenCSW To get IPS functionality using OpenCSW in Oracle Solaris 10 follow the below steps. To download the package Go

Playing with Solaris Zones

Solaris has operating system level virtualization so you can run only solaris in virtual hosts as it uses the same copy of kernel used by parent OS. It is very fast and it is observed that only 1-3% of overhead degradation is caused. Zones   There are two types of zones. 1. Global/parent Zones (base OS) 2. Non-global Zones 1. One machine can have 8192 zones 2. Zones  don't have graphics 3. Zones are not installed from DVD or from some installation media these are installed from parent OS. 4. Usually we don't run instances/services on Global zone as if global zone is down all the non-global zones are down as well. There are two types of non-global zones 1. Whole root Zone     It contains complete solaris OS. it is slow and usually not recommended in production. In a way it is copy or replica of the whole global zone. 2. Spare root zone     This type of zone shares some parts of solaris OS from parent zone. These are speedy as whole OS is not loaded only a few parts are loa