Operating System - HP-UX
1748100 Members
5417 Online
108758 Solutions
New Discussion юеВ

Re: replacing the data disk

 
gany59
Regular Advisor

replacing the data disk

How to replace the data disk, in the vg01 .. I have 3 disks in the vg01, one disk is faulty and there are 4 file systems are mounted in the vg01.

Thanks for your contribution!
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: replacing the data disk

If not mirrored, replace the disk, recreate the filesystem and restore the data.

See

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

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!   
P Arumugavel
Respected Contributor

Re: replacing the data disk

If it is not mirrired, replace the disk, and verify that it is recognized by the OS with ioscan.
restore the PV header to the new disk and reactivate the VG:
# vgcfgrestore -n vg01 /dev/rdsk/c?t?d?
# vgchange -a y vg01
locate the LVs that have extents on this disk:
# pvdisplay -v /dev/dsk/c?t?d?
Create filesystems for each LV and restore the data from backup.
Raj D.
Honored Contributor

Re: replacing the data disk



Gany,

1. Locate what are the lv and filesystems are affected by the failure of that disk.

# lvdisplay -v /dev//lvolx | grep # if you have earlier output it would be helpful, as it would show stale at this condition.
...
You will have idea what lv(s) was there on that disk.


2. -Once the disk replaced.
- unmount all current lvs.
- vgchange -a n vg01

-restore the PV header :

vgcfgrestore -n vg01 /dev/vg01/ctd_of_newdisk
vgchagne -a y vg01


3. re-create the filesystem with same name.
- newfs -F vxfs -o largefiles /dev/vg01/lvolx


4. Mount the FS(s). (per /etc/fstab and lv name )

5. Restore the data from backup.NBU or DP. or Tape, to the filesystem(s).

6. verify.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "