Operating System - HP-UX
1834928 Members
2850 Online
110071 Solutions
New Discussion

Adding usable disk to / filesystem

 
SOLVED
Go to solution
Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Marco,

A 38KB script file? I don't think so!

Pete

Pete
fg_1
Trusted Contributor

Re: Adding usable disk to / filesystem

I had sent a letter to HP asking that they look in to that very thing, as it is a required directory using jetdirect printer installer, what it appears as is though you have it duplicated, 1) /etc/lp/interface
and 2)/etc/lp/interface/model.orig. Seems illogical to me but im not the creator of the program.

I had given thoughts to moving that directory to another location and linking it back to /etc/lp/interface/model.orig but I was told that this would not work.

Marco Santerre
Honored Contributor

Re: Adding usable disk to / filesystem

Pete, it's one script per printer defined.
Cooperation is doing with a smile what you have to do anyhow.
Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Actually, make that a 38MB script file. They've got to be storing something in there. Any hppi experts out there care to enlighten us?

Pete

Pete
fg_1
Trusted Contributor

Re: Adding usable disk to / filesystem

Pete, im attaching a sample file from the directory, there is one of these created for each and every one of the 500 printers i have defined on this system.

Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Frank,

I think you forgot the attachment - but if you're referring to the files like your /etc/lp/interface/dm1cmg03, /etc/lp/interface/dm1lpd02, etc., they're normal. They're also only 11 or 12 KB each. It's that model.orig that's hogging all the space.

Pete

Pete
Marco Santerre
Honored Contributor

Re: Adding usable disk to / filesystem

but the script in /etc/lp/interface (which is about 11K calls the script in /etc/lp/interface/model.orig (which is about 110K), so for each printer you have a total of 120~K.
Cooperation is doing with a smile what you have to do anyhow.
Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Marco,

There's no reference in Frank's attachment to /etc/lp/interface/model.orig (which, at 38737 1KB blocks, is about 38MB).

Pete

Pete
fg_1
Trusted Contributor

Re: Adding usable disk to / filesystem

Pete, this file is the same printer name but from the directory /etc/lp/interface.

Marco Santerre
Honored Contributor

Re: Adding usable disk to / filesystem

Pete,

/etc/lp/interface/model.orig is a directory and it contains files of the same name of the printer that you also find in /etc/lp/interface. I'm no expert in Jetdirect, but I also have it installed and comparing the output with what I see here, and it's no different. That's why I'm saying, in the model.orig directory it's all scripts of about 110K, one for eahc pronter defined.
Cooperation is doing with a smile what you have to do anyhow.
Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Frank,

I think I'm finally getting the picture (sorry - a little slow on the uptake).

So, /etc/lp/interface/model.orig is a directory (not a file) which contains a *large* interface script for each of your printers. There is also a *small* interface script for each of these printers in the /etc/lp/interface directory. Is that true? It seems sinfully wasteful - must be an HP plot to sell larger disk drives.

How about replacing the entire /etc/lp/interface directory with a link to some other filesystem? That would transfer the burden out of your root filesystem and I think you would still be OK when booting in single user mode because there's no need for /etc/lp. Just a thought.

Pete

Pete
fg_1
Trusted Contributor

Re: Adding usable disk to / filesystem

sounds like a good thought pete, can you post a step by step proc to do that.

I would appreciate it.

Thanks again for all your assist and everyone else who assisted, enjoy the points posted.

Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

Frank,

God hates a coward (or so I'm told) - so I tried it myself:

tsws1(147)root# mkdir /var/lp
tsws1(148)root# cd /etc/lp
tsws1(149)root# find . -print |cpio -pdumxl /var/lp
294 blocks
tsws1(150)root# ll /var/lp
total 8
drwxr-xr-x 2 lp bin 1024 Jan 8 11:49 cinterface
drwxr-xr-x 2 lp bin 96 Jul 17 2001 class
drwxr-xr-x 2 lp bin 96 Jul 17 2001 info
drwxr-xr-x 2 lp bin 1024 Jan 8 11:49 interface
drwxr-xr-x 2 lp bin 1024 Jan 8 11:49 member
drwxr-xr-x 2 lp bin 1024 Jan 8 11:49 sinterface
tsws1(151)root# rm -rf /etc/lp
rm: directory /etc/lp not removed. Cannot remove current directory
tsws1(152)root# cd
tsws1(153)root# rm -rf /etc/lp
tsws1(154)root# ln -s /var/lp /etc/lp
tsws1(155)root# lp -d crlzr1 /etc/passwd
request id is crlzr1-111 (1 file)
tsws1(156)root#


I stuck it in /var because I had room but I expect you could put it most any place.

Pete

Pete
V. Nyga
Honored Contributor

Re: Adding usable disk to / filesystem

Hi,

as said before I would also delete most of your older passwd.2001... and passwd.2002...
These files are growing with every new time stamp.
These seems to be backups from older passwd files.
There is no sense to keep them up.

Good luck
Volkmar
*** Say 'Thanks' with Kudos ***
fg_1
Trusted Contributor

Re: Adding usable disk to / filesystem

Thanks again pete, you get the GOOD STAMP award for the day in my book.

Thanks for all the help
Pete Randall
Outstanding Contributor

Re: Adding usable disk to / filesystem

You're very welcome, Frank. I'm just glad you didn't give up on it.

Pete

Pete
Sorrel G. Jakins
Valued Contributor

Re: Adding usable disk to / filesystem

This may be a statement of the obvious, but did you use lsof? That many times has led me to the (largest) needle in the haystack.

Whilst you're at it, look for log files that can also fill your root fs.

Lots of Irish Luck to you.