Operating System - HP-UX
1834608 Members
3138 Online
110069 Solutions
New Discussion

lvextend of /stand ?? 10.20

 
Mark Pezzi
Occasional Contributor

lvextend of /stand ?? 10.20

I'm running HP-UX 10.20 on a J2240. The /stand volume is only 48mb. I need to extend the size of this volume to around 80mb in order to be able to run the upgrade to HP-UX 11.00
If I can't do this I will have to do a clean install...Which is not a good option.
my vg00 has volumes that can be removed to create space.

I'm still new to Unix so a cook-book would be a perfect 10....

Thanks,
Mark
11 REPLIES 11
linuxfan
Honored Contributor

Re: lvextend of /stand ?? 10.20

Hi Mark,

There are other ways to do this, but the easiest way to do this is to install ignite/UX (free software from HP) from
http://www.software.hp.com/products/IUX/download.html

create a disaster recovery tape (ignite image) of your system using make_tape_recovery or make_recovery

boot the server using the ignite tape/image - and interrupt it before it starts restoring.

go to advanced installation and choose your new sizes for your filesystems

This will rebuild of the system with the new size for /stand, increase / if necessary

You might want to look at the thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x377dabe92dabd5118ff10090279cd0f9,00.html

for more information on ignite/UX, refer to
http://www.software.hp.com/products/IUX/docs.html


That said, if you are upgrading to 11.0 might as well do a clean install of 11.0 rather than increasing /stand (which is going to take atleast an hour or two) and then upgrading from 10.20 to 11.0.

The issue of which is better (cold install or upgrade ) has been discussed umpteen times, just do a search in the forums.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Soren Morton
Advisor

Re: lvextend of /stand ?? 10.20

It has been a while since I had to extend a hfs filesystem so I hope I don't forget something.

Keep in mind /, /stand and primary swap must be contiguous. I believe there were also limitations about everything having to be on the first ?? mbytes of the 1st disk, but I don't remember what the limit was. You will not only have to free up space, but you will have to free up "contiguous space".

Anyway, here are the instructions.

1) Run "lvlnboot -v" and write down this info. By writing down this info you can fix any problems that could come up.

2) Use "shutdown -r -y 0" to reboot the system.

3) Interrupt the boot sequence during the 10 seconds you get.

4) Use "bo pri" and type "y" to interact with the ISL when prompted (unless you are on a V-Class where you will need to use "bo pri -is" as one command).

5) Type "hpux -is" to boot to single user mode.

6) Use "/sbin/lvextend -l ?? /dev/vg00/lvol?" to extend the /stand filesystem.

7) Now use "extendfs -F hfs /dev/vg00/lvol?"

8) To test everything run "vgchange -a y vg00"

9) Use "mount -a" (run fsck on anything with errors in vg00). Run "mount -a" again if necessary. Make sure all of vg00 mounts.

10) Run "lvlnboot -v" to make sure all boot definitions are the same as before. If not post differences on this forum to ensure all is well.

11) Reboot again by running "shutdown -r -y 0" and all should come up fine.

NOTE: If you can clean up any old unused kernels, old system files or cores you might be better off than resizing this logical volume. Keep in mind that this fs should never grow unless you are modifying the kernel so it's original size should work (unless it was too small to begin with).
No Egos, No Politics, No Games
Sanjay_6
Honored Contributor

Re: lvextend of /stand ?? 10.20

Hi Mark,

It will be tough for you to increase the size of /stand witout a reintall. However if you still want to do, use the method suggested by ramesh. Load ignite on your system, if you don't have it. Create a igite recovery tape and using that tape reinstall the system and increase the size of filesystems you want to.

However i would also suggest you to do a clean install of 11.0. That would be a better choice given the position you are in.

Hope this helps.

thanks
James R. Ferguson
Acclaimed Contributor

Re: lvextend of /stand ?? 10.20

Hi Mark:

The /stand filesystem is (and must) be allocated with congiguous physical extents. Therefore, it will not be possible to simply 'lvextend' it.

If you really want to enlarge it, I suggest the guaranteed successful approach: Create an Ignite recovery tape (with a *current* version of 'make_tape_recovery'), and cold-install your *existing* OS. Specify the advanced installation options at install-time, and size your filesystems to your needs.

The collective experience of many, many members of this community has been that a *cold installation* of 11.x is less likely to fail than is an upgrade from 10.20.

While you *definitely* want to take an Ignite recovery (backup) of your 10.20 OS disk before you *either* upgrade or install, in my opinion you will save work and increase your chance of successfully migrating to 11.x if you simply cold-install.

I recently responded to another post asking for some guidance during cold-installation. See my comments in this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xda80abe92dabd5118ff10090279cd0f9,00.html

Regards!

...JRF...
Santosh Nair_1
Honored Contributor

Re: lvextend of /stand ?? 10.20

The best way and I believe the only way really sanctioned by HP is to use the Ignite utilities and make_tape_recovery or make_net_recovery.

However, if you're really brave and the machine is expendable then you might want to try the suggestion in the following link:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd1d6d08cc06fd511abcd0090277a778c,00.html

Since you're only other alternative would be to do a cold install. Personally, I would opt for the cold install myself as it tends to not carry over the baggage from the previous install, but you have to make sure to back up lots of system config files.
Here is link that lists some of these files....its not comprehensive, but then what is :-)

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xda80abe92dabd5118ff10090279cd0f9,00.html

-Santosh
Life is what's happening while you're busy making other plans
Shahul
Esteemed Contributor

Re: lvextend of /stand ?? 10.20

Hi

First of all I will tell U that lvol1(boot) , lvol2(swap), and lvol3(root) should be contiguos. It means lvol2 will start just after lvol1. There will not be any LEs free or alloted to some other lvol.

So, If U want to increase /stand(lvol1) U will have to decrease lvol2 (Primary swap). I will give U the full procedure.

Reboot the system
Interrup the booting process
Type like this in main menu
Main menu>bo pri
Inetract with ISL? yes
ISL>hpux -lm (To enter in to lvm maintanance mode)

Now U will come to prompt. First not down the BDRA details by using
#lvlnboot -v

Now U will have to remove BDRA entris first
#lvrmboot -r /dev/vg00/lvol3
#lvrmboot -s /dev/vg00/lvol2
#lvrmboot -d /dev/vg00/lvol2
#lvrmboot -b /dev/vg00/lvol1
#lvlnboot -v

Now it should not show any link. If still there use lvrmboot with different orders.

Now U will have to remove primary swap (lvol2).
#lvremove /dev/vg00/lvol2

Now U will have to extend the /stand as per ur requirement

#lvextend /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1

Now create lvol2 with available space. Means, suppose ur previous space was 100MB, from this 50 MB U added to lvol1, Now available space for lvol2 is 50MB only.

#lvcreate -C y -r n -L 50 -n lvol2 /dev/vg00

Now U will have to add BDRA entries
#lvlnboot -b /dev/vg00/lvol2
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -R
#lvlnboot -v

Compare the entries which U noted earlier and current. It should be same.

Now reboot the system and check the new size of /stand. Swap U can add file system swap.

BEst of luck

Shahul
Mark Pezzi
Occasional Contributor

Re: lvextend of /stand ?? 10.20

Thanks all, I desided to wait and do a clean install.
In doing this I know whats on the system, and it allowed me to free up alot of disk space.

Thanks,
Mark
Sridhar Bhaskarla
Honored Contributor

Re: lvextend of /stand ?? 10.20

Since anyway you are going with ignite option, give shahul's method a shot. It should work. Otherwise, anyway you can recover it from the ignite tape.

The logic is to maintain the contiguity of /stand file system. Remove the primary swap, extend /stand and then recreate the swap with a reduced size in lm maintenance mode.

-C y and -rn options are must.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Hooi Siew Hoong_1
Frequent Advisor

Re: lvextend of /stand ?? 10.20

I am very interested to find out about the upgrade suggestion from 10.20 to 11.x. But when I tried to click on some of the links above, it say "Object not found". Could someone repost or tell me how to access this past forum response. Thanks.

Siewhoong
Michael Tully
Honored Contributor

Re: lvextend of /stand ?? 10.20