HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirror using LVM to migrate to another SAN - RAC w...
Operating System - HP-UX
1833346
Members
2902
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-12-2010 09:53 AM
08-12-2010 09:53 AM
Mirror using LVM to migrate to another SAN - RAC w/ MC SG
Hi, I have been reading a number of posts on the forums about using LVM to mirror the disks from one SAN to another. I believe that this could work for myself as well. However, I would like to clarify a couple of things.
I have a HPUX 11.11 MC SG cluster which is running Oracle RAC 9g. There are 3 RAC vg's which are setup in a server/client scenario between the 2 HPUX servers in the MC SG cluster. There is a lot of lv's in each vg all RAW.
So, my plan is to assign disks from the new SAN to both servers in the cluster. Probably would make more sense to create the new disks the same size as the old ones.
On the first server do the following....
pvcreate /dev/rdsk/cxtxdx
vgextend /dev/vg_rac1 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
lvextend -m 1 /dev/vg_rac1/lvol1 /dev/dsk/cxtxd1
Some disks have spanned disks so I believe I can mirror to multiple disks like?
lvextend -m 1 /dev/vg_rac2/lvol2 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
On the second server would I just run a vgscan? or do something else?
The cluster config has the "FIRST_CLUSTER_LOCK_PV" set so I would assume that I would have to change this to the new disk before I break the mirror to the new disks?
To break the mirror. On the first server issue.
lvreduce -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx
lvreducd -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx /dev/dsk/c2txdx
vgreduce /dev/vg_rac1 /dev/dsk/c1txdx /dev/dsk/c2txdx
pvremove /dev/rdsk/c1txdx
pvremove /dev/rdsk/c2txdx
On the second server again do a vgscan?
I would assume that all of these steps should be done with the cluster stopped?
I have a HPUX 11.11 MC SG cluster which is running Oracle RAC 9g. There are 3 RAC vg's which are setup in a server/client scenario between the 2 HPUX servers in the MC SG cluster. There is a lot of lv's in each vg all RAW.
So, my plan is to assign disks from the new SAN to both servers in the cluster. Probably would make more sense to create the new disks the same size as the old ones.
On the first server do the following....
pvcreate /dev/rdsk/cxtxdx
vgextend /dev/vg_rac1 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
lvextend -m 1 /dev/vg_rac1/lvol1 /dev/dsk/cxtxd1
Some disks have spanned disks so I believe I can mirror to multiple disks like?
lvextend -m 1 /dev/vg_rac2/lvol2 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
On the second server would I just run a vgscan? or do something else?
The cluster config has the "FIRST_CLUSTER_LOCK_PV" set so I would assume that I would have to change this to the new disk before I break the mirror to the new disks?
To break the mirror. On the first server issue.
lvreduce -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx
lvreducd -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx /dev/dsk/c2txdx
vgreduce /dev/vg_rac1 /dev/dsk/c1txdx /dev/dsk/c2txdx
pvremove /dev/rdsk/c1txdx
pvremove /dev/rdsk/c2txdx
On the second server again do a vgscan?
I would assume that all of these steps should be done with the cluster stopped?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP