- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error in lvextend (HP-UX 11.11)?
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
тАО10-06-2003 09:55 AM
тАО10-06-2003 09:55 AM
i guess i've found a bug:
Doing: lvextend -m 3 /dev/vg03/opt /dev/dsk/c0t1d0
Usage: lvextend
...
"MirrorCopies": Must be either 1 or 2.
the command has added the disk /dev/dsk/c0t1d0 to my /etc/lvmtab:
# strings /etc/lvmtab
/dev/vg03
/dev/dsk/c0t2d0
/dev/dsk/c0t12d0
/dev/dsk/c0t11d0
/dev/dsk/c0t1d0
The next lvreduce operation will automatically correct the lvmtab.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 10:10 AM
тАО10-06-2003 10:10 AM
Re: Error in lvextend (HP-UX 11.11)?
Check the lvextend man page.
-m mirror_copies
Set the number of mirror copies allocated for each logical extent. A mirror copy contains the same data as the original. mirror_copies can have the value 1 or 2. It must be greater than the current value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 10:18 AM
тАО10-06-2003 10:18 AM
Re: Error in lvextend (HP-UX 11.11)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 10:18 AM
тАО10-06-2003 10:18 AM
Re: Error in lvextend (HP-UX 11.11)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 10:48 AM
тАО10-06-2003 10:48 AM
Re: Error in lvextend (HP-UX 11.11)?
I think you're confusing the -m value - it's TOTAL mirror copies, not disks composing mirror.
You want lvextend with the disk devices only - you WILL need to add TWO disks to keep the mirror.
To me it appears you had two mirror pairs composed of one disk each. You tried to add the other disks. But IF you already had a mirror, all you have to do is add the two other disks to the VG & then to the LV. System will assume you wish to retain the mirror & use them accordingly.
So just lvreduce the two new disks & readd with:
lvextend /dev/vg03/opt /dev/dsk/c0t1d0 /dev/dsk/c0t11d0
That should do it - check with vgdisplay -v or lvdisplay -v .
NOW IF you didn't have a mirror to begin with then the command will be:
lvextend -m 1 /dev/vg03/opt /dev/dsk/c0t1d0 /dev/dsk/c0t11d0
And then you'll have a mirror copy - but NO new space.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 11:11 AM
тАО10-06-2003 11:11 AM
Re: Error in lvextend (HP-UX 11.11)?
i have written a complete mirror script for all possible disks (it is not finished, but it does a very good job - nothing to think any more). The point is, i am changing some disks (upgrade to larger and changing HW-path [without export/import]) and thus testing the script. I had
# strings /etc/lvmtab
/dev/vg03
/dev/dsk/c0t2d0
/dev/dsk/c0t12d0
then i mirrored (2nd mirror, 3 disks) to /dev/dsk/c0t11d0. Before removing /dev/dsk/c0t2d0, i started one more mirror (3rd mirror, 4th disk) try. I KNOW that only 2 mirrors are possible, but does HP? The output was the error message of lvextend (of course), but the bug was, the i have got the 4th entry /dev/dsk/c0t1d0
to lvmtab. I suppose you can do the same and follow to this behavior.
That IS A BUG for me (and i think for HP, too). Well, there are some cases where we have to write a new lvmtab manually.
I apologize for any misunderstandings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 11:22 AM
тАО10-06-2003 11:22 AM
Re: Error in lvextend (HP-UX 11.11)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 11:43 AM
тАО10-06-2003 11:43 AM
Re: Error in lvextend (HP-UX 11.11)?
Regarding "...i am changing some disks (upgrade to larger ..."
What are the new disk sizes please?
Did you vgextend in the new disks into the old VG or did you vgcreate a new VG with the new, larger disks?
I ask because somewhere around 36 GB you need to make new VG's and increase the MAX_PE and / or PE_SIZE, or you will map the smaller disk geometry onto the bigger, and be left with the smaller disks dimensions and limitations on a physically larger disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 11:57 AM
тАО10-06-2003 11:57 AM
Re: Error in lvextend (HP-UX 11.11)?
check my previous attachment:
PE Size (Mbytes) 4
PV Name /dev/dsk/c0t2d0
Total PE 1023
i.e. 4,3 GB
Name /dev/dsk/c0t12d0
Total PE 1023
PV Name /dev/dsk/c0t11d0
Total PE 2170
Free PE 1147
PV Name /dev/dsk/c0t1d0
Total PE 2170
Free PE 2170
As you can see, c0t2d0 and c0t12d0 are both 4,3 GB. c0t11d0 is 9 GB (1023 PE already mirrored) and c0t1d0 is free (9 GB), unmirrored, that was just the try. ;-)
Used PV 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2003 02:48 PM
тАО10-06-2003 02:48 PM
SolutionIf you tried to do an lvextend to a disk that was not part of a VG you would get an error.