- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvsplit command
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
08-01-2006 08:36 PM
08-01-2006 08:36 PM
lvsplit command
I have a VG with a disk A in it. I have added disk B in that VG. I mirrored all the LV in A to B. Now I want to split the mirror in such a way that all the LV with the present name should remain on disk B [ like lvol1 ] & the lvs in disk A come up with names like lvol1b. My intension is the storage migration without taking downtime of the database. Presently the DB is on disk A & I want to move it in disk B.
Can we specify disk device name in lvsplit command? Pls help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 08:43 PM
08-01-2006 08:43 PM
Re: lvsplit command
The command lvsplit breaks a mirror based on the disks its currently on. To achieve these results you should break the mirror and then lvextend -m 1 specifying the target disk as the second mirror copy.
Then the normal lvsplit command or mirror reduction with lvextend -m 0 will work.
Note however, that a database such as oracle must be DOWN for this type of replication to preserver the data.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 02:39 AM
08-02-2006 02:39 AM
Re: lvsplit command
We perform online backups by splitting the logical volumes so we have a mirrored logical volume called disk1:
lvsplit /dev/vg01/disk1 thid creates a second logical volume called /dev/vg01/disk1b - we then fsck /dev/vg01/disk1b mount it to a temporary mount point:
mount /dev/vg01/disk1b /tmp_mnt we can then back the system up whilst users are still "using" the system (they write/read from /dev/vg01/disk1")
Once the disk1b backup completes we umount /tmp_mnt and then merge the logical volumes:
lvmerge /dev/vg01/disk1b /dev/vg01/disk1 - this "synch" the splitted logical volume with the "master" with no downtime ...... is this what you want to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 04:12 PM
08-02-2006 04:12 PM
Re: lvsplit command
My challange is how can i split the missorset of LV by specifying the disk which i want to remove. I dont want to do a lvreduce for the roll back operation purpose.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 12:03 AM
08-03-2006 12:03 AM
Re: lvsplit command
Correct me if I'm wrong, but all you are doing is migrating data from disc A to disc B?
All you need to do is a vgextend to add the new disc, then pvmove the LVs onto the new disc:
1) vgextend vgDB /dev/dsk/discB
THEN
2) pvmove -n /dev/vgDB/lvolX /dev/dsk/discA /dev/dsk/discB
and do that for each LV
OR
2) pvmove /dev/dsk/discA /dev/dsk/discB to move everything from disc A to discB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 01:51 AM
08-03-2006 01:51 AM
Re: lvsplit command
I am not sure but in case of pvmove is it possible if A & B are different size LUN?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 02:03 AM
08-03-2006 02:03 AM
Re: lvsplit command
You can just create the mirror and pull the disc - I've done this countless times while trying to migrate servers from one room to another and never seen anything other than syslog say "disc is not there".
I used to pull a disc from one mirrored VG on one machine, and inserted it in another mirrored VG in another server - this went on for about a month on a few boxes.
To finally get shut of the original disc from the VG use:
vgreduce -f /dev/vgDB (this will remove all links to your old disc A).
One word of caution though:
ensure that you backup the configs first:
1) vgcfgbackup vgDB
2) vgexport -m vgDB.mapfile -p -v vgDB.discfile vgDB