- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving extents on one disk to another disk
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
Discussions
Discussions
Forums
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
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
тАО03-04-2007 10:04 PM
тАО03-04-2007 10:04 PM
I need to remove two luns on a vg (cluster lock vg vgsapsys). The two luns are c9t2d0 and c9t2d1. The two luns are part of a vg (vgsapsys) comprises of ten luns. I want to remove these luns but these luns contain two lv's. I still need one of the lv's. The c9t2d0 contains lv's lvabap and lvabapvanman while the c9t2d1 has lvabap and lvabapsss. I still need the twoo lvabap's on the two luns. How can I transfer this to another lun in the same vg vgsapsys. Will it affect my data?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2007 10:57 PM
тАО03-04-2007 10:57 PM
Re: Moving extents on one disk to another disk
The command pvmove will do this.
# pvmove -n /dev/vgsapsys/lvabap /dev/dsk/c9t2d0 /dev/dsk/lun_of destination.
And the same with c9t2d1.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2007 11:05 PM
тАО03-04-2007 11:05 PM
Re: Moving extents on one disk to another disk
pvmove -n
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2007 11:13 PM
тАО03-04-2007 11:13 PM
Re: Moving extents on one disk to another disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2007 05:38 PM
тАО03-05-2007 05:38 PM
Re: Moving extents on one disk to another disk
Can I do the pvmove online without affecting my running application on which these two disks are on the same vg. Please check my procedure if this is correct.
1. cp - p /etc/lvmconf/vgsapsys.conf /etc/lvmconf/vgsapsys.conf.org. I am doing this in case the pvmove fails I still can go back to the old config.
2. pvmove -n /dev/vgsapsys/lvabap /dev/dsk/c9t2d0 /dev/dsk/c8t11d3
3. pvmove -n /dev/vgsapsys/lvabab /dev/dsk/c9t2d1 /dev/dsk/c8t11d3
4. lvremove -f /dev/vgsapsys/lvabapvanman
5. lvremove -f /dev/vgsapsys/lvabapsss
6. vgreduce /dev/vgsapsys /dev/dsk/c9t2d0
7. vgreduce /dev/vgsapsys /dev/dsk/c9t1d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 08:27 PM
тАО03-06-2007 08:27 PM
SolutionIf this Vg is part of the cluster, you must reflect the changes in the rest of the nodes.
On the node you have made the pvmove:
# vgexport -p -m mapfile vgsapsys
Then copy the mapfile to the oher node(s)
On the other node(s):
# ll /dev/vgsapsys/group (to see the minor number)
# vgexport vgsapsys
# mkdir /dev/vgsapsys
# mknod /dev/vgsapsys/group c 64 0xNN0000 (where NN is the same that had before)
# vgimport -m mapfile /dev/vgsapsys /dev/dsk/... (the PV's of vgsapsys in each node)
Regards