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
No comments:
Post a Comment