- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- On the fly disk replacement?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2011 06:21 AM
01-20-2011 06:21 AM
On the fly disk replacement?
I have to replace the external storage from a two node cluster (HPUX 11.11)
Only one VG, only one (shared) disk.
I saw the new disk also.
I have done:
# pvcreate /dev/rdsk/new
# vgextend /dev/vg01 /dev/dsk/new
# lvextend -m 1 /dev/vg01/lvol01 /dev/dsk/new
(for all LV's ...)
Can I now simply do the following steps?
# lvreduce -m 0 lvol01, ...
# vgreduce vg01 old-disk
Than
# vgexport -s -p -m /tmp/vg01.map /dev/vg01
cp, on second node
# vgimport -p -s -m /tmp/vg01.map vg01
Will this works?
Thanks for hints and helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2011 07:11 AM
01-20-2011 07:11 AM
Re: On the fly disk replacement?
lvreduce -m 0 /dev/vg/lvol /dev/dsk/
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2011 07:16 AM
01-20-2011 07:16 AM
Re: On the fly disk replacement?
yes, of course. this is correct. Otherwise the wrong (new) disk will be removed from mirror.
But the other steps, are they corrct and complete? Should it be really so easy? ;-)
Will the cluster accept the new disk when the old is removed? Label?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2011 08:05 AM
01-20-2011 08:05 AM
Re: On the fly disk replacement?
On second node: (not currently running the pkg)
vgexport /dev/vg
mkdir /dev/vg
mknod /dev/vg/group c 64 0x--0000
Then run your vgimport, without the -p (preview) option to repopulate your /etc/lvmtab.
vgimport -s -m /tmp/vg01.map /dev/vg01
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2011 08:11 AM - last edited on 11-10-2011 08:18 AM by Kevin_Paul
01-20-2011 08:11 AM - last edited on 11-10-2011 08:18 AM by Kevin_Paul
Re: On the fly disk replacement?
hi,
Your procedure almost gets into right. However refer the below thread, will give you clearance.
http://h30499.www3.hp.com/t5/LVM-and-VxVM/Changing-the-pv-s-in-a-vg/m-p/4068943#M30706
Rgds...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2011 03:06 AM
01-21-2011 03:06 AM
Re: On the fly disk replacement?
just (a little) wondering:
After I add the new disk, the map-file from vgexport has not changed.
So I think itàs corrct, no information about the PV's in the mapfile, only information about the VG and LV's?
So the VV will be discoverd after disk changes (using the VGID in mapfile), independently which disk are used (having the VG "inside") ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2011 05:37 AM
01-21-2011 05:37 AM
Re: On the fly disk replacement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2011 04:03 PM
01-22-2011 04:03 PM
Re: On the fly disk replacement?
use
lvreduce -m 0 /dev/vg/lvol /dev/dsk/
-----------
Than
# vgexport -s -p -m /tmp/vg01.map /dev/vg01
cp, on second node
# vgimport -p -s -m /tmp/vg01.map vg01
---
use option p while export ( preview mode)
while importing discard "p" option.
HTH
Regards,
INH