Operating System - HP-UX
1753819 Members
9337 Online
108805 Solutions
New Discussion юеВ

How to rename disks in HP-UX 11iV3 / 11.31

 
Holger Nieraad
Advisor

How to rename disks in HP-UX 11iV3 / 11.31

Hello,

is it possible to rename disks in 11.31? For example: disk45 to disk10 ?
I know this is possible in Tru64 with #dsfmgr.
But this tool is not implemented in HP-UX.

regards
-Holger Nieraad-
9 REPLIES 9
AwadheshPandey
Honored Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31

HN,

Disk names are diffrent in HP-UX than Tru64. If you will issue a ioscan -fnCdisk you will find disk name in format /dev/dsk/c#t#d#.
c# ├в The number of the controller to which the disk drive is attached (used on HP-UX systems)

t# and d# ├в The target ID and device number that constitute the address of the disk drive on the controller (used on HP-UX systems)

s2 ├в The HP-UX partition number on the boot disk drive (used on HP-UX 11i Version 1.5 systems)

http://forums1.itrc.hp.com/service/forums/postanswer.do?threadid=1155293&forumId=1&closedFlag=0
It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31

Add on:
Furthe disk can utilize in LVM or VxVM, there you can create logical partitions and name as per your choice.
http://docs.hp.com/en/B7961-90020/ch03s07.html
It's kind of fun to do the impossible
Holger Nieraad
Advisor

Re: How to rename disks in HP-UX 11iV3 / 11.31

I use the new agile view in 11.31.
So, i find disk45 and would rename it to disk10.


# ioscan -funC disk -N
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 10 64000/0xfa00/0x0 esdisk CLAIMED DEVICE TEAC DW-224E
/dev/disk/disk10 /dev/rdisk/disk10
disk 11 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/disk/disk11 /dev/rdisk/disk11
/dev/disk/disk11_p1 /dev/rdisk/disk11_p1
/dev/disk/disk11_p2 /dev/rdisk/disk11_p2
/dev/disk/disk11_p3 /dev/rdisk/disk11_p3
disk 45 64000/0xfa00/0x15 esdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/disk/disk45 /dev/rdisk/disk45
marie-noelle jeanson
Valued Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31

Hi,

You may want to use the command io_redirect_dsf (1M). See http://docs.fc.hp.com/en/B2355-60130/io_redirect_dsf.1M.html

Example:
io_redirect_dsf -d /dev/disk/disk23 -n /dev/disk/disk26

Marie.
marie-noelle jeanson
Valued Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31

By the way, ioinit -f is another possibility to do the same.
See ioinit(1m).

Marie.
whiteknight
Honored Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31


Hi Holger,

See the 11iv3 LVM management also few things to consider as well (see steps 1-10)

http://docs.hp.com/en/5991-6481/ch04s09.html


WK

please assign points
Problem never ends, you must know how to fix it
Steven E. Protter
Exalted Contributor

Re: How to rename disks in HP-UX 11iV3 / 11.31

Shalom,

Disk renaming procedures, which are really instance re-numbering procedures have limited ability to change the name's of disks.

However if all the disks in your system were present at first install, you are unlikely to get meaningful change from this risky procedure.

Far better than that is using lvcreate -n name to name logical volumes in a fashion that you prefer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ZAS-HP_Onsite
New Member

Re: How to rename disks in HP-UX 11iV3 / 11.31

Hello & thanks,

io_redirect_dsf -d /dev/disk/disk23 -n /dev/disk/disk26 works only, when dsf (here 26) is present.
In my case it was not, and i try it with ioinit -f -> reboot. And this works.
Thanks for all hints in this case
-Holger-
Holger Nieraad
Advisor

Re: How to rename disks in HP-UX 11iV3 / 11.31

thx for all replys
Works fine.

-Holger-