04-11-2012 03:57 PM
ERROR: Need 2484MB more space on partition: /var/netscreen/GuiSvr for the following directories: /var/netscreen/GuiSvr
So I cleaned up:
- logs
- Software library files
- ALL recent DB backups (this used to be the only fix needed)
- cores
- random backup files
df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 5036316 475224 4305260 10% /
none 2075688 0 2075688 0% /dev/shm
/dev/sda9 4032092 53796 3773472 2% /tmp
/dev/sda7 20161172 10030332 9106700 53% /usr
/dev/sda6 85032152 4580884 76131796 6% /var
/dev/sda3 50394996 86084 47748956 1% /var/cores
/dev/sdb2 235215768 12485604 210781824 6% /var/netscreen/DevSvr
/dev/sda5 50394964 1779512 46055496 4% /var/netscreen/DevSvr/profiler_data
/dev/sda8 20161172 16620280 2516752 87% /var/netscreen/GuiSvr
A search for large ish files returns
find /var/netscreen/GuiSvr -type f -size +30000k -exec ls -lh -all {} \; | awk '{ print $9 ": " $5 }'
/var/netscreen/GuiSvr/Schemas-GDH/160/nsm.schema.b
/var/netscreen/GuiSvr/Schemas-GDH/169/nsm.schema.b
/var/netscreen/GuiSvr/Schemas-GDH/190/nsm.schema.b
/var/netscreen/GuiSvr/Schemas-GDH/147/nsm.schema.b
/var/netscreen/GuiSvr/Schemas-GDH/187/nsm.schema.b
/var/netscreen/GuiSvr/be/schema-binary/nsm.schema.
/var/netscreen/GuiSvr/be/schemas/juniper-update-pr
/var/netscreen/GuiSvr/be/schemas/juniper-update-pr
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/dmi-schema-stage/nsm/dmi/jun
/var/netscreen/GuiSvr/xdb/init/schemafile-content.
/var/netscreen/GuiSvr/xdb/xdb17188.tar.gz: 325M
/var/netscreen/GuiSvr/xdb/data/directive: 35M
/var/netscreen/GuiSvr/xdb/data/refDb: 61M
/var/netscreen/GuiSvr/xdb/data/idp-attack-grp: 33M
/var/netscreen/GuiSvr/xdb/data/auditlog: 75M
/var/netscreen/GuiSvr/xdb/data/attack: 237M
/var/netscreen/GuiSvr/xdb/data/referrer: 30M
/var/netscreen/GuiSvr/xdb/data/junos-es: 47M
/var/netscreen/GuiSvr/xdb/data/schemafile-content: 249M
/var/netscreen/GuiSvr/xdb/data/auditlogDetails: 261M
/var/netscreen/GuiSvr/xdb/data/auditlogReference: 65M
/var/netscreen/GuiSvr/sec-update/current/NSMFP14-D
/var/netscreen/GuiSvr/dmi-schema-stage.old/nsm/dmi
/var/netscreen/GuiSvr/dmi-schema-stage.old/nsm/dmi
I figure dmi-schema-stage.old is safe to nuke, but I am open to suggestions...
Solved! Go to Solution.
04-12-2012 02:16 AM
Is it NSM or NSM Express?
I gave 120GB for NSM (/var/ directory) and it's enough ... if not, then I connect usb harddrive and make link (for example "ln -s /media/sdd1/netscreen-linked /var/netscreen) and copy NSM files to free space.
This should be enough ...
Next thing, I reduced dbbackup days from default 7 to 3. I did not used dbbackup files anymore yet
Best regards
Vencour
04-12-2012 06:57 AM - edited 04-12-2012 08:37 AM
-nsmexpress appliance so I don't have that kind of control over the drive size
- already stated I have cleaned up the backups, was already at three but manually removed those as well. Sent from my mobile.
04-12-2012 01:16 PM
Solved it by moving all of /var/netscreen/GuiSvr/dmi-schema-stage.old to my /var/tmp just in case...
Cleared up something close to 20% of /var/netscreen/GuiSvr/
04-13-2012 04:06 AM
SomeITGuy wrote:Solved it by moving all of /var/netscreen/GuiSvr/dmi-schema-stage.old to my /var/tmp just in case...
Cleared up something close to 20% of /var/netscreen/GuiSvr/
Kind of worrying that they leave something this large and obviouly old in there. They need to seriously enhance their schema update scripts to do better hose cleaning.
My new solution to this problem: Open a JTAC ticket EVERY time we want to update the schema or NSM itself and ask them to check if we have enough space.
10-10-2012 01:12 PM
For people searching the forums with a NSMxpress appliance
and
Upgrade was failing due to disk space issue in /usr partition.
JTAC did the following on my box
They deleted some files in /usr/netscreen/GuiSvr/lib/initVar/dmi-schema-stage
They used the following command :
rm -rf /usr/netscreen/GuiSvr/lib/initVar/dmi-schema-stage
Hopefully this same someone some time and frustration.
10-11-2012 07:10 AM
It's really quite unbelievable that this issue still exists AND that they *still* sell NSMxpress appliances with laughable 20 GB partitions, despite the fact they know exactly that this is way too small. Someone at Juniper definitely needs to be fired.
12-19-2012 01:43 AM
There is a huge decrease in schema size starting with 235. For example:
234 compressed schema size: 467MB
235 compressed schema size: 55MB
if you are using an older one, it may be better to go above 234