Operating System - HP-UX
1830899 Members
3196 Online
110017 Solutions
New Discussion

Re: Extending / dynamically

 
panks
Regular Advisor

Extending / dynamically

Hi All,

/ filesystem in my hpux is almost full, I want to expand it but I am getting the error for contigious and strict allocation policy.
I dont have mirror as below:
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 224
Current LE 7
Allocated PE 7
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

As mirror copies is zero.
How can I stop that policy in order to expand the / file system.

Thanks
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Extending / dynamically

Hi:

The 'root' ('/') filesystem is mounted on 'lovol3'. There is very little reason to extend it, and essentially, only safe-way is to take an Ignite 'make_tape_recovery' image and reload it. When you do this, choose the "advanced installation mode". This way, yu can specify the sizes of the vg00 logical volumes to your taste.

"Contiguous" allocation means that the physical disk extents must occur in unbroken succession. This is a requirement for the root filesystem.

"Strict" allocation means that mirrored extents (when present) cannot occupy the same physical volume. Without this caveat, high-availabilty of a logical volume is meaningless.

The problem is that the logical volume's new physical extents must be *contigous* to those of the old physical extents. Thus, you would have to move the extents of (most likely) 'lvol4' to create free space immediately adjacent to lvol3. Then, and only then, could you 'lvextend' lvol3 into the free extents; and then you could resize the filesystem contained within the logical volume.

Look for files in '/dev' that are not character or block device files. A very common contamination is to create a regular file when you mean to do a backup. Thus, you might find '/dev/rmt/om' [that's the letter "o" instead of the digit "0".

Also find where you have files that don't belong in root:

# du -x /|sort -k1nr

...should show you that '/etc' and '/sbin' are the principal directories that occupy space. Other things need your attention and need to be moved elsewhere.

Regards!

...JRF...
Tim Nelson
Honored Contributor

Re: Extending / dynamically

I don't think you can. It is a rule for /, /stand and swap.

The best and maybe only way to increase the / filesystem is to take an Ignite image and rebuild with larger FS sizes.

/ should be explicitely static. Find those files and directories that do not belong thre and move them.

Sharma Sanjeev
Respected Contributor

Re: Extending / dynamically

Hi

If you want to extend / Ignite is the safest Method

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Anil C. Sedha
Trusted Contributor

Re: Extending / dynamically

You cannot extend the root filesystem without reducing space in the /swap filesystem.

The root, stand, and swap filesystem are unlike the otherfilesystems and hence the strict/contigious policy error.

There is a solution posted previously that would be helpful

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1098002

Enjoy !

If you need to learn, now is the best opportunity
Torsten.
Acclaimed Contributor

Re: Extending / dynamically

This question is asked at least twice a day since years - a little search will find so many information about this ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!