Hi,
I have never worked with HP-UX. I am actually dealing with IBM AIX.
I have a question about LVM on HP-UX.
For example, assume we have a VG with 1 PV which comes from a SAN
storage and we want to extend the size of that PV (LUN) from SAN disk
subsystem. Can HP-UX handle this? I mean, is it possible to extend the
size of PV being used in a VG online or offline? If so, what should the
procedure and the necessary LVM commands be?
Thanks and regards.
|
|
0
|
|
|
|
Reply
|
mhmtzdmr (15)
|
1/3/2006 5:16:47 PM |
|
<mhmtzdmr@gmail.com> wrote in message
news:1136308607.610715.251690@g49g2000cwa.googlegroups.com...
> Hi,
>
> I have never worked with HP-UX. I am actually dealing with IBM AIX.
>
> I have a question about LVM on HP-UX.
> For example, assume we have a VG with 1 PV which comes from a SAN
> storage and we want to extend the size of that PV (LUN) from SAN disk
> subsystem. Can HP-UX handle this? I mean, is it possible to extend the
> size of PV being used in a VG online or offline? If so, what should the
> procedure and the necessary LVM commands be?
>
> Thanks and regards.
>
Results 1 - 10 of about 23,600 for "lvm cookbook". (0.20 seconds)
The HPUX 'SAM' utility will do many LVM activities from a menu - no
command-line struugles.
|
|
0
|
|
|
|
Reply
|
M
|
1/4/2006 2:18:47 AM
|
|
Thanks it helped so much :(
|
|
0
|
|
|
|
Reply
|
mhmtzdmr
|
1/4/2006 6:39:08 AM
|
|
Hi mhmtzdmr
> For example, assume we have a VG with 1 PV which comes from a SAN
> storage and we want to extend the size of that PV (LUN) from SAN disk
> subsystem. Can HP-UX handle this?
No. LVM can't handle this, because there is a table in the LVM-header of
the PV which describes the complete disk and assigns which physical
extent contains which logical extent. This table cannot be extended.
LVM is a concept which is based on fixed physical disk sizes and extends
on the virtual level of LVs. If you want use the extension possibilities
of the SAN, then create the filesystem direct on the LUN without a LVM
between.
Florian
|
|
0
|
|
|
|
Reply
|
Florian
|
1/4/2006 10:56:52 AM
|
|
True, you can't extend a SAN partition and have HPUX allow for it. You can
however create a new, larger LVM, and pvmove off of the old SAN partition
onto the new PV, and then extend your LV to use all of the space on the new
SAN PV.
"Florian Anwander" <spam.interessiert.nicht@mnet-online.de> wrote in message
news:421nvlF1dqpv7U1@individual.net...
> Hi mhmtzdmr
>
>> For example, assume we have a VG with 1 PV which comes from a SAN
>> storage and we want to extend the size of that PV (LUN) from SAN disk
>> subsystem. Can HP-UX handle this?
> No. LVM can't handle this, because there is a table in the LVM-header of
> the PV which describes the complete disk and assigns which physical extent
> contains which logical extent. This table cannot be extended.
|
|
0
|
|
|
|
Reply
|
Tom
|
1/4/2006 3:01:21 PM
|
|
Hi Tom
> You can
> however create a new, larger LVM, and pvmove off of the old SAN partition
> onto the new PV, and then extend your LV to use all of the space on the new
> SAN PV.
Cool trick! Though I'd not rely on pvmove. If pvmove is somehow
disturbed (e.g. SAN error, or more bad: controlling terminal is gone)
the data are lost. I'd prefer to restore a backup to a new created lvol.
btw: an additional problem could be that the LVM-header(the vgda) of the
Volumegroup is to small for large PVs. Then nothing helps but creating a
new VG.
Florian
|
|
0
|
|
|
|
Reply
|
Florian
|
1/4/2006 3:39:46 PM
|
|
Yeah, there are lots of "gotchas" in doing this, but you get what you pay
for. It can be done, but that doesn't mean there aren't problems (especially
true with older HPUX versions). Did have a pvmove hit a bad HSC FWD
controller once, and I picked up right where I was when it lbolt'd the
system into oblivion. Sometimes doing online reorgs are the only way it can
be done, due to inability to get extended downtimes for "safer" solutions.
"Florian Anwander" <spam.interessiert.nicht@mnet-online.de> wrote in message
news:4228i2F1h3jqcU1@individual.net...
> Hi Tom
>
>> You can however create a new, larger LVM, and pvmove off of the old SAN
>> partition onto the new PV, and then extend your LV to use all of the
>> space on the new SAN PV.
> Cool trick! Though I'd not rely on pvmove. If pvmove is somehow disturbed
> (e.g. SAN error, or more bad: controlling terminal is gone) the data are
> lost. I'd prefer to restore a backup to a new created lvol.
>
> btw: an additional problem could be that the LVM-header(the vgda) of the
> Volumegroup is to small for large PVs. Then nothing helps but creating a
> new VG.
>
> Florian
|
|
0
|
|
|
|
Reply
|
Tom
|
1/4/2006 4:06:54 PM
|
|
On 2006-01-04, Florian Anwander <spam.interessiert.nicht@mnet-online.de> wrote:
> Hi Tom
>
>> You can
>> however create a new, larger LVM, and pvmove off of the old SAN partition
>> onto the new PV, and then extend your LV to use all of the space on the new
>> SAN PV.
> Cool trick! Though I'd not rely on pvmove. If pvmove is somehow
> disturbed (e.g. SAN error, or more bad: controlling terminal is gone)
> the data are lost. I'd prefer to restore a backup to a new created lvol.
Well, if you have MirrorDisk, you can mirror to the bigger PV and then
when that's done, drop the copy on the smaller PV ... should be a bit
safer.
> btw: an additional problem could be that the LVM-header(the vgda) of the
> Volumegroup is to small for large PVs. Then nothing helps but creating a
> new VG.
I've had that happen several times, yes. That taught me to always make
bigger headers than I'd think I'd ever need when I was first installing
anything ... _and_ to reinstall everything that came from HP as they had
by default only minimal extra room in the LVM headers, if any, at some
point.
--
Mikko Nahkola <mnahkola@trein.ntc.nokia.com>
#include <disclaimer.h>
#Not speaking for my employer. No warranty. YMMV.
|
|
0
|
|
|
|
Reply
|
Mikko
|
1/4/2006 4:50:32 PM
|
|
So what should I do? What commands should I concentrate on?
|
|
0
|
|
|
|
Reply
|
mhmtzdmr
|
1/4/2006 8:40:02 PM
|
|
On 4 Jan 2006 12:40:02 -0800, mhmtzdmr@gmail.com wrote:
>So what should I do? What commands should I concentrate on?
First, use vgdisplay to see what the maximum physical volume (PV)
size is for the existing volume group. You may need to create a new
volume group that allows for a larger PV size - since your existing
max PV size is likely based on the largest PV that was present when
the current VG was created.
Note: You may use vgcreate options when a VG is created, in
anticipation of larger PV's to come ie to specify a max PV size larger
than the default.
If MirrorDisk/UX is installed on the system, as previously suggested,
then a logical volume may be mirrored to another disk within the same
volume group. lvextend with the -m arg would be used. Then lvreduce,
also with the -m arg to reduce the original lvol copy off of the
original PV.
If you need to create a new VG for the larger PV, then consider
following up with something like cpio pass through to copy the old
filesystems to new filesystems on the larger PV. Remember to use the
[find to cpio] options that will retain ownership, mod and creation
times, links etc of the directories and files.
Also as previously suggested, pvmove may be an option - though I've
not used it in the context of what you're doing. pvmove uses a form of
mirroring that does not require the presence of MirrorDisk/UX. Also as
previously noted, if a pvmove operation has problems, recovery is not
always simple - and not always possible, depending upon the nature
of the problem. Sometimes such a recovery means reducing the failed
copy off of a PV, and then trying again after determining why the
failure occured.
There are many good LVM command examples in the ITRC knowledge base at
http://itrc.hp.com.
Eric Stahl
|
|
0
|
|
|
|
Reply
|
Eric
|
1/4/2006 9:36:53 PM
|
|
<mhmtzdmr@gmail.com> wrote in message
news:1136407202.125832.285710@g47g2000cwa.googlegroups.com...
> So what should I do? What commands should I concentrate on?
>
Is there any special reason against adding new PV to the existing VG (of
course, it means new LUN, but ...)?
M.
|
|
0
|
|
|
|
Reply
|
Mario
|
1/4/2006 10:08:55 PM
|
|
"Mario" <mario.jaksic@zg.htnet.hr> wrote:
>
><mhmtzdmr@gmail.com> wrote in message
>news:1136407202.125832.285710@g47g2000cwa.googlegroups.com...
>> So what should I do? What commands should I concentrate on?
>>
>
>Is there any special reason against adding new PV to the existing VG (of
>course, it means new LUN, but ...)?
>
>M.
>
This is what I have always done, have a new LUN set up and add it to
the vg. Can do this "on the fly", no reboot required.
Once the new LUN setup on the array and assigned to your fiber/scsi
channel run ioscan to detect the new device and then insf -e to set up
the device file. You can the use vgextend to add the new device to the
vg.
Ted.
==============================================================
| Ted Linnell <edlinnell@acslink.net.au> |
| |
| Nunawading, Victoria , Australia |
==============================================================
|
|
0
|
|
|
|
Reply
|
Ted
|
1/4/2006 11:39:16 PM
|
|
|
11 Replies
333 Views
(page loaded in 0.257 seconds)
Similiar Articles: Extending a physical volume - comp.sys.hp.hpuxHi, I have never worked with HP-UX. I am actually dealing with IBM AIX. I have a question about LVM on HP-UX. For example, assume we have a VG with ... lvcreate to use all available space on PV? - comp.sys.hp.hpux ...Extending a physical volume - comp.sys.hp.hpux lvcreate to use all available space on PV? - comp.sys.hp.hpux ..... way using lvcreate to have it create the logical volume ... Oblivion - is there a mod for this? - comp.sys.ibm.pc.games.rpg ...Extending a physical volume - comp.sys.hp.hpux Oblivion - is there a mod for this? - comp.sys.ibm.pc.games.rpg ... Extending a physical volume - comp.sys.hp.hpux LVM can't ... Media for old HPUX 10.20 ...hard to find ? - comp.sys.hp.hpux ...Extending a physical volume - comp.sys.hp.hpux I have a question about LVM on HP-UX ... and regards. > Results 1 - 10 of about 23,600 for "lvm cookbook". Throttling network traffic - comp.arch.embeddedExtending a physical volume - comp.sys.hp.hpux Throttling network traffic - comp.arch.embedded "How is it that I suddenly have more physical memory?" ... [newbie] Adding and configuring new disk - comp.sys.hp.hpux ...Then > you add the physical volume to volume group vg00 using the command > vgextend. > > After that you extend the logical volumes you want to be extended using ... How to add new LUN's - comp.unix.solarisI have to add new LUN's to extend a filesystem, this is on Solaris 10 with Veritas volume manager. The SAN team has told me that they have allocated... Odd BACKUP error: unsupported file structure ! - comp.os.vms ...... File attributes: =A0 =A0Allocation: 18, Extend: 0 ... INDEXF.SYS >My hope is that with a reboot (and a volume ... The next attempt was a BACKUP/PHYSICAL to the spare drive ... Does somebody know where to get a disk drive larger than 60 GB for ...In that way, the physical dimension of the disk is 1.8" x ... Volume production of the drive begins in January 2007 ... for this machine that allows the hard disk to extend to ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...I'd really hate to see documents with a low content/volume ratio to appear on the ... some family problems "back east" -- so I didn't have access to any of these physical ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Nonlinear curve fit fails to converge - comp.soft-sys.matlab ...The underlying process (gas mixing in a volume with ... as follows: I (Mark) gave more of the physical ... See that I've chosen knots that extend well outside of ... Extending a physical volume - Unix Linux Forum - Fixunix.comExtending a physical volume - HP UX . This is a discussion on Extending a physical volume - HP UX; Hi, I have never worked with HP-UX. I am actually dealing with IBM AIX. Extending a physical volume - comp.sys.hp.hpux | Computer GroupHi, I have never worked with HP-UX. I am actually dealing with IBM AIX. I have a question about LVM on HP-UX. For example, assume we have a VG with ... 7/22/2012 11:05:53 AM
|