Switch disk names ?


 
Thread Tools Search this Thread
Operating Systems AIX Switch disk names ?
# 1  
Old 12-22-2008
Switch disk names ?

Hello,

I have the following problem:
My HACMP is configured to use certain disk name (hdisk12) for heartbeat function, it uses name, not PVID for that. And now after some reconfiguration my heartbeat disk changed it's name - now it's hdisk11, and hdisk12 is taken by another disk.
I assume that switching disk names is mutch more easier task than changing HACMP config (I'm not very good in HACMP).
How to switch names of two certain disks ?

please help!

thank you in advance
Vilius
# 2  
Old 12-23-2008
Changing hdisk device names is tedious. I'd reconfigure disk heartbeat devices.

If you want to change hdisk names you need to rmdev -dl them. You could use dummy disks to keep cfgmgr from taking certain hdisk names (hdisk12) and then delete the dummy and the former hdisk12 to make it become hdisk12 after another rmdev command. If you delete all of the hdisk devices cfgmgr should be forced to detect devices in a serial way but not in parallel (-S option) but even then the row in which the disks are being detected might be different if signal runtime is influenced by your FC network (especially if your storage is located in different data centers).

Either way you can damage your cluster.... which HACMP version do you use?
# 3  
Old 12-23-2008
I also thought something about adding pseudo hdisk.
How to create dummy hdisk ?
And I can always create some dummy disk using static command or it depends on harware config ?

thanks
Vilius
# 4  
Old 12-23-2008
Quote:
Originally Posted by vilius
[...]How to create dummy hdisk ?
And I can always create some dummy disk using static command or it depends on harware config ?[...]
Depends on the type of disk controller your server has (i.e. the hdisks intended parent). You could use SMIT
# smit makdsk
or the commandline. To give an example for a scsi disk controller:
Code:
(0)aserver:/ 9# lsdev | grep scsi
iscsi0      Available              iSCSI Protocol Device
scsi0       Available 10-80        Wide/Fast-20 SCSI I/O Controller
(0)aserver:/ 10# mkdev -d -cdisk -t1100mb -sscsi -pscsi0 -w0,40
hdisk18 Defined
(0)aserver:/ 11# lscfg -vl hdisk18
  hdisk18          P1/Z1-A0.32  1.1 GB SCSI Disk Drive
(0)aserver:/ 12#

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

DISK ARRAY PROTECTION SUSPENDED message displayed following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (1 Reply)
Discussion started by: terrya
1 Replies

2. Shell Programming and Scripting

Exclude certain file names while selectingData files coming in different names in a file name called

Data files coming in different names in a file name called process.txt. 1. shipments_yyyymmdd.gz 2 Order_yyyymmdd.gz 3. Invoice_yyyymmdd.gz 4. globalorder_yyyymmdd.gz The process needs to discard all the below files and only process two of the 4 file names available ... (1 Reply)
Discussion started by: dsravanam
1 Replies

3. Shell Programming and Scripting

how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable

hi, how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable which needs to be connected to one console server having rj11 on its side and db 9 female on other end.i.e. on switch side,console cable has rj45 and db 9 pin female connector on other side of... (1 Reply)
Discussion started by: pankajd
1 Replies

4. Shell Programming and Scripting

Searching for file names in a directory while ignoring certain file names

Sun Solaris Unix Question Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies

5. Solaris

( VxVM ) How to add the removed disk back to previous disk group

Previously , i remove the disk by #vxdg -g testdg -k rmdisk testdg02 But i got error when i -k adddisk bash-2.03# vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none ... (1 Reply)
Discussion started by: waibabe
1 Replies

6. Filesystems, Disks and Memory

DG/UX : disk names ?!

hi there, i normaly worked with linux, but at the moment i have to setup an dg/ux maschine ( intel based ). ok, now i want to wirte a simple backup script :-) i will use dd to copy scsi disk 1 to disk 2 :-) under linux i would write something liek this : dd if=/dev/sda of=/dev/sdb or... (2 Replies)
Discussion started by: Agent_Orange
2 Replies
Login or Register to Ask a Question