Professional Documents
Culture Documents
globalcorefilepattern:
initcorefilepattern:core
globalcoredumps:disabled
perprocesscoredumps:enabled
globalsetidcoredumps:disabled
perprocesssetidcoredumps:disabled
globalcoredumplogging:disabled
To disable per-process core file creation, use:
coreadmdprocess
This will modify the /etc/coreadm.conf which is read at boot when /etc/init.d/coreadm is executed from
a runtime control script. To make permanent changes to coreadm, do not edit the /etc/coreadm.conf
file, use the coreadm command.
passwd -l user_login_name
passwd -S user_login_name
(enable)
( disable)
Explain inode
It contain the information of the files and directory
Like ( date, home directory, rights, modified date, etc)
If the system panic or system not booting
Boot through cdrom 1/3 cd in single user mode.
Ok boot cdrom-s
# mount F ufs /dev/rdsk/c0t0d0s0 /mnt
# cd mnt
# installboot /usr/platform/uname-i/lib/fs/ufs/bootblk /dev/rdsk/c00t0d0s0
# umount mnt
# boot r
Explain /etc/inittab files
It will have 4 fields( id, rstat, action, process)
Respawn : Restart daemon if killed
Off : Dont start the daemon if killed
Once: Run once
Wait: Wait for the process to be completed before processing the next line in /etc/inittab
How will you ad new aliases name
# vi /etc/mail/aliases ( enter the aliases name (eg) service:servicedesk@hotmail.com
# newaliases
# /usr/lib/sendmail v b (aliases name)
To test send mail:
root on LIVE cathnidp # echo "This is a test msg" | mailx -s test thambirajh@inbangalore.mail.saic.com
root on LIVE cathnidp #
What are printer daemon
# /etc/inetd.conf --> This is an services daemons
# in.lpd daemon
What is the protocol supported by NFS
UDP and TCP
To find the OBP environment variable
OK printenv
Explain FSCK
Utility
It has
Phase
Phase
Phase
Phase
Phase
for checking and repairing the files system inconsistence due to abnormal shutdown.
5 phases
1 : Check block and size
2 : Check pathname
3 : Check connectivity
4 : Check reference count
5 : Check cylinder group
1. Latest patches
2. Access to the system:
3.
/etc/default/login
sshd.config
Limited su access
1
root on BUILD kirkbiz06 #
Which file to be configuring the logs messages (like: /var/adm/message etc)
#/etc/syslog.conf
What is nslookup
To find the hostname and ip address
To resolve the hostname into ip and ip into hostname
How will you check the disk performance?
# iostat xctd 4 5
If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is
greater than 5 percent, and the average service time (svc_t) is greater than 30 milliseconds, then
one of the following action needs to be taken
What are performance tool used
Iostat ,vmstat , prstat , sar ,netstat, top
Add swap space
# mkfile 500M swap1
# swap -a /swap1/swap1
# swap -s
Which service assign port no dynamically
Rpc service ( /etc/rpc)
Rpc
Portmaping : it will convert the application into port number
What are the NFS daemon in server & client
Server Daemons
1 mountd
2.nfsd
3.nfslogd
4.statd
5.lockd
Client Daemons
statd
lockd
1. mountdHandlesfilesystemmountrequestsfromremotesystems,andprovidesaccesscontrol(server)
2. nfsdHandlesclientfilesystemrequests(bothclientandserver)
3. statdWorkswiththelockddaemontoprovidecrashrecoveryfunctionsforthelockmanager(server)
4. lockdSupportsrecordlockingoperationsonNFSfiles
5. nfslogdProvidesfilesystemlogging.Runsonlyifoneormorefilesystemsismountedwithlogattribute.
biod: On the client end, handles asynchronous I/O for blocks of NFS files.
How to find out the shared file system from server and client
Server : # share & dfmount
Client : # showmount e (hostname) and dfshares
What are the daemons in nis server.
rpc.yppasswdd
Ypxfrd
rpc.ypupdated
How to start / stop the nfs server
# /etc/init.d/nfs.server start
# /etc/init.d/nfs.server stop
How to find out the shared file system from server and client
Server : # share & dfmount
Client : # showmount e (hostname) and dfshares
What are processing daemon in nis
Ypserv
Ypbind
What are the daemons in nis server.
rpc.yppasswdd
Ypxfrd
rpc.ypupdated
SDS
Explain RAID0, RAID1, RAID3,
RAID 0 Concatenation/Striping
RAID 1 Mirroring
RAID 5-Striped array with rotating parity.
Concatenation: Concatenation is joining of two or more disk slices to add up the disk space.
Concatenation is serial in nature i.e. sequential data operations are performed serially on first disk then
second disk and so on. Due to serial nature new slices can be added up without having to take the
backup of entire concatenated volume, adding slice and restoring backup.
Striping: Spreading of data over multiple disk drives mainly to enhance the performance by
distributing data in alternating chunks - 16 k interleave across the stripes. Sequential data operations
are performed in parallel on all the stripes by reading/writing 16k data blocks alternatively form the
disk stripes.
Mirroring: Mirroring provides data redundancy by simultaneously writing data on to two sub mirrors of
a mirrored device. A submirror can be a stripe or concatenated volume and a mirror can have three
mirrors. Main concern here is that a mirror needs as much as the volume to be mirrored.
RAID 5: RAID 5 provides data redundancy and advantage of striping and uses less space than
mirroring. A RAID 5 is made up of at least three disks, which are striped with parity information written
alternately on all the disks. In case of a single disk failure the data can be rebuild using the parity
information from the remaining disks.
Two-four
Five or more
Node WWN:50800200001bcf28
#metaclear d32
#metaclear d33
#metaclear d101
Verify there are no existing metadevices:
#metastat p | grep c1t0d0
Remove metadb replicates on failed disk:
#metadb i
#metadb d c1t0d0s7
Verify there are no replicas:
#metadb | grep c1t0d0
Save the disk partition table from the surviving disk:
#prtvtoc /dev/rdsk/c1t0d0s2 > /var/adm/mmddyyc1t0d0.vtoc
Required for v880, not sure about other HW:
Run luxadm to remove the failed disk
#luxadm remove_device F /dev/rdsk/c1t0d0s2
At the prompt, physically remove the device and continue
Run devfadm cleanup
#/usr/sbin/devfsadm C c disk
This should remove device paths for this disk. Verify via:
#ls ld /dev/dsk/c1t0d*
This should return no devices.
The new disk should now be inserted.
Refresh device names:
# devfsadm
or
# /usr/sbin/luxadm insert_device <enclosure_name,sx>
luxadm insert_device /dev/rdsk/c1t49d0s2
where sx is the slot number
or
# /usr/sbin/luxadm insert_device (if enclosure name is not known)
Note: In many cases, luxadm insert_device does not require the enclosure
name and slot number.
Use the following to find the slot number:
# luxadm display <enclosure_name>
To find the <enclosure_name> use:
# luxadm probe
Run "ls -ld /dev/dsk/c1t1d*" to verify that the new device paths have
been created.
Update hardware device numbers:
At the end of metastat command output are the hardware device numbers. After replacement the
metadevadm command should be run to update the new device number.
#metadevadm u c1t0d0
Write vtoc to replacement disk:
#fmthard s /var/adm/mmddyyc1t0d0.vtoc /dev/rdsk/c1t0d0s2
Or use format to copy the partition table.
Create new meta devices:
#metainit d30 1 1 c1t0d0s0
#metainit
#metainit
#metainit
#metainit
d31 1 1 c1t0d0s1
d32 1 1 c1t0d0s3
d33 1 1 c1t0d0s4
d101 1 1 c1t0d0s6
Attach mirrors:
#metattach d0 d30
#metattach d1 d31
#metattach d2 d32
#metattach d3 d33
#metattach d100 d101
Add metadbs to replacement disk:
#metadb a c 3 c1t0d0s7
Check that metadbs are correct:
The lower case lettered flags may not appear until the server is rebooted.
be six total metadbs. Three on each of the root mirrored disk.
# metadb
flags
a m p luo
a p luo
a p luo
a p luo
a p luo
a p luo
first blk
16
8208
16400
16
8208
16400
block count
8192
8192
8192
8192
8192
8192
/dev/dsk/c1t0d0s7
/dev/dsk/c1t0d0s7
/dev/dsk/c1t0d0s7
/dev/dsk/c1t1d0s7
/dev/dsk/c1t1d0s7
/dev/dsk/c1t1d0s7
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4087280 blocks
meter/d15: Submirror of meter/d17
State: Okay
Size: 4087280 blocks
Stripe 0:
Device
Start Block Dbase State
c2t5d1s0
0
No Okay
Hot Spare
Step 2:-
Hot Spare
Hot Spare
Analyzed both the disk and no error found disks are okay.
/appl/TEST
/ora1data/METR
/ora1index/METR
/oraredo/METR
#umount /redoarch/METR
Check df k whether the file system are umounted
Step7:- Clearing all the trans device from d5
meter/d5: Logging device for meter/d6 meter/d10 meter/d14 meter/d18 meter/d22
meter/d26
[root drcs1] ksh$ metaclear
meter/d10: Trans is cleared
[root drcs1] ksh$ metaclear
meter/d14: Trans is cleared
[root drcs1] ksh$ metaclear
meter/d18: Trans is cleared
[root drcs1] ksh$ metaclear
meter/d22: Trans is cleared
[root drcs1] ksh$ metaclear
meter/d26: Trans is cleared
[root drcs1] ksh$ metaclear
meter/d5: Mirror is cleared
-s meter d10
-s meter d14
-s meter d18
-s meter d22
-s meter d26
-s meter d5
Step 8:- Find all the Trans device configuration has cleared
[root drcs1] ksh$ metastat -s meter -p
meter/d2 -m meter/d0 1
meter/d0 1 6 c1t4d0s0 c1t4d1s0 c1t4d2s0 c1t4d3s0 c1t4d4s0 c1t5d0s0 -i 256b
meter/d9 -m meter/d7 1
meter/d7 1 3 c1t3d1s0 c1t3d2s0 c1t3d3s0 -i 256b
meter/d13 -m meter/d11 1
meter/d11 1 1 c1t5d1s0
meter/d17 -m meter/d15 1
meter/d15 1 1 c2t5d1s0
meter/d21 -m meter/d19 1
meter/d19 1 1 c1t5d4s0
meter/d25 -m meter/d23 1
meter/d23 1 1 c1t5d2s0
meter/d1 1 1 c1t4d0s6
meter/d3 1 1 c1t3d4s6
meter/d4 1 1 c1t5d3s0
[root drcs1] ksh$
Step 9:- Mirror meter/d5 with meter/d3
[root drcs1] ksh$ metainit meter/d5 -m meter/d3
meter/d5: Mirror is setup
Step 10:- Attache the mirror device meter/d5 with sub mirror meter/d1
[root drcs1] ksh$ metattach meter/d5 meter/d1
meter/d5: submirror meter/d1 is attached
Step 11:- Create all the trans device of d5
meter/d5: Logging device for meter/d6 meter/d10 meter/d14 meter/d18 meter/d22
meter/d26
#metainit
#metainit
#metainit
#metainit
#metainit
#metainit
#mount
#mount
#mount
#mount
/dev/md/meter/dsk/d14
/dev/md/meter/dsk/d18
/dev/md/meter/dsk/d22
/dev/md/meter/dsk/d26
The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y
system will continue booting after rebuilding the file.
Is it possible to edit the corntab using vi
It is not recommended but it is possible by editing
# vi /var/spool/cron/crontabs/root
The command to edit the crontab is
#crontab -e
How will you restrict the users from login when system in heavy load
# prtvtoc -s /dev/rdsk/c2t2d0s2
This approach can be used for both first time complete refresh and ongoing mirroring process
7014
7015
7016
7017
7021
7027
7028
7035
7037
7042
7043
7044
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
root on
vxprint | more
vxdisk list
vxprint -Ath | more
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
./vxse &
vxdiskadm
ps -aef | grep -i pmon
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
vxprint -Ath
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
vxprint -Ath
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
vxprint -Ath
vxmend -g cusmarp2_dg fix stale vol_ora1data-01
vxprint -Ath
vxmend -g cusmarp2_dg fix clean vol_ora1data-01
vxprint -Ath
vxvol -g cusmarp2_dg start vol_ora1data
vxprint -Ath
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
fsck -F vxfs /dev/vx/rdsk/cusmarp2_dg/vol_ora1data
mount -F vxfs /dev/vx/dsk/cusmarp2_dg/vol_ora1data
df -k
LIVE dqdmart02 #
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
/ora1data/CUSMARP2
How to find the plex, sub disk, Volume group, disk status, free spaces, disk controller,
Volume controller?
Displays info about plexes
#vxprint -lp
#vxprint -l plex_name
Displays info about subdisks
# vxprint -st
#vxprint -l disk##-##
show disk iops over 10 seconds...
#ssaadm display -p c#
Traces all i/o on a volume..
#vxtrace vol
To report disk stats
#vxstat -d
Displays the free space on the disks
#vxdg free
Display the disk crontroller
#vxprint list
#vxprint -Aht
Tells you how much you can grow a volume by
#vxassist maxgrow vol
In VERITAS How to recover the mirror disk with data.
How to bring the existing data disk into VERITAS volume manger control.
Through Encapsulations method
How to change the mirror status from 0:1 to 0:5 and how?
#vxassist g dgname v volume name relayout
Were the veritas disk information store.
#/kernel/drv/sd.cf
How to increase the size of the file system?
# df k ( dentify the VERITAS group and volume name of /myhr on EXU407 )
# vxassist g appdg maxsize (check for the free space available in the group appdg on EXU407 )
# vxprint thA g appdg (Check if /myhr is mirrored)
# mount p (check the file system of /myhr )
# cp p /etc/vfstab/etc/vfstab.070223 ((take backup of /etc/vfstab file )
you can increase the size of teh file system by using solaris volume manager
# vxresize F vxfs g rootdg myapps +5g (increase the size of /myapps by 5gb)
How to increase the size of the file system?
# vxresize F vxfs g rootdg myapps +5g (decrease the size of /myapps by 5gb)
#df -k
#vxresize b F vxfs ora03vol +70gb
What is encapsulation?
This is used to bring the disk under volume manager , which are already present in the system with
data but without volume manager . Data on these disks are not disturbed and if these disks meets
certain volume manager requirements these are added under volume manager
How to add a root dg?
#vxdg -g <dg name> adddisk <media name>=c2t0d0
What is the difference between the VERITAS 3.0 and VERITAS 4.0?
In VERITAS 3.0 , the root dg is present by default
In VERITAS 4.0, the root dg has to be created manually
In Vertias 4.0 cdsdisk has introduced which means, in any os it can be exported
How to mirror a root dg? With eg
#vxrootmir
How to rename the old root disk. In this example, rootdisk is being renamed as rootold.
# vxedit -g rootdg rename rootdisk rootold
How to Encapsulate the new root disk (c2t2d0).
# /etc/vx/bin/vxencap rootdisk=c2t2d0
How to mirror and unmirror a disk?
#vxassist mirror hazly disk05 disk06
uses disks5 and 6 ro make a mirror on volume called hazly
#vxassist make hazly 50m layout=mirror
makes a 50Mb mirror using any 2 disks
How to remove a disk group?
#vxdg destroy <disk group>
clear
vxdisk
the
list
failing
flag
on
a
veritas
volume
manager
disk:
command
to
find
out
which
disks
are
failing:
vxdisk
list
TYPE
DISK
GROUP
STATUS
auto:sliced
mydg01
mydg
online
auto:sliced
mydg02
mydg
online
failing
auto:sliced
mydg03
mydg
online
vxedit
set
failing=off
mydg02
vxdisk
list
format command was showing drive type unknown for these DID devices.
Resolution:
Step-I
The disks were hot-swappable & were replaced online.
We need to reboot the servers phys-mw1 & phys-mw2 for the disks to come under OS/Cluster control.
Here is the procedure for rebooting of phys-mw1 and phys-mw2:
on phys-mw1
(Monitor on both console sessions for any errors/warning during switchover. Wait for 5-10 mins for the
switchover)
3. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw2.
Phys-mw2# hastat
.on phys-mw2
.on phys-mw1
(Monitor on both console sessions for any errors/warning during stopping for cluster services. Wait for 5-10
mins for this activity)
5. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw2. phys-mw1 will NOT be a
cluster member now.
Phys-mw2# hastat
.on phys-mw2
.on phys-mw1
7. Waiting for phys-mw1 to return.. Monitoring phys-mw1 from console for any issues.
8. Login to phys-mw1 & start the cluster services.
Phys-mw1# scadmin startnode
.on phys-mw1
(Monitor on both console sessions for any errors/warning during starting for cluster services. Wait for 5-10 mins
for this activity)
9. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw2. phys-mw1 will be a cluster
member now.
Phys-mw2# hastat
.on phys-mw2
..on phys-mw2
(Monitor on both console sessions for any errors/warning during switchover. Wait for 5-10 mins for the
switchover)
11. Confirm that cluster is stable & gisdbmw is owned by phys-mw1 & gisfsmw is owned by phys-mw2.
Phys-mw2# hastat
on phys-mw2
on phys-mw2
(Monitor on both console sessions for any errors/warning during starting for cluster services. Wait for 5-10 mins
for this activity)
13. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw1.
Phys-mw2# hastat
Phys-mw1# hastat
.on phys-mw2
(Monitor on both console sessions for any errors/warning during stopping for cluster services. Wait for 5-10
mins for this activity)
15. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw1. phys-mw2 will NOT be a
cluster member now.
Phys-mw1# hastat
Phys-mw2# hastat
..on phys-mw2
17. Waiting for phys-mw1 to return.. Monitoring phys-mw2 from console for any issues.
18. Login to phys-mw2 & start the cluster services.
Phys-mw2# scadmin startnode
.on phys-mw2
(Monitor on both console sessions for any errors/warning during starting for cluster services. Wait for 5-10 mins
for this activity)
19. Confirm that cluster is stable & both gisdbmw & gisfsmw are owned by phys-mw1. phys-mw2 will be a cluster
member now.
Phys-mw2# hastat
.on phys-mw2
on phys-mw1
(Monitor on both console sessions for any errors/warning during starting for cluster services. Wait for 5-10 mins
for this activity)
Phys-mw1# hastat
Phys-mw1# df k
Phys-mw2# hastat
Phys-mw2# df k
22. Now, that the disks are replaced, check if it is viewable from format command.
If its not viewable, run these commands - drvconfig, devlinks, disks
Suppose, the disk is not viewable from phys-mw1, then run these commands.
Phys-mw1# drvconfig
Phys-mw1# devlinks
Phys-mw1# disks
Phys-mw1# format
first blk
block count
1034
16
1050
1034
/dev/did/dsk/d18s7
/dev/did/dsk/d18s7
uptime of phys-mw2:
gisdbmw - running;
Data Service "nfs":
Not being managed on this system
Status Of Data Services Running On phys-mw2
No Status Method for Data Service "mwgisapi"
Data Service "sybase":
Not being managed on this system
Data Service "nfs":
On Logical Host gisfsmw:
Ok
RECENT ERROR MESSAGES FROM THE CLUSTER
Recent Error Messages on phys-mw1
Aug 9 14:27:00 phys-mw1 snmpdx: agent_process() : bad community from 10.100.202.1
Aug 9 14:27:00 phys-mw1 snmpdx: local pdu process error
Aug 9 14:27:00 phys-mw1 snmpdx: session_send_loopback_request() failed
Aug 9 14:27:00 phys-mw1 snmpdx: session_open() failed for a pdu received from 10.100.202.1.50038
Aug 9 14:35:05 phys-mw1 ID[SUNWcluster.fdl_enum_probe_disks.1105]: Accessed majority of diskset gisfsmw
replicas
Aug 9 14:35:08 phys-mw1 ID[SUNWcluster.fdl_enum_probe_disks.3036]: Cannot access disk c4t19d0
(/dev/did/rdsk/d30) in diskset gisfsmw, possibly due to a bad cable or controller.
Aug 9 14:35:08 phys-mw1 ID[SUNWcluster.fdl_enum_probe_disks.3036]: Cannot access disk c4t22d0
(/dev/did/rdsk/d39) in diskset gisfsmw, possibly due to a bad cable or controller.
Recent Error Messages on phys-mw2
Aug 9 14:26:58 phys-mw2 snmpdx: local pdu process error
Aug 9 14:26:58 phys-mw2 snmpdx: session_send_loopback_request() failed
Aug 9 14:26:58 phys-mw2 snmpdx: session_open() failed for a pdu received from 10.100.202.1.50039
Aug 9 14:40:17 phys-mw2 majmddb[7394]: open of '/dev/did/rdsk/d18s7' failed - No such device or address
Aug 9 14:40:17 phys-mw2 last message repeated 1 time
Aug 9 14:40:17 phys-mw2 majmddb[7394]: Finished all listed devices: succeeded=24 toolong=0 bad=2
Aug 9 14:40:17 phys-mw2 ID[SUNWcluster.fdl_enum_probe_disks.1105]: Accessed majority of diskset gisdbmw
replicas
phys-mw1#
Appendix B: Create partitions & mirroring of the disks
Hot Spare
/dev/did/rdsk/d25
/dev/did/rdsk/d25
/dev/did/rdsk/d18
/dev/did/rdsk/d18
Size
Blocks
8.16GB (4764/0/0) 17107524
0
(0/0/0)
0
0
(0/0/0)
0
0
(0/0/0)
0
201.64MB (115/0/0) 412965
5 unassigned
6 unassigned
7 unassigned
wm
wm
wu
4881 - 4886
10.52MB (6/0/0)
21546
4887 - 4923
64.88MB (37/0/0) 132867
0- 1
3.51MB (2/0/0)
7182
partition> q
FORMAT MENU:
disk
- select a disk
type
- select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label
- write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save
- save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> di
AVAILABLE DISK SELECTIONS:
0. c2t1d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/sbus@3,0/SUNW,socal@0,0/sf@0,0/ssd@w21000020374fe013,0
1. c4t1d0 <SUN9.0G cyl 4924 alt 2 hd 27 sec 133>
/sbus@b,0/SUNW,socal@0,0/sf@0,0/ssd@w2100002037222d57,0
Specify disk (enter its number)[1]: 0
selecting c2t1d0
[disk formatted]
format> p
PARTITION MENU:
0
- change `0' partition
1
- change `1' partition
2
- change `2' partition
3
- change `3' partition
4
- change `4' partition
5
- change `5' partition
6
- change `6' partition
7
- change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)
Part
Tag Flag Cylinders
Size
Blocks
0
root wm
0 - 73
129.75MB (74/0/0) 265734
1
swap wu
74 - 147
129.75MB (74/0/0) 265734
2 backup wu
0 - 4923
8.43GB (4924/0/0) 17682084
3 unassigned wm
0
0
(0/0/0)
0
4 unassigned wm
0
0
(0/0/0)
0
5 unassigned wm
0
0
(0/0/0)
0
6
usr wm 148 - 4923
7 unassigned wm
0
partition> 0
Part
Tag Flag
0
root wm
Cylinders
Size
0 - 73
129.75MB
Blocks
(74/0/0) 265734
Size
Blocks
0
(0/0/0)
0
0
(0/0/0)
0
8.43GB (4924/0/0) 17682084
0
(0/0/0)
0
0
(0/0/0)
0
0
(0/0/0)
0
0
(0/0/0)
0
0
(0/0/0)
0
partition> 7
Part
Tag Flag Cylinders
7 unassigned wm
0
Size
0
Blocks
(0/0/0)
0
Size
Blocks
0
(0/0/0)
0
0
(0/0/0)
0
8.43GB (4924/0/0) 17682084
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
wm
wm
wm
wm
wu
0
2 - 116
0
0
0- 1
partition> 0
Part
Tag Flag Cylinders
0 unassigned wm
0
0
(0/0/0)
0
201.64MB (115/0/0) 412965
0
(0/0/0)
0
0
(0/0/0)
0
3.51MB (2/0/0)
7182
Size
0
Blocks
(0/0/0)
0
Size
0
Blocks
(0/0/0)
0
Size
0
Blocks
(0/0/0)
0
Tag
Flag
Cylinders
Size
Blocks
Things to be checked in phys-mw1 & phys-mw2 server before updating in the worklog that RFC has been completed
successfully.
1.
phys-mw1# su sa
Sun Microsystems Inc. SunOS 5.6
Generic August 1997
You have new mail.
phys-mw1:/home/sa> showserver ----------------------------- Sybase database
UID PID PPID C STIME TTY
TIME CMD
sybase 6007 6001 0 Oct 17 ?
1550:30 /opt/sybase/bin/dataserver -d/gisdbmw/data3/master
-e/gisdbmw/syblog/gisdbmw.lo
sybase 6517 6007 0 Oct 17 ?
2002:43 /opt/sybase/bin/dataserver
-ONLINE:1,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6017 6015 0 Oct 17 ?
2:05 /opt/sybase/bin/backupserver -e/gisdbmw/syblog/gisdbmw_back.log
-N25 -C20 -Sgis
sybase 6527 6521 0 Oct 17 ?
1519:07 /opt/sybase/bin/dataserver
-ONLINE:3,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
sybase 6521 6517 0 Oct 17 ?
1633:38 /opt/sybase/bin/dataserver
-ONLINE:2,0,0x66006099,0xc3800000,0x2b4b6000,0x1159
phys-mw1:/home/sa>
Note : If you find any problem with Sybase database please contact with 1-WAMPAPP team.
Please refer Remedy Incident: 292913
2. Verify the Web services .
phys-mw2:/home/sa> ps -ef | grep httpd
nobody 4260 4259 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
root 4259 1 0 Oct 17 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 4403 4350 0 Oct 17 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.contestable.conf
nobody 4223 4221 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
root 4350 1 0 Oct 17 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.contestable.conf
nobody 4261 4259 0 Oct 17 ?
0:02 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 19175 4259 0 Oct 18 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 8669 4259 0 Oct 25 ?
0:01 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 4402 4350 0 Oct 17 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.contestable.conf
nobody 16054 4221 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
nobody 7241 4259 0 Oct 18 ?
0:02 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 4222 4221 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
root 4221 1 0 Oct 17 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
nobody 16055 4221 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
nobody 16056 4221 0 Oct 17 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
nobody 9497 4221 0 Oct 18 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
nobody 19233 4259 0 Oct 18 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 18539 4350 0 15:34:26 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.contestable.conf
nobody 7810 4259 0 Oct 18 ?
0:02 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 8667 4259 0 Oct 25 ?
0:01 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 24921 4221 0 Oct 19 ?
0:03 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
sa 23614 23547 0 07:30:26 pts/0 0:00 grep httpd
nobody 18449 4350 0 15:34:24 ?
0:00 /usr/apache/bin/httpd -f /etc/apache/httpd.contestable.conf
nobody 8664 4259 0 Oct 25 ?
0:01 /usr/apache/bin/httpd -f /etc/apache/httpd.external.conf
nobody 20439 4221 0 Oct 25 ?
0:01 /usr/apache/bin/httpd -f /etc/apache/httpd.internal.conf
phys-mw2:/home/sa>
T3 Storage
1)Vol add volname data undn raid n standby undn
2)Vol stat
3)Vol init volname data
4)Vol mount vol name
5)Vol list
6)Mkdir /dev/es
7)Luxadm insert
8)if above solaris 7 exclude the steps 6 & 7
1. List the files in current directory sorted by size ? - ls -l | grep ^- | sort -nr
2. List the hidden files in current directory ? - ls -a1 | grep "^\."
3. Delete blank lines in a file ? - cat sample.txt | grep -v ^$ > new_sample.txt
4. Search for a sample string in particular files ? - grep Debug *.confHere grep uses the string
Debug to search in all files with extension.conf under current directory.
5. Display the last newly appending lines of a file during appendingdata to the same file by some
processes ? - tail f Debug.logHere tail shows the newly appended data into Debug.log by some
processes/user.
6. Display the Disk Usage of file sizes under each directory in currentDirectory ? - du -k * | sort nr
(or) du k . | sort -nr
7. Change to a directory, which is having very long name ? - cd CDMA_3X_GEN*Here original
directory name is CDMA_3X_GENERATION_DATA.
8. Display the all files recursively with path under current directory ? - find . -depth -print
9. Set the Display automatically for the current new user ? - export DISPLAY=`eval who am i | cut
-d"(" -f2 | cut -d")" -f1`Here in above command, see single quote, double quote, grave ascent is used.
Observe carefully.
10. Display the processes, which are running under yourusername ? - ps aef | grep MaheshvjHere,
Maheshvj is the username.
11. List some Hot Keys for bash shell ? - Ctrl+l Clears the Screen. Ctrl+r Does a search in
previously given commands in shell. Ctrl+u - Clears the typing before the hotkey. Ctrl+a Places
cursor at the beginning of the command at shell. Ctrl+e Places cursor at the end of the command at
shell. Ctrl+d Kills the shell. Ctrl+z Places the currently running process into background.
12. Display the files in the directory by file size ? - ls ltr | sort nr k 5
13. How to save man pages to a file ? - man <command> | col b > <output-file>Example : man top |
col b > top_help.txt
14. How to know the date & time for when script is executed ? - Add the following script line in
shell script.eval echo "Script is executed at `date`" >> timeinfo.infHere, timeinfo.inf contains date
& time details ie., when script is executed and history related to execution.
15. How do you find out drive statistics ? - iostat -E
16. Display disk usage in Kilobytes ? - du -k
17. Display top ten largest files/directories ? - du -sk * | sort -nr | head
18. How much space is used for users in kilobytes ? - quot -af
19. How to create null file ? - cat /dev/null > filename1
20. Access common commands quicker ? - ps -ef | grep -i $@
21. Display the page size of memory ? - pagesize -a
22. Display Ethernet Address arp table ? - arp -a
23. Display the no.of active established connections to localhost ? - netstat -a | grep EST
24. Display the state of interfaces used for TCP/IP traffice ? - netstat -i
25. Display the parent/child tree of a process ? - ptree <pid> Example: ptree 1267
26. Show the working directory of a process ? - pwdx <pid> Example: pwdx 1267
27. Display the processes current open files ? - pfiles <pid> Example: pfiles 1267
28. Display the inter-process communication facility status ? - ipcs
29. Display the top most process utilizing most CPU ? - top b 1
30. Alternative for top command ? - prstat -a
The -o largefiles and -o nolargefiles options can be used to change the largefile compatibility flag. When
invoked without options fsadm prints the current state of the compatibility flags.
To enable to large file on veritas
The -o largefiles and -o nolargefiles options can be used to change the largefile compatibility flag
#fsadm (prints the current state of the compatibility flags)
#fsadm F vxfs o /hazly
group:
name=devdg id=1157983965.194.kirkcmis3
info:
format=cdsdisk,privoffset=256,pubslice=2,privslice=2
flags:
online ready private autoconfig autoimport imported
pubpaths: block=/dev/vx/dmp/VPATH_SANVC0_62s2 char=/dev/vx/rdmp/VPATH_SANVC0_62s2
version:
3.1
iosize:
min=512 (bytes) max=2048 (blocks)
public:
slice=2 offset=2304 len=85948160 disk_offset=0
private:
slice=2 offset=256 len=2048 disk_offset=0
update:
time=1193065091 seqno=0.51
ssb:
actual_seqno=0.0
headers:
0 240
configs:
count=1 len=1280
logs:
count=1 len=192
Defined regions:
config
priv 000048-000239[000192]: copy=01 offset=000000 disabled
config
priv 000256-001343[001088]: copy=01 offset=000192 disabled
log
priv 001344-001535[000192]: copy=01 offset=000000 disabled
lockrgn priv 001536-001679[000144]: part=00 offset=000000
Multipathing information:
numpaths:
1
vpath128c
state=enabled
root on BUILD kirkcmis3 # cd /etc/vx/cbr/bk/ (the default repository for DG information)
root on BUILD kirkcmis3 # ls -ltr
total 20
drwxr-x--2 root
root
512 Feb 2 2006 testdg.1138894812.396.kirkcmis3
drwxr-x--2 root
root
1024 Feb 3 2006
dr_sdmp3dg.1138715376.392.kirkcmis3
drwxr-x--2 root
root
1536 Sep 8 2006 test1.1157725540.188.kirkcmis3
drwxr-x--2 root
root
1536 Oct 22 15:59 infodg.1134131590.274.kirkcmis3
drwxr-x--2 root
root
1536 Oct 22 15:59
everestdg.1135092719.278.kirkcmis3
drwxr-x--2 root
root
1536 Dec 3 15:59 devdg.1157983965.194.kirkcmis3
I/O Fencing SCSI III Reservations - I/O Fencing (VxFEN) is scheduled to be included in the VCS 4.0 version. VCS
can have parallel or failover service groups with disk group resources in them. If the cluster has a split-brain, VxFEN
should force one of the subclusters to commit suicide in order to prevent data corruption. The subcluster which
commits suicide should never gain access to the disk groups without joining the cluster again. In parallel service
groups, it is necessary to prevent any active processes from writing to the disks. In failover groups, however, access to
the disk only needs to be prevented when VCS fails over the service group to another node. Some multipathing
products will be supported with I/O Fencing.