28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ad1 11513 MB IBM-DARA-212000 AH0AHGN1017 Hard Disk<br />

Routing Engine 1 REV 06 740-003239 9000022146 RE-2.0<br />

Routing Engine 1<br />

d800000734745701 RE-2.0<br />

ad0 91 MB SanDisk SDCFB-96 ggbsc410020 Compact Flash<br />

ad1 8063 MB TOSHIBA MK2016GAP Y0T39909T Hard Disk<br />

...<br />

The output of this command also shows the manufacturer of the disks.<br />

Use the show system storage command to find out the drive names:<br />

aviva@router1> show system storage<br />

Filesystem Size Used Avail Capacity Mounted on<br />

/dev/ad0s1a 77M 40M 31M 56% /<br />

devfs 16K 16K 0B 100% /dev/<br />

/dev/vn0 13M 13M 0B 100% /packages/mnt/jbase<br />

/dev/vn1 37M 37M 0B 100% /packages/mnt/jkernel-<br />

7.3-20050504.0<br />

/dev/vn2 12M 12M 0B 100% /packages/mnt/jpfe-M40-<br />

7.3-20050504.0<br />

/dev/vn3 2.3M 2.3M 0B 100% /packages/mnt/jdocs-7.<br />

3-20050504.0<br />

/dev/vn4 14M 14M 0B 100% /packages/mnt/jroute-7.<br />

3-20050504.0<br />

/dev/vn5 5.1M 5.1M 0B 100% /packages/mnt/jcrypto-<br />

7.3-20050504.0<br />

mfs:102 1.5G 12K 1.4G 0% /tmp<br />

/dev/ad0s1e 12M 24K 11M 0% /config<br />

procfs 4.0K 4.0K 0B 100% /proc<br />

/dev/ad1s1f 9.4G 2.4G 6.2G 28% /var<br />

You see that /dev/ad0s1a is mounted at /, and you know that’s the flash disk. /config<br />

is also on ad0 (the flash disk again) but on a different partition, and /var is on ad1 (the<br />

hard disk). The /dev/vn0 devices refer to the software installed on the router. All<br />

these partitions are stored on / (and /altroot).<br />

The show system storage command output is cluttered and contains more information<br />

than you normally care about. You can shorten by filtering out the installed software<br />

devices:<br />

aviva@router1> show system storage | except /dev/vn<br />

Filesystem Size Used Avail Capacity Mounted on<br />

/dev/ad0s1a 77M 39M 32M 55% /<br />

devfs 16K 16K 0B 100% /dev/<br />

mfs:102 1.5G 8.0K 1.4G 0% /tmp<br />

/dev/ad0s1e 12M 16K 11M 0% /config<br />

procfs 4.0K 4.0K 0B 100% /proc<br />

/dev/ad1s1f 9.4G 1013M 7.6G 11% /var<br />

or even more:<br />

aviva@router1> show system storage | match ad<br />

/dev/ad0s1a 77M 39M 32M 55% /<br />

/dev/ad0s1e 12M 16K 11M 0% /config<br />

/dev/ad1s1f 9.4G 1013M 7.6G 11% /var<br />

Backing Up Filesystems on M-Series and T-Series Routers | 45<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!