Vous êtes sur la page 1sur 12

Disk Replacement on phys-mw1 and phys-mw2

Symptoms:
DID devices d18, d30, d39 are in Needs Maintenance state. (phys-mw2 on SENA-B)
format command was showing drive type unknown for these DID devices.

To begin the Oracle installation using the Veritas DBE/AC, a shared disk group and the
necessary volumes need to be created.
The following steps provide an example of how to create the disk group and volumes:
1. From the master node in the cluster, create the shared disk group on the shared disk c2t3d1:

# vxdg -s init orasrv_dg c2t4d2

2. Set the connectivity policy for the disk group as local:

# vxedit set diskdetpolicy=local orasrv_dg

3. Create the volume in the shared disk group:

# vxassist -g orasrv_dg make srvm_vol 200M

4. Set the activation mode to read-write:

# vxdg -g orasrv_dg set activation=sw

5. On the other node, enter:

# vxdg -g orasrv_dg set activation=sw

6. In order to create the cluster file system, on the other node, enter:

# vxdg -g orasrv_dg set activation=sw

7. To create the file system on srvm_vol:

# mkfs -F vxfs /dev/vx/rdsk/orasrv_dg/srvm_vol

8. On both systems, create the mount point for the file system:

# mkdir /orasrv

9. On both systems, mount the file system, using the device file for the block device. Use the option flag
o cluster.

# mount -F vxfs -o cluster /dev/vx/dsk/orasrv_dg/srvm_vol /orasrv

10. To determine which node is the master, use the command:

vxdctl -c mode
In the output, look for:
cluster active - MASTER
or:
cluster active - SLAVE

Resolution:
Step-I

1
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:


1. Login to console of phys-mw1 & phys-mw2.
telnet 10.100.175.6 using ports 2 & 3
2. Login to phys-mw1 and switch the resource group gisdbmw to phys-mw2.
Phys-mw1# scadmin switch mwgis phys-mw2 gisdbmw 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
4. Stop the cluster services on phys-mw1
Phys-mw1# scadmin stopnode .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
6. Reboot phys-mw1 server
Phys-mw1# shutdown y g0 i6 .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
10. From phys-mw2, Switch back gisdbmw back to phys-mw1.
Phys-mw2# scadmin switch mwgis phys-mw1 gisdbmw ..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
12. Switch the resource group gisfsmw from phys-mw2 to phys-mw1
Phys-mw2# scadmin switch mwgis phys-mw1 gisfsmw 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
2
14. Stop the cluster services on phys-mw2
Phys-mw2# scadmin stopnode .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
16. Reboot phys-mw2 server
Phys-mw2# shutdown y g0 i6 ..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
20. Switch the resource group gisfsmw from phys-mw1 to phys-mw2
Phys-mw1# scadmin switch mwgis phys-mw2 gisfsmw 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)
21. Check if everything is fine on both the server
Phys-mw1# hastat .Check if resource groups are owned by correct servers
Phys-mw1# df k .Check if all the filesystem are mounted
Phys-mw2# hastat .Check if resource groups are owned by correct servers
Phys-mw2# df k .Check if all the filesystem are mounted
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 Check if the disk is viewable.
23. Disks needs to be added as DID device at the kernel level.
To add DID device d18, d30 and d39, run scdidadm R <DID> from the primay node (phys-mw1)
Phys-mw1# scdidadm R d18
Phys-mw1# scdidadm R d30
Phys-mw1# scdidadm R d39
24. hastat output is as shown in Appendix A.
25. Partitions the disks and mirror them as described in Appendix B.
Note: If any state database replicas exist on the failed disk (DID device), then delete the state database
3
replicas & then reboot the server. In phys-mw1, DID device d18 is containing the state database replicas. This
was removed before reboot.
phys-mw1# metadb -s gisdbmw
flags first blk block count
W l 16 1034 /dev/did/dsk/d18s7
W l 1050 1034 /dev/did/dsk/d18s7
phys-mw1# metadb d /dev/did/dsk/d18s7
After reboot and after scdidadm R d18
Phys-mw1# metadb ac 2 /dev/did/dsk/c18s7
Appendix A : hastat output
phys-mw1# hastat
Getting Information from all the nodes ......
HIGH AVAILABILITY CONFIGURATION AND STATUS
-------------------------------------------
LIST OF NODES CONFIGURED IN <mwgis> CLUSTER
phys-mw1 phys-mw2

CURRENT MEMBERS OF THE CLUSTER


phys-mw1 is a cluster member
phys-mw2 is a cluster member

CONFIGURATION STATE OF THE CLUSTER


Configuration State on phys-mw1: Stable
Configuration State on phys-mw2: Stable

UPTIME OF NODES IN THE CLUSTER


uptime of phys-mw1: 3:56pm up 34 day(s), 22:13, 2 users, load average: 0.97, 1.03, 1.01
uptime of phys-mw2: 3:56pm up 34 day(s), 19:43, 6 users, load average: 1.29, 1.24, 1.38

LOGICAL HOSTS MASTERED BY THE CLUSTER MEMBERS


Logical Hosts Mastered on phys-mw1:
gisdbmw
Logical Hosts for which phys-mw1 is Backup Node:
gisfsmw

Logical Hosts Mastered on phys-mw2:


gisfsmw
Logical Hosts for which phys-mw2 is Backup Node:
gisdbmw

LOGICAL HOSTS IN MAINTENANCE STATE


None

STATUS OF PRIVATE NETS IN THE CLUSTER

Status of Interconnects on phys-mw1:


interconnect0: selected
interconnect1: up
Status of private nets on phys-mw1:
To phys-mw1 - UP
To phys-mw2 - UP

Status of Interconnects on phys-mw2:


interconnect0: selected
interconnect1: up
Status of private nets on phys-mw2:
To phys-mw1 - UP
4
To phys-mw2 - UP

STATUS OF PUBLIC NETS IN THE CLUSTER

Status of Public Network On phys-mw1:


bkggrp r_adp status fo_time live_adp
nafo0 hme0:hme3 OK NEVER hme0

Status of Public Network On phys-mw2:


bkggrp r_adp status fo_time live_adp
nafo0 hme0:hme3 OK NEVER hme0

STATUS OF DATA SERVICES RUNNING IN THE CLUSTER


Status Of Registered Data Services
mwgisapi: On
sybase: On
nfs: On

Status Of Data Services Running On phys-mw1


Data Service "mwgisapi":
Not being managed on this system
Data Service "sybase":
Database Status on phys-mw1:
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
Appendix B: Create partitions & mirroring of the disks

1. To check which disks are mirrored.

phys-mw1# metastat -s gisdbmw d20

5
gisdbmw/d20: Trans
State: Okay
Size: 17107524 blocks
Master Device: gisdbmw/d21
Logging Device: gisdbmw/d24

gisdbmw/d21: Mirror
Submirror 0: gisdbmw/d22
State: Needs maintenance
Submirror 1: gisdbmw/d23
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 17107524 blocks

gisdbmw/d22: Submirror of gisdbmw/d21


State: Needs maintenance
Invoke: metareplace gisdbmw/d21 /dev/did/dsk/d18s0 <new device>
Size: 17107524 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
/dev/did/dsk/d18s0 0 No Maintenance

gisdbmw/d23: Submirror of gisdbmw/d21


State: Okay
Size: 17107524 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
/dev/did/dsk/d25s0 0 No Okay

2. Check what disks represent these did devices.

phys-mw1# scdidadm -L |grep d25


25 phys-mw2:/dev/rdsk/c4t1d0 /dev/did/rdsk/d25
25 phys-mw1:/dev/rdsk/c4t1d0 /dev/did/rdsk/d25
phys-mw1# scdidadm -L |grep d18
18 phys-mw2:/dev/rdsk/c2t1d0 /dev/did/rdsk/d18
18 phys-mw1:/dev/rdsk/c2t1d0 /dev/did/rdsk/d18

3. Partition the disks as follows:

phys-mw1# format c4t1d0 c2t1d0

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
selecting c4t1d0
[disk formatted]
format> p

PARTITION MENU:
partition> p
Current partition table (original):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 117 - 4880 8.16GB (4764/0/0) 17107524
1 unassigned wm 0 0 (0/0/0) 0

6
2 unassigned wm 0 0 (0/0/0) 0
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 4881 - 4886 10.52MB (6/0/0) 21546
6 unassigned wm 4887 - 4923 64.88MB (37/0/0) 132867
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182
partition> q

FORMAT MENU:
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:
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 8.18GB (4776/0/0) 17150616
7 unassigned wm 0 0 (0/0/0) 0

partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 73 129.75MB (74/0/0) 265734

Enter partition id tag[root]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[265734b, 74c, 129.75mb, 0.13gb]: 0
partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 74 - 147 129.75MB (74/0/0) 265734

Enter partition id tag[swap]:


Enter partition permission flags[wu]:
Enter new starting cyl[74]:
Enter partition size[265734b, 74c, 129.75mb, 0.13gb]: 0
partition> 6

Part Tag Flag Cylinders Size Blocks


6 usr wm 148 - 4923 8.18GB (4776/0/0) 17150616

Enter partition id tag[usr]:


Enter partition permission flags[wm]:

7
Enter new starting cyl[148]:
Enter partition size[17150616b, 4776c, 8374.32mb, 8.18gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

partition> 7
Part Tag Flag Cylinders Size Blocks
7 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:


Enter partition permission flags[wm]: wu
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 2c
partition> 4
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]: 2
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 115c
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182

partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]: 117
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 4764c
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 117 - 4880 8.16GB (4764/0/0) 17107524
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084

8
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182

partition> 5
Part Tag Flag Cylinders Size Blocks
5 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]: 4881
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 6
Please specify units in either b(blocks), c(cylinders), m(megabytes) or g(gigabytes)
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 6c
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 117 - 4880 8.16GB (4764/0/0) 17107524
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 4881 - 4886 10.52MB (6/0/0) 21546
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182

partition> 6
Part Tag Flag Cylinders Size Blocks
6 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]: 4887
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: $
partition> p
Current partition table (unnamed):
Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 unassigned wm 117 - 4880 8.16GB (4764/0/0) 17107524
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 4923 8.43GB (4924/0/0) 17682084
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 2 - 116 201.64MB (115/0/0) 412965
5 unassigned wm 4881 - 4886 10.52MB (6/0/0) 21546
6 unassigned wm 4887 - 4923 64.88MB (37/0/0) 132867
7 unassigned wu 0- 1 3.51MB (2/0/0) 7182

partition> l
Ready to label disk, continue? y

partition> q

FORMAT MENU:
format> q

4. Check out what mirrors needs to re-synced.


phys-mw1# metastat -s gisdbmw |grep d18

9
Invoke: metareplace gisdbmw/d21 /dev/did/dsk/d18s0 <new device>
/dev/did/dsk/d18s0 0 No Maintenance
Invoke: metareplace gisdbmw/d121 /dev/did/dsk/d18s4 <new device>
/dev/did/dsk/d18s4 0 No Maintenance
Invoke: metareplace gisdbmw/d124 /dev/did/dsk/d18s6 <new device>
/dev/did/dsk/d18s6 0 No Maintenance
Invoke: metareplace gisdbmw/d0 /dev/did/dsk/d18s5 <new device>
/dev/did/dsk/d18s5 0 No Maintenance

5. Resync the mirrors.


phys-mw1# metareplace -e gisdbmw/d21 /dev/did/dsk/d18s0
gisdbmw/d21: device /dev/did/dsk/d18s0 is enabled
phys-mw1# metareplace -e gisdbmw/d121 /dev/did/dsk/d18s4
gisdbmw/d121: device /dev/did/dsk/d18s4 is enabled
phys-mw1# metareplace -e gisdbmw/d124 /dev/did/dsk/d18s6
gisdbmw/d124: device /dev/did/dsk/d18s6 is enabled
phys-mw1# metareplace -e gisdbmw/d0 /dev/did/dsk/d18s5
gisdbmw/d0: device /dev/did/dsk/d18s5 is enabled

6. Check out if they are re-syncing..


phys-mw1# metastat -s gisdbmw |grep %
Resync in progress: 2 % done
Resync in progress: 35 % done
Resync in progress: 54 % done
phys-mw1# metastat s gisdbmw |grep Main
phys-mw1# metastat -s gisdbmw |grep -i main

Update from Rajiba Swain


INC000000290763 & RFC: 16070
Disks c2t0d0(d17) & c2t22d0 (d9) and Fan (SENA B: 1-in rear) failed within the SENA B disk array attached to phys-
mw1 & phys-mw2 ... the disks & FAN will be hot-swapped by a HP.CDS engineer .

Step-1
1. Replace the faulty disk(s).
phys-mw2# luxadm remove B,r6
>> Issue the above command , then inform to Synstar person to remove the faulty disk and then insert
the new disk . (In this case it is r6)

>> After getting confirmation from Synstar issue the following command
phys-mw2# luxadm insert B,r6

>> Verify the disk geometry


phys-mw2# format c2t22d0

>> Create the partition table in the disk


Step-2

Follow the steps mentioned in the Original document.


Normally the disks will be detected automatically .Problem we faced during the RFC;

After rebooting the server, one disk (d17) is detected in did list of cluster but another disk (d9) is not configured in did
list.

phys-mw2# metareplace -e gisfsmw/d21 /dev/did/dsk/d9s0


metareplace: phys-mw2: /dev/did/dsk/d9s0: No such device or address --- error message

So we follow the bellow mentioned steps phys-mw1 and phys-mw2 server


We Ran:

10
Phys-mw1# drvconfig
Phys-mw1# devlinks
Phys-mw1# disks
Phys-mw2# drvconfig
Phys-mw2# devlinks
Phys-mw2# disks
Try to attach the disks in metadevice. If again facing same problem then following these steps:
Phys-mw1# drvconfig
Phys-mw1# devlinks
Phys-mw1# disks
Phys-mw2# drvconfig
Phys-mw2# devlinks
Phys-mw2# disks
Step-3
Things to be checked in phys-mw1 & phys-mw2 server before updating in the worklog that RFC has been completed
successfully.
1. Only in phys-mw1 server
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

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.
11
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

12

Vous aimerez peut-être aussi