- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mirroring a single larger disk on multiply sma...
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
02-03-2009 03:41 AM
02-03-2009 03:41 AM
Although it sounds funny but i just need to confirm that Can we mirror a logical volume residing on single larger disk (say 2TB) with multiple smaller disks (say 500GB each) ??
BR
AQ
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 03:46 AM
02-03-2009 03:46 AM
Re: mirroring a single larger disk on multiply smaller disks
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 08:11 AM
02-03-2009 08:11 AM
Re: mirroring a single larger disk on multiply smaller disks
if the present LV that you wish to mirror is set as Contiguous policy make sure that this sort of mirroring that is desired here, you will need to make that Non-Contiguous by running lvchange -C n
Also Using a PVG can help in here.
REgards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 08:19 AM
02-03-2009 08:19 AM
Re: mirroring a single larger disk on multiply smaller disks
Since LVM mirroring occurs at the _logical_ _volume_ level, yes. I presume that you are only interested in providing high-availability for one or more, but not all the logical volumes.
By default, LVM will not allow you to place mirrored extents on the same physical disk. This is the 'strict' policy. To defeat this negates the value of mirroring.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2009 09:11 AM
02-03-2009 09:11 AM
Re: mirroring a single larger disk on multiply smaller disks
Sure, just keep notes because the next time you have to re-arrange storage you will wonder what fool came up with this setup.
Just change the desk in the lvextend -m 1
:-)
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
02-03-2009 11:00 PM
02-03-2009 11:00 PM
Re: mirroring a single larger disk on multiply smaller disks
Thanks guys for your valuable replys. Let me refine my previous question again for more clarification :) As I mentioned earlier, I have a single logical volume on a 2000GB disk. I now want to mirror it but I right now have multiple smaller size disks say 500GB each. So what I need to confirm is, can I specify multiple disks in "lvextend -m 1" command e.g.
lvextend -m 1
BR
AQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 12:12 AM
02-04-2009 12:12 AM
Re: mirroring a single larger disk on multiply smaller disks
Definitively yes.
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 03:20 AM
02-04-2009 03:20 AM
Re: mirroring a single larger disk on multiply smaller disks
AQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 03:27 AM
02-04-2009 03:27 AM
Re: mirroring a single larger disk on multiply smaller disks
Yes: patience. This is going to take a l...o...n...g time - probably hours and hours.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 03:28 AM
02-04-2009 03:28 AM
SolutionYou can see by the command lvdisplay
#lvdisplay -v /dev/vgXX/lvolY | grep -i stale|wc -l
there you can see that the Stale Extents are decreasing and the Current Extents are increasing for the NEW PVs.
After sometime
#lvdisplay -v /dev/vgXX/lvolY | grep -i stale|wc -l
This way you can have an idea that mirror sync is going on as you will find the no of Stale Extents Secreasing.
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 03:31 AM
02-04-2009 03:31 AM
Re: mirroring a single larger disk on multiply smaller disks
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 03:56 AM
02-04-2009 03:56 AM
Re: mirroring a single larger disk on multiply smaller disks
AQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 04:05 AM
02-04-2009 04:05 AM
Re: mirroring a single larger disk on multiply smaller disks
Answer for your first question -> OK, can we see the progress of "lvextend -m 1" comomand by any means?
Yes. you can. Use the command prefix with "timex" command. It will provide how much time the command took to finish the job.
#timex lvextend -m 1
Also you can watch the progress by using the command.
#lvdisplay -v
no of stale extends should reduce progressively.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 04:08 AM
02-04-2009 04:08 AM
Re: mirroring a single larger disk on multiply smaller disks
>>>>Well can you please tell the procedure if i need to get back older disk from the mirror and from Volume Group as well? And would any downtime be required for this procedure?<<<<
No downtime required for this process.
Once you mirrored follow this process.
#lvreduce -m 0
#lvdisplay -v
#vgreduce
#pvremove /dev/rdsk/cxtxdx
Note: pvremove is to remove the lvm headers from the disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2009 04:18 AM
02-04-2009 04:18 AM
Re: mirroring a single larger disk on multiply smaller disks
if you want to take the 2 TB disk out of the VG this can be simply done using:
#lvextend -m 0 /dev/vgXX/lvolY /dev/dsk/cxtydz
where /dev/dsk/cxtydz corresponds to the disk 2 TB disk.
repaeat this to remove the mirror for all LVs from this Disk.(make sure that you have valid mirror copies of allthe LVs on Other Disks before reducing mirror with lvreduce -m 0)
#vgreduce /dev/vgXX /dev/dsk/cxtydz
#vgreduce -l /dev/vgXX /dev/dsk/cxtydz
to remove the Alternate paths of the disk from the VG.
You have done that.
yes this can be done online.
After that if wish to remove the HW paths and device files of the Disk also then do.
#ioscan -fnCdisk
know the HW path for the Disk yiu want to remove from the system.
#rmsf -H
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2009 09:27 PM
02-12-2009 09:27 PM
Re: mirroring a single larger disk on multiply smaller disks
1) As we are mirroring multiple Logical Volumes (coming from EVA5000) with another Storage (EVA8000) one by one, could these newly mirrored Logical Volumes create any system performance issue as I/Os are now being written at 2 different locations?
2) There is a Volume Group which has 2 disks originally, one is local and other is from SAN i.e. from EVA5000. Two Logical Volumes are created in this VG. I noticed that 1 Logical Volume is spanning on all 2 disks i.e. some physical extents from 2nd disk are also used by this LV and Second LV is spanning on only 1 disk. So what I want to ask is: what steps should be followed to LVREDUCE these Logical volumes in order to redirect I/Os to mirror?
Note: In mirroring process, I have created seprate disks for each Logical volume.
regards,
AQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 01:32 PM
02-13-2009 01:32 PM
Re: mirroring a single larger disk on multiply smaller disks
2) lvextend and lvreduce should be enough.
Regards!