How will you add a virtual ip address to a server. Given the interface qe0 and ip 10.10.1.150?
# ifconfig qe0:1 plumb# ifconfig qe0:1 10.10.1.150 up
What is the command to find out the nfs version in solaris?
#more /etc/default/nfs command is verified. it provides the version number of NFS
#netstat|grep Version
How do you determining current booted disk in Sun solaris os?
prtconf -vp|grep -i boot ----gives last booted device
who -b -------last booted time
eeprom boot-device----------gives boot device
df -h
What is the big difference between /dev/dsk and /dev/rdsk ?
/dev/dsk-block device /dev/rdsk -raw device
In /dev/rdsk if the data which is written did not used full 512bytes of a sector then for the next time we cannot use the left space.
where as /dev/dsk maintains a buffer memory from where the data is copied to disk so there is no loss of space.
I hope I understood this way:
raw disk device /dev/rdsk is using for system management/administration
block disk device /dev/dsk is using for I/O operations
In the /etc/default/login file, which of the following will not allow you to login remotely as root?
Console=
#vi /etc/default/login
# CONSOLE=/dev/console (Only root can login)
CONSOLE=/dev/console (normal user can login and after that can do switch as root but directly root cant login from remote)
open, #vi /etc/default/profile
go to 18th line, and comment the line CONSOLE=/dev/console to: #CONSOLE=/dev/console
Now you can do telnet to remote pc as Root admin
How can I disable stop+a utility on Sun machines, which brings system into ok> prompt?
Two way can do
1)#kbd -a (for enable|disable)
or
2)#Vi /etc/default/kbd
KEYBOARD_ABORT=disable
For temprary basis type command disable stop+Akbd -a disable
For permanent basis vi/etc/default/kb and edit keyboard_abort diable
Regards
Anupam
CMS Info Gurgaon
How to find out GLobal zone name from a non-global zone?
At Local zone:-
#arp -a|grep SP
Define major number and minor number ?
Major Number: major number defines the device class.
Minor Number: minor number defines the members in that device class.
A major device number identifies the specific device driver required to access a device. A minor device number identifies the specific unit of the type that the device driver controls. In the follow...
How to change hostname on solaris 10?
If we want change the host name permanently we have to change the entry in 3 files. Before changing 3 files first type the following command #hostname ----- here new host name is now we assign the nam...
for temp: #hostname
for permanent change :
entry in the following files:
cat /etc/nodename
cat /etc/hosts
cat /etc/inet/ipnodes
cat /etc/hostname.xxx0
Work station crashes suddenly, how will you retrieve data?
we can check the crash dump file. in /var/crash/hostname.xx0 ,or by dumpadm command we can find the path of crash file.
Normally each work station images are stored in the central server called as image back up servers. In any eventuality of work station crashes the entire profile, user data and other available progra...
Explain how will you create extra volumes?
we can create the extra volume by the soft partition methods like: metainit d701 -p d70 metainit d702 -p d70 after that format newfs /dev/md/rdsk/d701 newfs /dev/md/rdsk/c702 make entry in vfstab ...
metadb -a creates state database replicas (you can also create then using The Solaris Volume Manager software GUI) The syntax of the command is: metadb -a [-f] [-c n] [-l nnnn] disk_slice metainit ...
What type of names are used for administering disk drives in solaris environment
There are 3 types of device names: 1. Logical device names: Present in /dev and are soft links to physical device names in /devices. Used in command line (i.e., while...
c#t#d#s#
1.c# Controller number
2.t# Target number -- actually disk number
3.d# Disk number -- always d0 for SCSI disks.
4.s# Slice number
What is the maximum slice than can be created in a single disk?
in sparc system we can create only 7 slice bt in x86 is same as sparc 8th and 9th slice for boot loader files
Whole disk size can be the maximum size of a slice as usually slice 2 will be the whole disk partition in Solaris 10.
What device file is specified when using the mount command?
Logical device path i.e., /dev/dsk/c#t#d#s#
When would you want to reconfigure the kernel and how would you do it?
Normally to have the driver support
Hi Whenever we connect device to our system(SPARC) in case if it is not booted after using devfsadm then we should create #touch /reconfigure file .It will re-read the configuration file ...
You can ping servers on the subnet your workstation is on, but not other subnets. What is wrong?
1. default route should be mentioned in the /etc/defaultrouter with an ip address from the other subnet mentioned in the box from you are pinging. 2. routing should be enabled between the subnets on ...
default router should be added.
create /etc/defaultrouter with gateway ip
and give the following command
route add default
How many cpu's we can connect to a spark machine ?
it is dependent upon the model, we can have the information from oracle portal
We can connect upto 106 CPU in Sun machine.
How to check solaris volume manager version in 9 & 10? Which are the packages that are installed in the svm?
These are some packages install for SVM SUNWmdr - Solaris Volume Manager driver SUNWmdu - Solaris Volume Manager commands SUNWmdx - Solaris Volume Manager drivers (64-bit) SUNWlvma - S...
You don't have to install any additional packages. It comes in-build with Solaris 10 operating system
How to stop & start a process in solaris?
You cannot stop a process, you have to abort the process. But you can stop the services in Solaris 10 using svcadm command. A service may contain multiple processes
We can kill the process using kill or pkill command, Start the respective preocess manually, If u want to re start the specific application you can /etc/init.d/app_name stop and /etc/init.d/app_name start or /etc/init.d/app_name restart
How do we know how many lan cards we have in server?
ifconfig -a will only show the plumbed interfaces
we can use either of this commands 1) #dladm show-link 2)ifconfig -a
ifconfig qe0:1 10.10.1.150 netmask 255.255.255.0 broadcast + up
USE CMD ifconfig qe0 addiff 10.10.1.150 up