Saturday, February 12, 2011

questions with answers

Solaris Questions:
How to view the kernel (shmmax)parameter value in solaris 10? (sysdef -i)
What are the main difference between solaris 10 & 9?
The main difference in solaris 9 & solaris 10 is "SMF (Solaris management Facility)" . In solaris 9, if any service goes down then we should restart all services.this is the disadvantage. But in solaris 10, if any service goes down then that particular service we can select and enable it instead of restarting all services.
============================================================
The automount facility contains three components
The AutoFS FS
The automountd daemon
The automount command

The AutoFs map types

Master Map The auto_master map associates a directory, also called a mount point, with a map.
Direct Map Lists the mount points as absolute path names. This map explicitly indicates
the mount point on the client.

Indirect Map Lists the mount points as relative path names. This map uses a relative path to
establish the mount point on the client.
Special Provides access to NFS servers by using their host names
===============================================================================

What is the command to do an interactive boot from the ok prompt?
stop+a command is to boot an interactive boot from the ok prompt.

Which NFS daemons are found on the NFS server?
In NFS server side there are 4 daemons They are nfsd
mountd
lockd
statd
nfslogd

These five daemons will be in NFS server.
statd and lockd will be in NFS client too
.

What file controls system wide password aging?
/etc/shadow.

What command will display the VTOC for disk c0t0d0s0?
prtvtoc /dev/rdsk/c0t0d0s0

Where are the templates stored that are copied into the user's home directories for their personal customizations?
/etc/skel

How do we know how many LAN cards we have in server?

Give the command that will display your default boot device?
eeprom boot-device
Solaris Questions:
How to view the kernel (shmmax)parameter value in solaris 10? (sysdef -i)
What are the main difference between solaris 10 & 9?
The main difference in solaris 9 & solaris 10 is "SMF (Solaris management Facility)" . In solaris 9, if any service goes down then we should restart all services.this is the disadvantage. But in solaris 10, if any service goes down then that particular service we can select and enable it instead of restarting all services.
============================================================
The automount facility contains three components
The AutoFS FS
The automountd daemon
The automount command

The AutoFs map types

Master Map The auto_master map associates a directory, also called a mount point, with a map.
Direct Map Lists the mount points as absolute path names. This map explicitly indicates
the mount point on the client.

Indirect Map Lists the mount points as relative path names. This map uses a relative path to
establish the mount point on the client.
Special Provides access to NFS servers by using their host names
===============================================================================

What is the command to do an interactive boot from the ok prompt?
stop+a command is to boot an interactive boot from the ok prompt.

Which NFS daemons are found on the NFS server?
In NFS server side there are 4 daemons They are nfsd
mountd
lockd
statd
nfslogd

These five daemons will be in NFS server.
statd and lockd will be in NFS client too
.

What file controls system wide password aging?
/etc/shadow.

What command will display the VTOC for disk c0t0d0s0?
prtvtoc /dev/rdsk/c0t0d0s0

Where are the templates stored that are copied into the user's home directories for their personal customizations?
/etc/skel

How do we know how many LAN cards we have in server?

Give the command that will display your default boot device?
eeprom boot-device
prtconf -vp |grep -i boot


What command can you use to dispaly all of your groups
groups - To display full list

What is the command can reconfigure devices without reboot?
devfsadm

What are the different phases in boot process?
Boot Phases of solaris operating environment are:
1. Boot PROM
2. boot programs like bootblk, ufsboot
3.kernel initialization like loading modules
4. init phase.

How many cpu's we can connect to a sprac machines?
Sin Fire 15k can have upto max of 106 processors

List the hidden files in current directory?
ls -al |grep "^\."

How to find 32 or 64 bit system instances of OS?
isainfo -b

How to configure IP Multipathing.?

How would you find out what version of the solaris is currently running?
uname -r is the command to know the version of the OS and uname -s for the type of OS.

How do you find out drive statistics ? – iostat -E
Display Ethernet Address arp table ? – arp -a
Display the inter-process communication facility status ? – ipcs
Alternative for top command ? - prstat -a
Display the top most process utilizing most CPU ? - top

Given an ISO image how you mount in solaris ?
Create a loopback device file with lofiadm:

acadie# /usr/sbin/lofiadm -a /path/to/image.iso
This will create, for example, /dev/lofi/1 . It can be mounted as follows:
acadie# mount -F hsfs -o ro /dev/lofi/1 /mnt/dir
------
lofiadm -a /export/temp/software.iso /dev/lofi/1
The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command.
mount -F hsfs -o ro /dev/lofi/1 /nt
=========================================================================================================

ZFS
Which command(s) would you use to setup the ZFS file system?
zfscreate
FEATURES OF ZFS
How to create ZFS File System
How to create ZFS snapshot
Restore from a ZFS snapshot
===================================================================================

ZONES :
Explain Zone Features & types of Zones
Features of Global Zone
1.Solaris Always boots(cold/warm) to the global zone.
2.Knows about All Hardware devices attach to system
3.Knows about all non global Zones
Features of Non-Global Zones.
1.Installed at a location on the filesystem of the Global Zone
'Zone root path' /export/home/zones/zones1 {Zone2,Zone3----} this is as root directory for this zones.
2.Share Packages with Global Zone.
3.Manage distinct hostname and table files.
4.cannot communicate with other non-global zones by default.NIC must be used, which means use standard network API(TCP)
5.Global Zone admin can delegatenon-global zone administration

Zones Types:-

1.sparse Root Zones - share key fileswith global zones.
2.Whole Root Zones - require more storage


Zone Daemons and its functions
Where is zone configuration location?
In zones what is Whole root model & Sparse root model?
Creating a zone (sparse root)
Cloning a Zone
=======================================================================
Cloning works only from release 11/06.
Assume that a zone called apple is created and we are cloning to a new zone called orange. To clone the apple zone , the apple zone must be in the installed state.
#zoneadm –z apple halt
#zonecfg –z apple export –f /etc/zones/apple.txt ? Copies the apples configuration to a text file.
#vi /etc/zones/apple.txt ? edit the zonepath and give a new path for the new zone named orange and issue a new ipaddress and save the file
#zonecfg –z orange –f /etc/zones/apple.txt
#zoneadm –z orange clone apple
#zoneadm –z orange boot
#zlogin –C orange
The same data and users are found in the orange zone like what we created in apple zone

===============================================================================================

What command can you use to dispaly all of your groups
groups - To display full list

What is the command can reconfigure devices without reboot?
devfsadm

What are the different phases in boot process?
Boot Phases of solaris operating environment are:
1. Boot PROM
2. boot programs like bootblk, ufsboot
3.kernel initialization like loading modules
4. init phase.

How many cpu's we can connect to a sprac machines?
Sin Fire 15k can have upto max of 106 processors

List the hidden files in current directory?
ls -al |grep "^\."

How to find 32 or 64 bit system instances of OS?
isainfo -b

How to configure IP Multipathing.?

How would you find out what version of the solaris is currently running?
uname -r is the command to know the version of the OS and uname -s for the type of OS.

How do you find out drive statistics ? – iostat -E
Display Ethernet Address arp table ? – arp -a
Display the inter-process communication facility status ? – ipcs
Alternative for top command ? - prstat -a
Display the top most process utilizing most CPU ? - top

Given an ISO image how you mount in solaris ?
Create a loopback device file with lofiadm:

acadie# /usr/sbin/lofiadm -a /path/to/image.iso
This will create, for example, /dev/lofi/1 . It can be mounted as follows:
acadie# mount -F hsfs -o ro /dev/lofi/1 /mnt/dir
------
lofiadm -a /export/temp/software.iso /dev/lofi/1
The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command.
mount -F hsfs -o ro /dev/lofi/1 /nt
=========================================================================================================

ZFS
Which command(s) would you use to setup the ZFS file system?
zfscreate
FEATURES OF ZFS
How to create ZFS File System
How to create ZFS snapshot
Restore from a ZFS snapshot
===================================================================================

ZONES :
Explain Zone Features & types of Zones
Features of Global Zone
1.Solaris Always boots(cold/warm) to the global zone.
2.Knows about All Hardware devices attach to system
3.Knows about all non global Zones
Features of Non-Global Zones.
1.Installed at a location on the filesystem of the Global Zone
'Zone root path' /export/home/zones/zones1 {Zone2,Zone3----} this is as root directory for this zones.
2.Share Packages with Global Zone.
3.Manage distinct hostname and table files.
4.cannot communicate with other non-global zones by default.NIC must be used, which means use standard network API(TCP)
5.Global Zone admin can delegatenon-global zone administration

Zones Types:-

1.sparse Root Zones - share key fileswith global zones.
2.Whole Root Zones - require more storage


Zone Daemons and its functions
Where is zone configuration location?
In zones what is Whole root model & Sparse root model?
Creating a zone (sparse root)
Cloning a Zone
=======================================================================
Cloning works only from release 11/06.
Assume that a zone called apple is created and we are cloning to a new zone called orange. To clone the apple zone , the apple zone must be in the installed state.
#zoneadm –z apple halt
#zonecfg –z apple export –f /etc/zones/apple.txt ? Copies the apples configuration to a text file.
#vi /etc/zones/apple.txt ? edit the zonepath and give a new path for the new zone named orange and issue a new ipaddress and save the file
#zonecfg –z orange –f /etc/zones/apple.txt
#zoneadm –z orange clone apple
#zoneadm –z orange boot
#zlogin –C orange
The same data and users are found in the orange zone like what we created in apple zone

===============================================================================================

No comments:

Post a Comment