Thursday, August 21, 2008

Adding swap file to linux

there are three steps to add a new swap file to a linux box.
1- you have to create the swap file
dd if=/dev/zero of=swapfile bs=1024 count=1536000
2- run this command to identify the file as a swap file
mkswap /swapfile/swapfile
3- and activate it:
swapon /swapfile/swapfile

Tuesday, August 12, 2008

Property 'name' of instance .. missing errors

if you have system errors on Solaris like "Property 'name' of instance svc:/network/ftp:default is missing, inconsistent or invalid" or "Invalid configuration for instance svc:/network/finger:default, placing in maintenance" after creating a zone, you should control the /etc/services file.

You can copy this file from a working system and reboot your server. After this operation, your system will be fine.