IOS XR平台路由器(如CRS)上,存储介质(或叫磁盘)较多,通过dir或者show filesystem可以看到有哪些磁盘,如下所示,对于新手来说,可能会比较疑惑,这么多磁盘,分别是做什么用的?有啥区别?
RP/0/RP0/CPU0:MC-LCC0-40G#dir ?
/all List all files
/ena Recognize sub directories
/recurse Recursively list subdirectories encountered
WORD file name
bootflash: bootflash: file system
disk0: disk0: file system
disk0a: disk0a: file system
disk1: disk1: file system
disk1a: disk1a: file system
harddisk: harddisk: file system
harddiska: harddiska: file system
harddiskb: harddiskb: file system
lcdisk0: lcdisk0: file system
lcdisk0a: lcdisk0a: file system
location Fully qualified location specification
nvram: nvram: file system
RP/0/RSP0/CPU0:ios#show filesystem
Thu Jan 15 07:59:23.921 UTC
File Systems:
Size(b) Free(b) Type Flags Prefixes
- - network rw qsm/dev/fs/tftp:
- - network rw qsm/dev/fs/rcp:
- - network rw qsm/dev/fs/ftp:
411041792 410863616 dumper-lnk rw qsm/dumper_disk0a:
411041792 409105920 dumper-lnk rw qsm/dumper_disk1a:
71422705664 65529062400 dumper-lnk rw qsm/dumper_harddisk:
224256 166912 dumper-lnk rw qsm/dumper_nvram:
15708717056 15704851968 dumper-lnk rw qsm/dumper_harddiskb:
16179511296 16169447424 dumper-lnk rw qsm/dumper_harddiska:
1644150784 893752832 dumper-lnk rw qsm/dumper_disk1:
1644150784 897604096 dumper-lnk rw qsm/dumper_disk0:
28966912 26142396 dumper-lnk rw qsm/dumper_configflash:
44695552 25734668 dumper-lnk rw qsm/dumper_bootflash:
1644150784 897604096 flash-disk rw disk0:
1644150784 893752832 flash-disk rw disk1:
71422705664 65529062400 harddisk rw harddisk:
15708717056 15704851968 harddisk rw harddiskb:
16179511296 16169447424 harddisk rw harddiska:
411041792 409105920 flash-disk rw disk1a:
411041792 410863616 flash-disk rw disk0a:
28966912 26142396 flash rw configflash:
224256 166912 nvram rw nvram:
44695552 25734668 flash rw bootflash:
有些内容暂时也没有弄明白,下面针对已经明白的列一个说明,如下
1、bootflash存放的是IOX的引导程序(系统),该引导程序介于rommon和IOX之间;
2、disk0、disk0a、disk1、disk1a:相当于电脑中的C盘,用于存放系统文件,多个盘之间可以配置镜像备份;普通文件不建议手工存放到该盘上;
3、harddisk、harddiska、harddiskb:相当于电脑中的D盘,可存放各种用户文件;
4、lcdisk0、lcdisk0a:估计Line Card线卡上的磁盘;
5、location:通过这个参数,可以查看其它板卡的磁盘信息,如命令dir bootflash: location 0/2/cpu0,如果不加location参数,默认就是查看主用引擎板的信息;
6、nvram:rommon参数信息的存放位置,如寄存器值、IP地址、tftp地址等等;
IOS XR和IOS有个不同之处,IOS平台的ios文件存放在flash中,就一个文件,路由器运行时,需要把ios文件读取到内存中,所以当路由器正常运行的时候,删除flash中的ios文件都不影响路由器的继续运行(但下一次重启没有ios文件的话,肯定是无法启动);而IOS XR平台是使用一个安装包(通俗叫mini),会解压成很多的目录和文件,存放在disk0中,在路由器运行过程中,是不能随便删除的。
以上内容,理解可能不当之处,水平有限,仅供参考。