Saturday, February 12, 2011

solaris interview question Raid levels and File systems

Q) How to create raid 0 concatination

A) # metainit d0 2 1 c0t0d0s1 1 c0t1d0s1

Q)How to see the meta device information

A)# metastat

Q)How to format and mount a slice

A)newfs /dev/md/rdsk/d0
Mount /dev/md/dsk/d0 /nav

Q) how to create raid 0 stripping

A) #metainit d1 1 2 c0t0d0s1 c0t0d0s2
#metastat
#newfs /dev/md/rdsk/d1
#mount /dev/md/dsk/c1 /naveen

Q) How to differentiate concatenation and stripping

A)when used metastat command stripping will show an interlace value 32KB this shows it is striped

Q)how to clear metadevices

A)#metaclear d0
#metaclear d1

Q)How to create mirroring raid -1
#metainit d1 1 1 c0t0d0s1
Metainit d2 1 1 c0t0d0s2
Metainit d3 –m d1
Metattach d3 d2
Metastat

Q)how to create stripe with parity
#metainit d1 –raid5 c0t0d0s0 c0t0d0s0 c0t2d0s0
Metastat
Newfs /dev/md/rdsk/d1
Mount /dev/md/rdsk/d1 /naveen

Q)how to grow the size of the volume
#growfs –M /d1 c0t0d0s1-(new device)

Q)how to create raids using veritas volume manager concationation

A)#vxassit –g rootdg make vol01 20g
#newfs /dev/vx/rdsk/rootdg/vol01
#mount /dev/vx/dsk/rootdg/vol01 /naveen

Stripping
A)
vxassit –g rootdg make vol02 20g layout=stripe st_width=32
#newfs /dev/vx/rdsk/rootdg/vol02
#mount /dev/vx/dsk/rootdg/vol02 /naveen

mirroring

A)vxassit –g rootdg make vol03 20g layout=mirror
newfs /dev/vx/rdsk/rootdg/vol03
mount /dev/vx/dsk/rootdg/vol03 /naveen

stripping with parity.

A)vxassit –g rootdg make vol4 20g layout=raid5,nologs
newfs /dev/vx/rdsk/rootdg/vol4
mount /dev/vx/dsk/rootdg/vol4.

Q)How to print plexes,subdisk,volumes

Vxprint –pt – for plexes
Vxprint –st subdisk
Vxprint –vt volumes

Q)how to increase the size of the volume

Vxassit –r rootdg growby vol01 20g
/usr/lib/fs/fsck –F ufs –M /naveen /dev/vx/rdsk/rootdg/vol01 40980 (offset value by typing the vxprint –vt command)

Q)what is the top command used for

A)Its lists all the processes with the process id
Cpu utilization and idle cpu
Memory utilization and idle memory
Swap utilization and ideal swap
Application using maximum cpu utilization with pid

Q)what is lofs used for

A)Lofs list open files is used for to check a problem encounter with a file or process

Q)what is the use of truss command

A)Trace system call for every running file

30)Whats are the fields in vfstab

A)mount device-raw device for fsk-mountpoint-filesystem-fsckcheck-mount at boot
and it contain all the mounted filesystem
==============================================
How to create 2 database replicas
# metadb –a –f –c 2 c0t0d0s1

Q) How to see the state databases replica.
A) # metabd

Q) what are raid0,raid1 and raid5
A) Raid 0 is concatenation or stripping
Concatenation means writing data in disk one after another
Stripping means writing data of 32kbs interlease value in to disk

Raid 1 – mirroring that means writing data on two disk parallely or duplicatiung the data on two disk.

Raid 5 – stripping with parity the data of 2 disk is duplicated in the third disk with parity information
======================================
How to configure newly attached hardware like hardsik network card.
# devfsadm Or drvconfig

How to set environment variable in NVRAM
# nvalias /pci---/rarp – to set scsi for booting of client
# nvalias net dhcp – to boot from dhcp
# nvunalias net – remove the alias

How to see the physical disk connected to the system from Open Boot Command OBP
ok>probe-scsi

How do you set a deafaulr boot device from the boot prom
# setenv boot-device disk
Boot-device=disk
# reset - To make the changes.

How to see the default boot device from the boot prom or OBP
ok> prtenv boot-device

How to see which kernel version and artitecture used by the system.
# isainfo -v :- To see kernal version and 32 bit or 64 bit system and artictect

How to make processor 3 online when you have more then 4 processor and processor 3 is offline?
# psrinfo –v:- To see the status of all processors
# psrinfo –a 3 online :- To make processor 3 online

No comments:

Post a Comment