- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM moving primary & secondary mirrors to new addr...
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
11-02-2000 03:48 PM
11-02-2000 03:48 PM
LVM moving primary & secondary mirrors to new address
I'll be moving 6 disks to new SCSI channels. Five of the disks are mirrors of disks that won't be moving. I've done this before by taking backups
lvreduce -m 0 /dev/vg??/lvol1? /dev/dsk/c?t?d?,
vgreduce /dev/vg?? /dev/dsk/c?t?d?,
move the disk, vgextend /dev/vg?? /dev/dsk/newaddr
lvextend -m /dev/vg??/lvol? /dev/dsk/newaddr
This has worked when moving mirrors.
However in this move I'll be moving both the primary and secondary mirrors. The volume group has four disks with a single File system spanning both primary disks:
c4t2d0 mirrored on c15t2d0
c10t2d0 mirrored on c11t2d0
Both c10t2d0 and c11t2d0 will move to c13t2d0 and c16t2d0. Is the above procedure good for this scenario also?
Thanks to all who respond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2000 05:17 PM
11-02-2000 05:17 PM
Re: LVM moving primary & secondary mirrors to new address
Before brining down system, unmount filesystems for the vg and deactivate the volume group to export it.
# vgchange -a n /dev/vg_name
# vgexport -v -s -m /tmp/vg_name.map
-now shutdown box and make your changes
After box is backup and online, use vgimport
# mkdir /dev/vg_name
# mknod /dev/vg_name/group c 64 0x0?0000
(group minor number will be unique)
# vgimport -v -s -m /tmp/vg_name.map /dev/vg_name
# vgchange -a y /dev/vg_name
# mount -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2000 06:03 PM
11-02-2000 06:03 PM
Re: LVM moving primary & secondary mirrors to new address
Before brining down system, unmount filesystems for the vg and deactivate the volume group to export it.
# vgchange -a n /dev/vg_name
# vgexport -v -s -m /tmp/vg_name.map
-now shutdown box and make your changes
After box is backup and online, use vgimport
# mkdir /dev/vg_name
# mknod /dev/vg_name/group c 64 0x0?0000
(group minor number will be unique)
# vgimport -v -s -m /tmp/vg_name.map /dev/vg_name
# vgchange -a y /dev/vg_name
# mount -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 12:26 AM
11-03-2000 12:26 AM
Re: LVM moving primary & secondary mirrors to new address
pvcreate /dev/rdsk/c13t2d0
pvcreate /dev/rdsk/c16t2d0
vgextend vgXX /dev/dsk/c13t2d0 /dev/dsk/c16t2d0
pvmove /dev/dsk/c10t2d0 /dev/dsk/c13t2d0
pvmove /dev/dsk/c11t2d0 /dev/dsk/c16t2d0
vgreduce vgXX /dev/dsk/c10t2d0 /dev/dsk/c11t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2000 03:07 AM
11-03-2000 03:07 AM
Re: LVM moving primary & secondary mirrors to new address
I agree with Denver, exporting then importing the volume groups is the easy way to go as no disk data will actually be changed, only the disk addresses in /etc/lvmtab.
Regards,
John