On 6/5/07, praveen kumar <[EMAIL PROTECTED]> wrote:

>
> 1) Importance of "nice" command  in multiprocessor server/ environment?

nice allows you to change the priority of a process. You might want
some processes to finish earlier than others. Thats when you renice
that process to a value thats better than the nice value of the other
processes. Nice values range from -20 to 19, where -20 has the highest
priority and 19 the lowest.


> 2) how to find all the services running on particular port? ( In solaris they 
> say using "pfiles") but in Linux?

pfiles on Solaris shows you the number of open files for each process.
Its equivalent on Linux is the lsof command.

> 3) how to configure new HDD when there is crash in old HDD ( i.e how to 
> configure such that new HDD should me replica of old HDD).

You can't create a replica if the hard disk has crashed. For that, you
need to use RAID. RAID will automatically rebuild your new hard disk
after you issue the raidhotadd command.

raidhotadd /dev/mdX /dev/sdX

If you don't have raid configured, you can add a new disk as follows.

1. Remove the crashed disk and insert the new disk into the bay.
2. mke2fs -j /dev/sdaX
3. use fdisk to partition the new disk. You should be having the
partition table backup, you can atleast replicate the partitioning
scheme.
4. Update fstab and transfer the data from your backups to the new disk.


Regards,
NMK.

Reply via email to