0019-01-28

flash partition

flash memoryはpartitionで区切り、異なる領域を作ることができる。つまり異なるflash imageを入れておくことが可能。ちなみにこんなことはCCIE試験に出ないだろうが、こんなこともできるんだ、ということで知ってもらえればと思う。

Router#sh ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 11.2(15)P, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1998 by cisco Systems, Inc.
Compiled Mon 13-Jul-98 21:47 by dschwart
Image text-base: 0x03030170, data-base: 0x00001000

ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)

Router uptime is 23 minutes
System restarted by power-on
System image file is "flash:c2500-is-l.112-15.P.bin", booted via flash

cisco 2522 (68030) processor (revision E) with 2048K/2048K bytes of memory.
Processor board ID 04604103, with hardware revision 00000002
Bridging software.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
Basic Rate ISDN software, Version 1.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
8 Low-speed serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash partition 1 (Read ONLY)
8192K bytes of processor board System flash partition 2 (Read/Write)

こういうshow versionを見たことがある方も多いはず。
これは16MByteのflash memを8MByteで区切っていることを示す。

ではpartitionをなくし1つにまとめる方法を紹介する。まずはflashのeraseから。

Router#erase flash
Partition Size Used Free Bank-Size State Copy Mode
1 8192K 5888K 2303K 8192K Read ONLY RXBOOT-FLH
2 8192K 5905K 2286K 8192K Read/Write Direct

System flash directory, partition 2:
File Length Name/status
1 6046760 c2500-is-l.112-17.P.bin
[6046824 bytes used, 2341784 available, 8388608 total]

Erase flash device, partition 2? [confirm]  //patition2からflashを消すか?と聞かれるのでyes//
Are you sure? [yes/no]: yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased

次にpartitionを1つにする。

Router(config)#no partition flash: 2
Router(config)#
Router#

確認してみる。

Router#show ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-IS-L), Version 11.2(15)P, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1998 by cisco Systems, Inc.
Compiled Mon 13-Jul-98 21:47 by dschwart
Image text-base: 0x03030170, data-base: 0x00001000

ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)

Router uptime is 36 minutes
System restarted by power-on
System image file is "flash:c2500-is-l.112-15.P.bin", booted via flash

cisco 2522 (68030) processor (revision E) with 2048K/2048K bytes of memory.
Processor board ID 04604103, with hardware revision 00000002
Bridging software.
X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.
Basic Rate ISDN software, Version 1.0.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
8 Low-speed serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read ONLY) //16MByteになっていることが確認できる//

今回はこれだけ。

0 件のコメント: