- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvextend mirror different extents to different phy...
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
Discussions
Discussions
Forums
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
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
тАО03-06-2008 06:19 PM
тАО03-06-2008 06:19 PM
First thanks for any help. I have a situation where I have to create an identical server to an existing server, right down to the mirroring and how the lvols are setup. Here is an example.
/dev/vg01/lvol1
295 /dev/dsk/c0t0d0 /dev/dsk/c0t2d0
245 /dev/dsk/c0t0d0 /dev/dsk/c0t3d0
910 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
Can I simply use the following commands:
lvextend -l 295 /dev/vg01/lvol1 /dev/dsk/c0t0d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t2d0
lvextend -l 245 /dev/vg01/lvol1 /dev/dsk/c0t0d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t3d0
lvextend -l 910 /dev/vg01/lvol1 /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t3d0
This looks wrong to me, but I can't figure out how the old sysadmins got the lvols into this shape to start with. Any help is greatly appreciated and rewarded (via points of course)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2008 06:29 PM
тАО03-06-2008 06:29 PM
Re: lvextend mirror different extents to different physical disks
I think you'll need to play with PVGs. Try creating a PVG with the first set of disks. then create the lvol with a mirror and -l 295 in that PVG. Modify the PVG to contain the next pair of PVs and extend the lvol another 245 extents using that PVG. etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2008 06:48 PM
тАО03-06-2008 06:48 PM
Re: lvextend mirror different extents to different physical disks
The setup you have on old server might be because of the fact that there were not enough space available to extend/ mirror the LV hence the only option is to add the new disk.
If you want to confirm this fact you can check the PE to LE mapping for this LV and the picture will be clear.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2008 01:46 AM
тАО03-07-2008 01:46 AM
Solutionyou have a way to do it :)
Create a LV with zero size and one mirror.
lvcreate -m 1 /dev/vg01
Next extend the LV to 295 extents.
You can't extend a LV which has a mirror using one PV. You need to provide two PVs.
lvextend -l 295 /dev/vg01/lvol1 /dev/dsk/c0t0d0 /dev/dsk/c0t2d0
Next extend LV by 245 extents.
So the final size has to be 295 + 245 = 540
lvextend -l 540 /dev/vg01/lvol1 /dev/dsk/c0t0d0 /dev/dsk/c0t3d0
Finally extend in with next 910 extents.
So the final size is 910 + 540 = 1460
lvextend -l 1460 /dev/vg01/lvol1 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
I hope this will solve your problem :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2008 05:01 AM
тАО03-07-2008 05:01 AM
Re: lvextend mirror different extents to different physical disks
1. strings /etc/lvmtab
2. more /etc/lvmpvg
3. vgdisplay -v vg01
4. lvdisplay -v /dev/vg01/lvol1 (for all LV's in the VG)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2008 04:20 PM
тАО03-07-2008 04:20 PM