HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swapping a PV in LVM based on a "snapshot"
Operating System - HP-UX
1836457
Members
2394
Online
110101
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
04-11-2006 10:36 AM
04-11-2006 10:36 AM
swapping a PV in LVM based on a "snapshot"
here is what i have on my L3000 running 11.11: a VG called /dev/vg01 with 2 PVs c11t0d1 and c12t0d0 (both these LUNs on an EMC Cx400).
what i want to do is temporarily replace c11t0d1 with c11t0d2, only as a test ...since c11t0d2 is an EMC SnapView snapshot of c11t0d1, basically a point-in-time copy. not sure how to trick LVM into allowing this kind of snapshot testing. note that c12t0d0 is an active PV that i do not what to take offline, etc... while c11t0d1 is just a test PV with a test file system that uses all the PEs of that PV.
thx, marc
what i want to do is temporarily replace c11t0d1 with c11t0d2, only as a test ...since c11t0d2 is an EMC SnapView snapshot of c11t0d1, basically a point-in-time copy. not sure how to trick LVM into allowing this kind of snapshot testing. note that c12t0d0 is an active PV that i do not what to take offline, etc... while c11t0d1 is just a test PV with a test file system that uses all the PEs of that PV.
thx, marc
hola
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 03:56 PM
04-11-2006 03:56 PM
Re: swapping a PV in LVM based on a "snapshot"
First I think you will have to take c11t0d2 out of snap view.
Include disk-c11t0d2 in vg01. Then do pvmove and then take out c11t0d1.
man pvmove for details.
Include disk-c11t0d2 in vg01. Then do pvmove and then take out c11t0d1.
man pvmove for details.
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2006 07:03 AM
04-14-2006 07:03 AM
Re: swapping a PV in LVM based on a "snapshot"
RAC, thx for the feedback but your comments imply i am interested in testing the disk c11t0d2 only ...i really am interested in testing the actual data while on that disk and so a "pvmove" is not the command.
basically, i will test/hack-away using "vgexport" and "vgimport" and update this post with my results when i am able to setup a test env to do it ...just wanting to learn/test how to look a EMC snaps in a LVM environment where at times its only a few of the many PVs that are of interest and thus snapped.
basically, i will test/hack-away using "vgexport" and "vgimport" and update this post with my results when i am able to setup a test env to do it ...just wanting to learn/test how to look a EMC snaps in a LVM environment where at times its only a few of the many PVs that are of interest and thus snapped.
hola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2006 09:57 AM
04-14-2006 09:57 AM
Re: swapping a PV in LVM based on a "snapshot"
Hi Marc,
How about doing a vgreduce followed by vgextend i.e.
# vgreduce /dev/dsk/c11t0d1
# vgextend /dev/dsk/c11t0d2
Just suggesting...never tried it myself, backup your LVM configuration before and after this procedure. Your best bet is to create a new VG; change c11t0d2's VGID; import c11t0d2 into the new VG; activate VG and mount the lvols.
hope it helps!
How about doing a vgreduce followed by vgextend i.e.
# vgreduce /dev/dsk/c11t0d1
# vgextend /dev/dsk/c11t0d2
Just suggesting...never tried it myself, backup your LVM configuration before and after this procedure. Your best bet is to create a new VG; change c11t0d2's VGID; import c11t0d2 into the new VG; activate VG and mount the lvols.
hope it helps!
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