- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Avoiding mirror synchronization on new LV creation
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
06-19-2005 01:03 PM
06-19-2005 01:03 PM
Avoiding mirror synchronization on new LV creation
Here are the commands we are using to create the LV:
# lvcreate -n lv_foo -s g /dev/vg_foo
# lvextend -L 32768 /dev/vg_foo/lv_foo /dev/dsk/c4t3d0
# lvextend -m 1 /dev/vg_foo/lv_foo /dev/dsk/c4t4d0 --> this step takes too long synchronizing the mirror.
Isn't mirror sync useless because the LV was just created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 02:26 PM
06-19-2005 02:26 PM
Re: Avoiding mirror synchronization on new LV creation
You create a new lv with size 32GB so it's a quite big and take time when you make mirror to another disk. The mechanism of mirroring is do not care how data lv has. It mean that it take the same time to mirror lv if it 's just created or containing full data.
If it take time and want to cancel it, let 's do lvreduce -m 0 dev/vg_foo /dev/dsk/c4t4d0 or force to reduce by using pv_key.
Issuing following command to get PV_key:
lvdisplay -vk /dev/vg_foo/lv_foo
lvreduce -m 0 -k PV_key /dev/vg_foo/lv_foo
Thanks and hope it help,
HMT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 02:27 PM
06-19-2005 02:27 PM
Re: Avoiding mirror synchronization on new LV creation
# lvextend -m 1 /dev/vg_foo/lv_foo /dev/dsk/c4t4d0 --> this step takes too long synchronizing the mirror.
When this step finishes the mirror is done.
This steps creates the mirror, fresh and clean.
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
06-19-2005 03:13 PM
06-19-2005 03:13 PM
Re: Avoiding mirror synchronization on new LV creation
> Isn't mirror sync useless because the LV was just created?
Yes, that's correct. Effectively the disk is blank and every write to the disk will be automatically mirrored. But there is a secret to creating an lvol without a lengthy sync. Create the smallest lvol you can (one extent), then mirror that (very fast). Now extend the lvol to the desired size. And now you have any size lvol (terabyte) fully mirrored. You can verify this with the lvdisplay -v command. Here's how you can do it with your example:
# lvcreate -l 1 -n lv_foo -s g /dev/vg_foo
# lvextend -m 1 /dev/vg_foo/lv_foo
# lvextend -L 32768 /dev/vg_foo/lv_foo /dev/dsk/c4t3d0
The above commands will take just a few seconds.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 05:30 AM
06-20-2005 05:30 AM
Re: Avoiding mirror synchronization on new LV creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2005 08:22 PM
06-20-2005 08:22 PM
Re: Avoiding mirror synchronization on new LV creation
This is beacause you created lv with zero size & then extended it. The single command to achive this would mention the mirror copies in the command lvcreate itself alongwith strict allocation for different copies of LE's going to indivisual disk.
This command with these options should look like.
#lvcreate -n lv_foo -s y -m 1 -L 32786 /dev/vg_foo
This will create mirroed LV of 32768 MB with name lv_foo in VG with name vg_foo on your system. For this command to complete your VG_foo should have atleast two physical volumes with 32768 MB free space of both of them. As we mentioned strict allocation, both copies of the lvol will be on seperate disks, & if one of the disk do not have free space equal to or more than 32768 MB it will give error.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2005 08:29 AM
06-21-2005 08:29 AM