Operating System - HP-UX
1833325 Members
2807 Online
110051 Solutions
New Discussion

Removing unwanted filesets - reason is space needed

 
SOLVED
Go to solution
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Another question...Once I install the ignite-ux
how do I go about making a full (??) system backup to tape using ignite?

Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Not quite
it is just by typing model...
example of output:
9000/800/K260

...
How is your ignite installation going on?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Put a tape int the device and type:
make_recovery -Av


And just watch whats going on...
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

The output from model is:
9000/821/D350

I also have a disk space problem when trying to install Ignite. I need to free about 65MB on /opt to install Ignite. Almost back to square one?

Should we therefore go ahead with the extending of the vg00?
Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Hi Adrian

There is a logical volume inside VG00 which looks like it is not used anymore (lvol9), to be shure mount the lvol on a temp mount point.

# cd /
# mkdir /tmp_mount
# mount /dev/vg00/lvol9 /tmp_mount
# cd /tmp_mount
# ls -la
# bdf .

Check if you can remove this space, if yes unmount it and lvremove the lvol9 volume.

Best regards,
Robert-Jan

Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Ok,
Have you removed the unwanted logical volume?
this is what you should do first, then do a fuser -cu /opt and see what is using /opt
connect youself as root and stay in /
and so fuser -kcu /opt, are you still alive?
now try to unmount /opt:
umount /opt
if success mount it again:
mount /opt
and with sam extend the /opt logical volume (/dev/vg00/lvol6) fix its new size to 650 MB

Ill wait till you have done these manips...
Good luck
Victor
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

I've removed lvol9 which was unused and nothing was mounted on it.

What do I do next? I tried to do the:

unmount /opt like you said. Here is my effort:

root:INLAND3>pwd
/
root:INLAND3>fuser -kcu /opt
/opt: 1574mto(root) 1431mt(root)

root:INLAND3>unmount /opt
sh: unmount: not found.
root:INLAND3>unmount /opt
sh: unmount: not found.
root:INLAND3>

What next?
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

oops! LOL

root:INLAND3>umount /opt
umount: cannot unmount /opt : Device busy
root:INLAND3>

What next?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

the command is umount (no n)...
Try again!


waiting...
Victor
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

root:INLAND3>fuser -kcu /opt
/opt:

root:INLAND3>umount /opt
umount: cannot unmount /opt : Device busy
root:INLAND3>

Robert-Jan Goossens_1
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Hi,

Try
# cd /
# umount /opt
# lvextend -L XXX /dev/vg00/lvolx
# extendfs -F vxfs/hfs /dev/vg00/rlvolx

change the size and the filesystem type in above commands.

Regards,
Robert-Jan
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Sorry,
I just realised you had all the /opt/oracles...
You will have to stop oracle, kill everything that is going to bother =>
for i in 1 2 3 4 5 6 7 8 9 10 11
do
fuser -ku /opt/oracle$i
umount /opt/oracle$i
done

Next
try again to umount /opt and mount it again
the idea is if you can do it so can SAM...


good luck
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

root:INLAND3>for i in 1 2 3 4 5 6 7 8 9 10 11 12
> do
> fuser -ku /opt/oracle$i
> umount /opt/oracle$i
> done
/opt/oracle1:

umount: cannot find /opt/oracle1 in /etc/mnttab
cannot unmount /opt/oracle1
/opt/oracle2:

umount: cannot find /opt/oracle2 in /etc/mnttab
cannot unmount /opt/oracle2
/opt/oracle3:

umount: cannot find /opt/oracle3 in /etc/mnttab
cannot unmount /opt/oracle3
/opt/oracle4:

umount: cannot find /opt/oracle4 in /etc/mnttab
cannot unmount /opt/oracle4
/opt/oracle5:

umount: cannot find /opt/oracle5 in /etc/mnttab
cannot unmount /opt/oracle5
/opt/oracle6:

umount: cannot find /opt/oracle6 in /etc/mnttab
cannot unmount /opt/oracle6
/opt/oracle7:

umount: cannot find /opt/oracle7 in /etc/mnttab
cannot unmount /opt/oracle7
/opt/oracle8:

umount: cannot find /opt/oracle8 in /etc/mnttab
cannot unmount /opt/oracle8
/opt/oracle9:

umount: cannot find /opt/oracle9 in /etc/mnttab
cannot unmount /opt/oracle9
/opt/oracle10:

umount: cannot find /opt/oracle10 in /etc/mnttab
cannot unmount /opt/oracle10
/opt/oracle11:

umount: cannot find /opt/oracle11 in /etc/mnttab
cannot unmount /opt/oracle11
/opt/oracle12:


that is where I'm at now

waiting...i have 10 more mins to try now then lunch
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Good point Robert,
Adrian what do you have in /etc/default/fs, e.g.
$ more /etc/default/fs
LOCAL=vxfs
fs: END

This gives us the type of filesystem you have by default

Robert, my aim was to let Adrian use sam toextend to 650 MB with sam in order to install ignite, THEN do as you suggets the same manip by hand because Adrian will not have the choice with /var what do you think?
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

do a bdf again and tell us what you see
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Dont forget (I did...) you have also an /opt/oracle

What do you have in /etc/fstab ?
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

LOCAL=vxfs
fs: END

is my output

BFD output is attached


....still waiting...lunch will wait...
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

/etc/fstab gives:

# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg03/lvol3 /opt/oracle6 hfs defaults 0 2
/dev/vg03/lvol2 /opt/oracle5 hfs defaults 0 2
/dev/vg02/lvol1 /opt/oracle4 hfs defaults 0 2
/dev/vg05/lvol1 /opt/oracle8 hfs defaults 0 2
/dev/vg05/lvol2 /opt/oracle9 hfs defaults 0 2
/dev/vg05/lvol3 /opt/oracle10 hfs defaults 0 2
/dev/vg01/lvol1 /opt/oracle vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg06/lvol1 /opt/oracle1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg06/lvol2 /opt/oracle2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg06/lvol3 /opt/oracle3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg06/lvol7 /opt/oracle7 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg05/lvol4 /opt/oracle11 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg04/lvol01 /opt/oracle12 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

its /opt/oracle that is blocking you
try to umount /opt/oracle if it refuses than fuser -ku /opt/oracle then umount /opt/oracle

Now things should work...
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

Here is what I just did:

1) umount /opt/oracle
2) umount /opt
3) ran SAM and extented to 652MB (it complained that needed to be multiples of 4)
4) mount /opt/oracle
5) mount /opt

I did bdf and attached is output. What do I do next? Where is all the other /opt/oracle1/2 etc...I have re mount them also right?

...waiting...but getting hungry...
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

mounted all the other oracles, bdf output is attached.
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Well done

Hungry now?
I suppose you have a disk subsystem attached to you D350 (Dont think it can hold so much disks...)

Ive noticed by your fstab that although your default is vxfs you had some hfs configured (cant extend etc...) so I would suggets we scratch the lot and build up a clean system
You will learn a lot and become an appointed HP Sysadmin in no time...
What so you think?
I can now go ahead with you ignite install...
Im hungry also now... time to leave
Will join back from home if you wish (was a bit late last evening...)
I dont know what time it is for you...
If you wish to stop here or work after lunch (which?) and Im going towards 19:00

If you want to continue after I will connect from home
All the best
Victor
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

thanks! I mounted the remaining oracles..1,2 etc and had to bring back up Oracle test DB cause developer wanted to use machine.

I will now install Ignite UX and then come back and situation again here ok? I'm going to lunch now 1PM here EST.

Located in Barbados, Eastern Caribbean ;)
Adrian Sobers2
Super Advisor

Re: Removing unwanted filesets - reason is space needed

Victor,

About building filesystem up from scratch. We have some data on this machine that we need so I don't know how that will affect us if we go that route. Or do I just install ignite back up current config to tape and move from there?

Well one thing at a time. Trying Ignite install again...will report back
Victor BERRIDGE
Honored Contributor

Re: Removing unwanted filesets - reason is space needed

Fine that means in about one-two hours time we can continue step by step then
That leaves me the time to go home put the kids to bed have something to eat and and connected!
Does that suit you?