Operating System - HP-UX
1833359 Members
3307 Online
110051 Solutions
New Discussion

Re: How to add a new disk to a VG that has Strict allocation

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

How to add a new disk to a VG that has Strict allocation

All:

First, let me say that I know it is strange to have /tmp outside of VG00. Please overlook that and help me with my question. Thanks.

I have a system with a mirrored VG01 as follows on an 8GB disk with a few extra unused extents, only 120 or so.

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg01/swap1 1250 1250
/dev/vg01/tmp 500 500
/dev/vg01/home 75 75
/dev/vg01/localcw 225 225

My question is how can I permanently add a new 8GB disk to the VG01 and then extend the /tmp directory which has strict allocation?

I know that I can disable strict allocation with:
vgchanges -s n /dev/dsk/cXtXdX
,but what I have been told is that is only supposed to be a temp solution.

Thanks for your suggestions.
Unix, the other white meat.
5 REPLIES 5
Todd McDaniel_1
Honored Contributor

Re: How to add a new disk to a VG that has Strict allocation

Actually it should be lvchange -s n etc...
Unix, the other white meat.
Martin Johnson
Honored Contributor
Solution

Re: How to add a new disk to a VG that has Strict allocation

If I remember correctly the strict policy has to do with putting mirror copies on the same disk. It has nothing to do with extending a logical volume on to a second disk.

You should be able to vgextend and lvextend and extendfs with no problems.

HTH
Marty
James R. Ferguson
Acclaimed Contributor

Re: How to add a new disk to a VG that has Strict allocation

Hi Todd:

Strict allocation refers to mirrored logical extents that are allocated to share or not share the same physical volume or volume group.

In my option, there is little benefit to mirroring to the *same* physical volume, although it is allowed.

If I understand your question, you want to add only one disk. In that case, when you extend the filesystem, to where are you going to mirror the new extents?

Regards!

...JRF...
Volker Borowski
Honored Contributor

Re: How to add a new disk to a VG that has Strict allocation

Hello,

I think you will not get trouble with "strict". May be you created the lvol for /tmp as "contiguous" this means the volume may not be divided in several sections on one disk, like you need it for swap.

If /tmp is contiguous, you can extend the volumegroup, lvmove the tmp-volume to the new disk and then extend it right afterwards, so the new LEs of the volume can be attached right to the end of it.

Hope this helps
Volker
Todd McDaniel_1
Honored Contributor

Re: How to add a new disk to a VG that has Strict allocation

Thanks for all your help.

Yes I do have 2 disks to use 1 as a mirror. Also, I was getting strict confused with contiguous. I DON'T have contiguous only strict.

Also, I am not sure why HP allows for mirroring on the same disk that is a very bad policy and has no redeeming qualities!! :0

I have it now. Thanks again!
Unix, the other white meat.