Skip to content

Copycds_enhancement

ligc edited this page Jul 30, 2015 · 7 revisions

Table of Contents

{{:Design Warning}}

NAME

copycds - Copies Linux distributions and service levels from CDs/DVDs to install directory.

SYNOPSIS

copycds [{-n|--name|--osver}=distroname] [{-a|--arch}=architecture] [{-p|--path}=ospkgpath] {iso|device-path} ...

copycds [-i|--inspection] {iso|device-path}

copycds [-h|--help]

DESCRIPTION

The copycds command copies all contents of Distribution CDs/DVDs or Service Pack CDs/DVDs to a destination directory. The destination directory is specified by -p option. The destination directory should only be a path under /install directory. If no path is specified, the default destination directory will be formed from the installdir site attribute and the distro name and architecture, for example: /install/sles11.2/ppc64. The copycds command can copy from one or more ISO files, or CD/DVD device path. You can specify -i or --inspection option to check whether the CDs/DVDs can be recognized by xCAT. If recognized, the distribution name, architecture and the disc no (the disc sequence number of CDs/DVDs in multi-disk distribution) of the CD/DVD is displayed. If xCAT doesn't recognize the CD/DVD, you must specify the -n and -a options. This is sometimes the case for distros that have very recently been released, and the xCAT code hasn't been updated for it yet.

OPTIONS

{-n|--name|--osver}=distroname

The linux distro name and version that the ISO/DVD contains. Examples: rhels5.3, centos5.1, fedora9.

{-a|--arch}=architecture

The architecture of the linux distro on the ISO/DVD. Examples: x86, x86_64, ppc64.

{-p|--path}=ospkgpath

The destination directory to which the contents of ISO/DVD will be copied. The destination directory should be a path under /install directory. When this option is not specified, the default destination directory will be formed from the installdir site attribute and the distro name and architecture, for example: /install/sles11.2/ppc64. This option only supports distributions of sles and redhat.

{-i|--inspection}

Check whether xCAT can recognize the CD/DVDs in the argument list without any disc copy, display the os distribution name, architecture and disc no of each recognized CD/DVD. This option only supports distributions of sles and redhat.

RETURN VALUE

Zero: The command completed successfully. For the --inspection option, the ISO/DVD have been recognized successfully

Nonzero: An Error has occurred. For the --inspection option, the ISO/DVD cannot be recognized

EXAMPLES

   To copy the RPMs from a set of ISOs that represent the CDs of a distro:
   copycds cd1.iso cd2.iso cd3.iso


   To copy the RPMs from a physical DVD to /depot/kits/3 directory:
   copycds -p /depot/kits/3 /dev/dvd


   To copy the RPMs from a DVD ISO of a very recently released distro:
   copycds -n rhels5.3 -a x86_64 dvd.iso


   To check whether a DVD ISO can be recognized by xCAT and display the recognized disc info:
   copycds -i /media/RHEL/6.0/RHEL6.0-20100922.1-Server-ppc64-DVD1.iso

NOTES

1. The -p and -i options currently only support distributions of sles and redhat.

2. The output format of copycds --inspection is:

 OS Image:<value>
 DISTNAME:<value>
 ARCH:<value>
 DISCNO:<value>

As a example:

 OS Image:/media/RHEL/6.2/RHEL6.2-20111117.0-Server-ppc64-DVD1.iso
 DISTNAME:rhels6.2
 ARCH:ppc64
 DISCNO:1

For the attributes failed to be recognized, the value will be blank.

3. For {-p|--path}=ospkgpath option,the destination directory should only be a path under /install directory.

News

History

  • Oct 22, 2010: xCAT 2.5 released.
  • Apr 30, 2010: xCAT 2.4 is released.
  • Oct 31, 2009: xCAT 2.3 released. xCAT's 10 year anniversary!
  • Apr 16, 2009: xCAT 2.2 released.
  • Oct 31, 2008: xCAT 2.1 released.
  • Sep 12, 2008: Support for xCAT 2 can now be purchased!
  • June 9, 2008: xCAT breaths life into (at the time) the fastest supercomputer on the planet
  • May 30, 2008: xCAT 2.0 for Linux officially released!
  • Oct 31, 2007: IBM open sources xCAT 2.0 to allow collaboration among all of the xCAT users.
  • Oct 31, 1999: xCAT 1.0 is born!
    xCAT started out as a project in IBM developed by Egan Ford. It was quickly adopted by customers and IBM manufacturing sites to rapidly deploy clusters.
Clone this wiki locally