Operating System - HP-UX
1833494 Members
2597 Online
110052 Solutions
New Discussion

Re: Removing unwanted filesets - reason is space needed

 
SOLVED
Go to solution
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

Yes that suits me fine.

Ignite installing now and I'm going through the door to lunch...see you in about 1-2 hours ;)

Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

back here...tried to install the latest quality pack for HP-UX 11.00 but it complains about space again. Same as last time roughly...I need to free 158MB on /usr and 46MB on /var

the install of Ignite UX went well.

What's the next course of action?

waiting...reloading...
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Back also,
So stage 1 was a success /opt bigger

Now its going to be more hard: /var is used by all sorts of system logging activities etc
sam uses it also so you cant use sam to solve your problem.
In order to install the latest patches you will need a /var of almost 900MB...

2 options:
Kamikaze way I did it a few times but again I am maybe more aware of what can go wrong...

Safe way but do you know how to reboot single user? and have an idea what you are facing (no usual commands found...)

Where is the box?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

You may also want to try to do this make_recovery -A and use the tape to reconfigure...
But I would go the hard way first so you see how to get yourself out of trouble and gain confidence...
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

The box is in a room next to where I'm sitting. Very easy access. I do not know how to boot in single user mode?

Are you going to walk through this process now? I'm ready and willing...
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

so you have a console then?

type at the console shutdown -r now,
look aat what it displays when comimg up:
It will say after a while something like "you have 10 seconds press any key to stop..." (dont remember and my PC with MS... is not of help...)
so go !
press
Now your facing a system waiting for you to tell what comes next...
So what do you see?
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Hi Adrian,

Interrupt the boot process
Hit any key when the following message appears:

Booting from primary path, press any key to override

Boot from primary path and interact with isl At the menu, type:

boot pri isl

And answer "y" to Interact with ISL ?

ISL>hpux -is

Your system is in single user mode. No filesystems are mounted but /

var
# lvextend -L XXX /dev/vg00/lvolx
# extendfs -F vxfs /dev/vg00/rlvolx
usr
# lvextend -L XXX /dev/vg00/lvolx
# extendfs -F vxfs /dev/vg00/rlvolx

# mount -a (or mountall)
# shutdown -r -y now

Regards,
Robert-Jan
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

I see a menu and I'm at the following prompt:

Main Menu: Enter Command >


The menu has commands on left and below are the following descriptions for the commands:

Boot from specified path
Display of modify a path
Search for boot devices
Access configuration menu/commands
Access information menu/commands
Access service menu/commands
Redisplay correct menu
Display help current menu
Restart System

Next step?
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Robert,

Did that and now the prompt says:

root:unknown>

What do I do next?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Thanks Robert for your assistance!

follow what Robert just put down
2 of us makes it more comfortable for double checking especially as I have no connection to a system anymore...

so boot pri command is to say to boot from the primary boot device

hpux -is is single user

lvextend -L 900 /dev/vg00/lvol8
extendfs -F vxfs /dev/vg00/rlvol8
(notice the r here?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Did what?
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

I'm at this prompt:

root:unknown>

I will now type in the two commands you posted:

root:unknown> lvextend -L 900 /dev/vgoo/lvol8

then

root:unknown> extendfs -F vxfs /dev/vg00/rlvol8


Is this correct?

waiting for confirmation before doing this...
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Ok No problem, you are probably in single user mode.

Check if your filesystems are mounted

# bdf

Ps. no problem Victor and Adrian hope the weather is better in Barbados :-)
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Robert,

I typed the bdf command at the root:unknown> prompt and got: sh bdf not found...

Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

well when you ar ready to continue
I suggest that you stay in single user and extend /usr to 500MB /stand to 100MB and /tmp 100MB also
that is
-L 100 /dev/vg00/lvol3
-L 500 /dev/vg00/lvol7
-L 100 /dev/vg00/lvol4

once done
mount them, you know how...
bdf ?
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Ok thats my fault.

# /sbin/bdf
same for the other commands
# /sbin/lvextend -L XXX /dev/vg00/lvolx
# /sbin/extendfs -F vxfs /dev/vg00/rlvolx

RJ
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

bdf wont work as said previuosly you have noe usual commands until you mount /usr /var...

So normal...
Dont worry
alls fine
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Once I'm done, how do I mount these filesystems?

going to type in these commands now...
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Yes Adrian the commands you can use are in /, that is /sbin...
Thanks Robert I fell a fool in front of my PC... not beeing able to check...
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

With the mount command.

# /sbin/mount -a

# /sbin/shutdown -r -y now

RJ
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

well you know:
mount /
mount /usr
mount /opt
mount /var
mount /tmp

and now bdf
vgdisplay vg00
to see how many blocks left
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

And if you are satisfied follow Roberts command to reboot now
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor & Robert,

I typed in all the commands and they all extended successfully...bar this one:

# /sbin/lvextend -L 100 /dev/vg00/lvol3

which returned: Not enough free physical extents available. "/dev/vg00/lvol3" could not be extended.

What do I do next? Mount the ones that extended successfully? Please post commands...

this is exciting ;)

weather in Barbados is HOTTTT...
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Iâ m getting jealous :-)

# /sbin/vgdisplay vg00

check how mutch free extends you have lef
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

ok mount the filesystems if gave you we do not need /opt/or* only vg00...
I forgot to doublecheck what you had left when removed the logicalvolume so :
vgdisplay vg00, give us the output
Robert -L option is for MB or blocks ?I have suddenly some doubts...