08-20-2010 06:09 AM
Hey all,
I'm trying to put 10.3R1 on an SRX210 to do some testing with, but I don't have enough space
Yes I have done 'request system storage cleanup' and 'request system software delete-backup'
Current version is 10.2R2, and I am running IDP (again, doing some testing). I had this same problem with 10.2R2, but I think I just broke down and used the USB drive that time.
It looks like the reason I have not enough space is because of the IDP, but surely I don't have to disable IDP, delete some / all of the IDP packages (and which ones, I haven no clue), just to upgrade -- and then reinstall the IDP packages and re-enable.
Here's my storage dilemma:
admin@SRX210> show system storage Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 293M 203M 67M 75% / devfs 1.0K 1.0K 0B 100% /dev /dev/md0 567M 567M 0B 100% /junos /cf 293M 203M 67M 75% /junos/cf devfs 1.0K 1.0K 0B 100% /junos/dev/ procfs 4.0K 4.0K 0B 100% /proc /dev/bo0s3e 24M 50K 22M 0% /config /dev/bo0s3f 342M 116M 199M 37% /cf/var /dev/md1 168M 15M 139M 10% /mfs /dev/md2 39M 4.0K 36M 0% /mfs/var/run/utm /dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
Notice I have 199M free space in /cf/var -- but the 10.3R1 (and 10.2R2 for that matter) image is ~210 MB.
What I can't remember is if I used the 'unlink no-copy' options when I upgraded to 10.2R2, so if there is a 'backup' 10.2R2 image stored somewhere, I think if I delete that i'll be fine. But lets just say I don't want to go around randomly force-deleting files from the shell ![]()
Thanks,
Will
08-20-2010 06:17 AM
Did you try adding the unlink and no-copy to the command?
Also from what i can see your CF card is small. The one on my SRX210 is a 1GB where you seems to be way under that.
My SRX
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 898M 473M 353M 57% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/md0 566M 566M 0B 100% /junos
/cf 898M 473M 353M 57% /junos/cf
devfs 1.0K 1.0K 0B 100% /junos/dev/
procfs 4.0K 4.0K 0B 100% /proc
/dev/bo0s1e 24M 52K 22M 0% /config
/dev/bo0s1f 61M 4.1M 52M 7% /cf/var/log
/dev/md1 168M 15M 140M 10% /mfs
/cf/var/jail 898M 473M 353M 57% /jail/var
/cf/var/log 61M 4.1M 52M 7% /jail/var/log
devfs 1.0K 1.0K 0B 100% /jail/dev
/dev/md2 39M 4.0K 36M 0% /mfs/var/run/utm
/dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
08-20-2010 06:37 AM
I think the /cf partition size may be related to the dual-boot partition, which was introduced in 10.0. After converting to a dual-root partition my /cf partition shows the same 293M on an SRX210.
You may also want to look if you have any images or large files save locally that are taking up space with 'file list'.
08-20-2010 06:37 AM - edited 08-20-2010 06:39 AM
If you found that there is no sufficient space , you can upgrade without copying the file to the SRX beofre the upgrade using the below method
1-run ftp server ( like : 3CDaemon) on your pc & let it point to the directory containing the image
2- use the command : request sytem software add ftp://username : password@ip/packagename.tgz
username & password are the same as created at step1 , ip is ip of your ftp server ( Your PC )
08-20-2010 06:38 AM
the SRX is a dual-root partitioned SRX, I think that probably has something to do with it.
The SRX is just a 210H-POE -- I'm pretty sure the CF is the same in all of them
admin@SRX210> show chassis hardware Hardware inventory: Item Version Part number Serial number Description Chassis AE2709AA0244 SRX210h-poe Routing Engine REV 32 750-021780 AAAJ5953 RE-SRX210H-POE FPC 0 FPC PIC 0 2x GE, 6x FE, 1x 3G Power Supply 0
I can't use the unlink no-copy options yet as I can't even copy the image over ![]()
i've tried to load via FTP but get a 'can't fetch' error -- possible i'm fat fingering something, but I don't think so -- will try it again all the same
08-20-2010 07:01 AM - edited 08-20-2010 07:01 AM
well I tried FTP method using the no-copy unlink option, and it started to download . . . and then failed due to space ![]()
admin@SRX210> ...me-10.3R1.9-domestic.tgz no-copy unlink no-validate /tmp/incoming-package.7287 182 kB 182 kBps fetch: /tmp/incoming-package.7287: No space left on device ERROR: Cannot fetch file: junos-srxsme-10.3R1.9-domestic.tgz
I guess i'll just resort to the USB method for now . . . but thats pretty nasty.
are 2GB flash cards really that expensive Juniper? ![]()
08-20-2010 08:08 AM
FYI, just tried upgrading from 10.1R1.8 to 10.3 on SRX210 and it succeeded just using the no-validate option. Below is output:
root@SRX210> show system storage
node0:
--------------------------------------------------
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 293M 190M 80M 70% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/md0 528M 528M 0B 100% /junos
/cf 293M 190M 80M 70% /junos/cf
devfs 1.0K 1.0K 0B 100% /junos/dev/
procfs 4.0K 4.0K 0B 100% /proc
/dev/bo0s3e 24M 38K 22M 0% /config
/dev/bo0s3f 342M 7.3M 308M 2% /cf/var
/dev/md1 168M 14M 140M 9% /mfs
/cf/var/jail 342M 7.3M 308M 2% /jail/var
devfs 1.0K 1.0K 0B 100% /jail/dev
/dev/md2 39M 4.0K 36M 0% /mfs/var/run/utm
/dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
root@SRX210> request system software add ftp://x.x.x.x/junos-srxsme-10.3R1.9-domestic.tgz no-validate
/var/tmp/incoming-package.39856
Package contains junos-10.3R1.9.tgz ; renaming ...
Formatting alternate root (/dev/da0s2a)...
/dev/da0s2a: 298.0MB (610284 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 74.50MB, 4768 blks, 9600 inodes.
super-block backups (for fsck -b #) at:
32, 152608, 305184, 457760
Not enough space in /var to save the package file
Installing package '/altroot/cf/packages/install-tmp/junos-10.3R1.9-d
Verified junos-boot-srxsme-10.3R1.9.tgz signed by PackageProduction_10_3_0
Verified junos-srxsme-10.3R1.9-domestic signed by PackageProduction_10_3_0
Saving boot file package in /var/sw/pkg/junos-boot-srxsme-10.3R1.9.tgz
JUNOS 10.3R1.9 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING: Use the 'request system reboot' command
WARNING: when software installation is complete
Saving package file in /var/sw/pkg/junos-10.3R1.9 ...
cp: /altroot/cf/packages/install-tmp/junos-10.3R1.9-do
Saving state for rollback ...
08-20-2010 08:19 AM
yea I think the issue for me is combination of Dual-root plus IDP taking up all the space.
not a super huge deal right now since its a local test device, but could be a major PITA if it was a remote site that needed upgrading.
not sure what I can delete to make more room . . . as I said i'm hesitant to just go into shell and start force-deleting stuff ![]()
08-24-2010 12:48 AM
root@SRX210> request system software add no-validate no-copy /var/tmp/junos-srxsme-10.3R1.9-domestic.tgz reboot
Installing package '/var/tmp/junos-srxsme-10.3R1.9-domestic.tgz' ...
Verified junos-boot-srxsme-10.3R1.9.tgz signed by PackageProduction_10_3_0
Verified junos-srxsme-10.3R1.9-domestic signed by PackageProduction_10_3_0
Available space: -744 require: 28036
WARNING: The /cf filesystem is low on free disk space.
WARNING: This package requires 28036k free, but there
WARNING: is only -744k available.
WARNING: This installation attempt will be aborted.
ERROR: junos-10.3R1.9-domestic fails requirements check
Installation failed for package '/var/tmp/junos-srxsme-10.3R1.9-domestic.tgz'
Solution:
1.Insert USB Memory Stick(included JunOS)(2G or 4G)
2. mount
create mount point ---->mkdir /var/tmp/usb
mount -t msdos /dev/da1s1 /var/tmp/usb
3. Confirm junos file
ls -altr /var/tmp/usb
4. upgrade
root@SRX210>request system software add no-validate no-copy /var/tmp/usb/junos-srxsme-10.3R1.9-domestic.tgz reboot
08-31-2010 06:13 AM
Hi Will,
I was having a similar issue with j-series(trying to upgrade from 9.6 to 10.0)...it kept saying no space in cf(even though i did cleanup,remove backup etc)
I tried the ftp method as mentioned in previous post (with no-copy, unlink and no-validate option) But i kept doing this as "root" user it did not work.
I got fed up with this, did a reboot, logged in as another user(a super-user) and tried the command i was able to upgrade. I did not get any error message. Don't know if this would help
Regards,
Haze