- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing Logical Volume
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
09-08-2005 07:58 PM
09-08-2005 07:58 PM
I need to mirror an existing lv and once mirror would like to remove the original copy.
New harddisk: /dev/rdsk/c8t5d6
Original copy: /dev/vg30/lvol1 residing in /dev/dsk/c7t5d0
I will be doing the following steps:
1)vgextend /dev/vg30 /dev/dsk/c8t5d6
2)lvextend -m 1 /dev/vg30/lvol1 /dev/rdsk/c8t5d6
3)lvreduce -m 0 /dev/vg30/lvol1 /dev/dsk/c7t5d0
Query: Will there be any impact to my above mentioned steps?
Thanks/cliff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:04 PM
09-08-2005 08:04 PM
Re: Removing Logical Volume
I think you want to remove old disk. You can use pvmove command. First add new disk to same Volume grou and then use pvmove command.
#pvmove
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:05 PM
09-08-2005 08:05 PM
Re: Removing Logical Volume
Will it be locking the primary harddisk while i try to perform lvreduce if it is writing to primary harddisk?
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:07 PM
09-08-2005 08:07 PM
Re: Removing Logical Volume
I need to keep existing data onto new disks. Therefore pvremove will not be appropriate.
Correct?cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:07 PM
09-08-2005 08:07 PM
Re: Removing Logical Volume
No it does not lock any of the disks and read/writes to both will happen normally. The only impact will be slow performace as stated earlier.
Sunil,
pvmove will move all PE's of the disk to new disk which is not the intention here.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:11 PM
09-08-2005 08:11 PM
Re: Removing Logical Volume
If you want to remove the old disk having copy all its data to new disk then pvmove is the single command to achive that.
It is pvmove not pvremove. "man pvmove" for details.
It will be also run if you simple reduce the VG from the old disk after extending to the new disk.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:12 PM
09-08-2005 08:12 PM
Re: Removing Logical Volume
Am I right to presume my mentioned steps are correct?
Thanks/cliff :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:14 PM
09-08-2005 08:14 PM
Re: Removing Logical Volume
Yes the steps are correct. You can go ahead.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:16 PM
09-08-2005 08:16 PM
Re: Removing Logical Volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:23 PM
09-08-2005 08:23 PM
Re: Removing Logical Volume
You wanna move /dev/vg30/lvol1 from c7t5d0 into c8t5d6 with mirror, right ?
You can do the steps that wrote above, but the best way if there's no activity running on /dev/vg30/lvol1 when you want to lvreduce the one on c7t5d0 (either on the low peak or you shutdown the application that using this lvol).
The good way to do it if you have a downtime slot for it and make sure you have also a good backup.
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2005 08:28 PM
09-08-2005 08:28 PM
Re: Removing Logical Volume
Thanks for highlighting the EXTRA "r" in rdsk
You wanna move /dev/vg30/lvol1 from c7t5d0 into c8t5d6 with mirror, right ? YES correct.
Thanks/cliff :)