Guest

Cisco 500 Series Cache Engines

Disk Setup on the CE During Upgrade from Version 2 to 3

Document ID: 21363

Updated: Jan 30, 2006

   Print

Introduction

This document provides information on how to manage disk partitions on the Content Engine when upgrading from version 2 to 3.

Prerequisites

Requirements

There are no specific requirements for this document.

Components Used

This document is not restricted to specific software and hardware versions.

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Conventions

For more information on document conventions, see the Cisco Technical Tips Conventions.

Information

Version 1.0

Cisco Content Engines delivered from the manufacture running version 2.x.x are generally pre-partitioned and no custom setup of the internal disks require further setup. Customers are free to configure the Content Engine for typical transparent caching with a redirecting router using Web Cache Communications Protocol (WCCP), or they can proceed to configure the Content Engine as a proxy.

In 3.x., the delivery of mediafs partition type was added, providing designers the opportunity to prepare for media streaming. In version 3.x.x, the user can customize disk partition size and media type. Caching customers wishing to upgrade will often find that their caches are running the new 3.x.x code. These customers will need to do manual adjustments to get their caches back online.

3.x.x Code

Release 3.1 software cannot read or write Release 2.x disk partitions. The optional software available with Release 3.1 requires creating new disk partitions. See the Maintaining the Hard Disk Storage section of the Cisco Cache Software Configuration Guide, Release 3.1 for details on Release 3.1.1 disk partitions.

Customers often run into a problem of disk space after taking a 2.x.x Content Engine to version 3.x.x.

Below is what the disks on the Content Engine look like after a 3.1.1 upgrade.

ContentEngine# show disk-partitions disk00
Disk size in 512 byte blocks: 35566448
num:	 type	   start       size status
-----------------------------------------------------
0:	 SW	    32	 35566448 mounted
1:     NONE
2:     NONE
3:     NONE
Free disk space: 0 blocks (0 M) .
Creating the sysfs partition:

Disk Setup

Follow the steps below for disk setup.

  1. Issue the disk partition EXEC command to create a 100-megabyte sysfs partition at disk01/00.

    ContentEngine# disk partition disk01/00 100M sysfs
    ContentEngine# show disk-partitions disk01
    Disk size in 512 byte blocks: 35566448
    Disk size in 512 byte blocks: 35566448
    num:	 type	   start       size status
    -----------------------------------------------------
    0:	 SW	    32	 35566448 mounted
    0:    SYSFS   24896545	   204800 unformated, unmounted
    1:     NONE
    2:     NONE
    3:     NONE
    Free disk space: 10465135 blocks ( M)
    
  2. Format the sysfs partition by issuing the sysfs format EXEC command.

    ContentEngine# sysfs format disk01/00
    Formatting sysfs on disk01/00
    Formatting disk01/00 sysfs ok
    ContentEngine# show disk-partitions disk01
    Disk size in 512 byte blocks: 35566448
    num:	 type	   start       size status
    -----------------------------------------------------
    0:    SYSFS   24896545	   204800 formatted, unmounted
    1:     NONE
    2:	CFS	    32	 10669934 mounted
    3:  MEDIAFS   10669966	 14226579 mounted
    Free disk space: 10465135 blocks (5109 M)
    
  3. Issue the sysfs mount EXEC command to mount the sysfs partition at volume name /local2.

    ContentEngine# sysfs mount disk01/00 local2
    Checking sysfs on disk01/00
    disk01/00 has been checked OK
    Mounted disk01/00 to /local2
    ContentEngine# show disk-partitions disk01
    Disk size in 512 byte blocks: 35566448
    num:	 type	   start       size status
    -----------------------------------------------------
    0:    SYSFS   24896545	   204800 mounted at local2
    1:     NONE
    2:	CFS	    32	 10669934 mounted
    3:  MEDIAFS   10669966	 14226579 mounted
    Free disk space: 10465135 blocks (5109 M)
    

Up to four partitions can coexist on the same physical disk, but there can be only one swfs partition per system. The partitions on a disk can have different sizes. The partitions are checked and repaired automatically when they are mounted during the bootup or system reload sequence.

In the command-line interface (CLI), each disk is uniquely identified with a diskname made from the word disk and a two-digit identifier (for example, disk00, disk01, disk02, and so forth). Partition names consist of the disk name, a forward slash character, and the partition number (for example, disk00/00, disk00/01, disk00/02, disk00/03, disk01/00, and so forth).

A disk partition must be formatted and mounted before the system can use it for storage. To create a partition on a disk, issue the disk partition EXEC command. To format, mount, and unmount the different partition types, issue the cfs, mediafs, and sysfs EXEC commands.

Note: The swfs partition is factory-installed, or created as part of a software upgrade procedure and cannot be unmounted or modified. Issue the disk manufacture and disk prepare EXEC commands to make an entire disk a mediafs or cfs partition type. For the specified disk, either command unmounts all partitions, erases all partitions, creates the specified partition type, and formats the disk, but only the disk manufacture command mounts the newly created partition. Issue the disk erase-all-partitions and disk erase-partition EXEC commands to erase all or a specified partition from a disk.

To display all the disks available to the Content Engine, issue the show disks EXEC command.

ContentEngine# show disks
disk00	(scsi host 0, channel 0, id 0)
disk01	(scsi host 0, channel 0, id 1)
disk02	(scsi host 3, channel 0, id 0)
disk03	(scsi host 3, channel 0, id 1)
disk04	(scsi host 3, channel 0, id 2)
disk05	(scsi host 3, channel 0, id 3)
disk06	(scsi host 3, channel 0, id 4)
disk07	(scsi host 3, channel 0, id 5)
disk08	(scsi host 3, channel 0, id 8)
disk09	(scsi host 3, channel 0, id 9)

To display the partitions on a specific disk, issue the show disk-partitions diskname EXEC command.

ContentEngine# show disk-partitions disk00
Disk size in 512 byte blocks: 35566448
num:	 type	   start       size status
-----------------------------------------------------
0:     SWFS	    32	 14226579 System Reserved
1:     SYSFS   14226611   21338112 mounted at local1
2:     NONE
3:     NONE

Issue the show sysfs volumes, show cfs volumes, and show mediafs volumes EXEC commands to display information particular to the respective partition.

Related Information

Updated: Jan 30, 2006
Document ID: 21363