HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Replace old disk with new disk online

 
unix55
Advisor

Replace old disk with new disk online

Hi,

 

I need to replace our below disk on on this volume group /dev/vg03/lvol1

 

disk      7  64000/0xfa00/0x6    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk7   /dev/rdisk/disk7
disk     14  64000/0xfa00/0x8    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk14   /dev/rdisk/disk14
disk     15  64000/0xfa00/0x9    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk15   /dev/rdisk/disk15
disk     16  64000/0xfa00/0xa    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk16   /dev/rdisk/disk16
disk     29  64000/0xfa00/0xb    esdisk  CLAIMED     DEVICE       online  DGC     RAID 5
                      /dev/disk/disk29   /dev/rdisk/disk29
disk     31  64000/0xfa00/0xc    esdisk  CLAIMED     DEVICE       online  DGC     RAID 5
                      /dev/disk/disk31   /dev/rdisk/disk31

 

with a new disk's would like to know what steps to take to ensure data is not lost. I am unable to shut the server down

 

my OS is 11.31 and bl860 i2 model

 

Thanks

10 REPLIES
Torsten.
Acclaimed Contributor

Re: Replace old disk with new disk online

This is a LUN from a hardware RAID. If you present another LUN with the same LUN# you need to work with scsimgr and replace wwid option (or just reboot). A new LUN with a new LUN# will get a new device file anyway.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
unix55
Advisor

Re: Replace old disk with new disk online

Hi,

 

sorry but i don't understand what do you mean with.

 

- This is a LUN from a hardware RAID

 

- If you present another LUN with the same LUN# (what do you mean with LUN# and how

to present new LUN with same LUN# already available)

 

i would like to know what steps to make this without lost data and without reboot. i am a beginner on hp-ux

 

Thanks

Torsten.
Acclaimed Contributor

Re: Replace old disk with new disk online

These are NOT plain disks presented to the server.

You have an array (made by EMC?), this presents LUNs to the server.

Ask your SAN or storage team for details!


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
unix55
Advisor

Re: Replace old disk with new disk online

Hi,

 

thanks for your support, but incase if idon't have EMC storage how to replace the old disk from EMC storage with new disk from IBM storage without lost data.

 

by using HP-UX command

 

Thanks

Torsten.
Acclaimed Contributor

Re: Replace old disk with new disk online

You have 2 options:

 

1) take a data backup, remove the old disks, bring the new disks in place and restore the data

 

2) mirror the data from the old to the new drives; then remove the mirror from the old drives, remove the old drives


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
unix55
Advisor

Re: Replace old disk with new disk online

Hi,

 

thanks for your support, but can you tell me the steps for option 2

 

"2) mirror the data from the old to the new drives; then remove the mirror from the old drives, remove the old drives"

 

if i want to replace these disk

 

disk      7  64000/0xfa00/0x6    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk7   /dev/rdisk/disk7
disk     14  64000/0xfa00/0x8    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk14   /dev/rdisk/disk14
disk     15  64000/0xfa00/0x9    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk15   /dev/rdisk/disk15

 

with these disk

 

disk     20  64000/0xfa00/0x8   esdisk  CLAIMED     DEVICE       online  DGC     CX4-960WDVR
                      /dev/disk/disk20   /dev/rdisk/disk20
disk     21  64000/0xfa00/0x9   esdisk  CLAIMED     DEVICE       online  DGC     CX4-960WDVR
                      /dev/disk/disk21   /dev/rdisk/disk21
disk     22  64000/0xfa00/0xa   esdisk  CLAIMED     DEVICE       online  DGC     CX4-960WDVR
                      /dev/disk/disk22   /dev/rdisk/disk22

Thanks

Re: Replace old disk with new disk online

>but can you tell me the steps for option 2?

  

Do you have magic hardware mirroring on your storage device?  Probably not likely if old is EMC and new is IBM.


Otherwise you would need to have/purchase software mirroring, Mirrordisk/UX:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B2491BA

Torsten.
Acclaimed Contributor

Re: Replace old disk with new disk online

extend the VG with the new disks, mirror the LVOLs to the new disks, then remove the mirror from the old disks and reduce the old disks from the VG.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
unix55
Advisor

Re: Replace old disk with new disk online

Hi Torston,

 

 

Old disk

 

disk      7  64000/0xfa00/0x6    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk7   /dev/rdisk/disk7


disk     14  64000/0xfa00/0x8    esdisk  CLAIMED     DEVICE       online  DGC     VRAID
                      /dev/disk/disk14   /dev/rdisk/disk14

 

New Disk

 

disk     20  64000/0xfa00/0x8   esdisk  CLAIMED     DEVICE       online  DGC     CX4-960WDVR
                      /dev/disk/disk20   /dev/rdisk/disk20

 

disk     21  64000/0xfa00/0x9   esdisk  CLAIMED     DEVICE       online  DGC     CX4-960WDVR
                      /dev/disk/disk21   /dev/rdisk/disk21

 

 

 

 

Torsten.
Acclaimed Contributor

Re: Replace old disk with new disk online

Looks good.

 

Replace

 

# lvextend -m 1 /dev/vg03/lvol1 /dev/dsk/disk20 ====> i mirror the new dik for all lvol under vg03

 

 

 

 

 

 


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!