FAQ---CentOS4

来源:百度文库 编辑:神马文学网 时间:2024/04/28 08:27:47
Questions about CentOS 4
Questions
Are there any alternative upgrade methods to get to CentOS 4.x?
Where do I get the package signing key for CentOS 4?
What is CentOS 4?
What is the centosplus repository for CentOS-4?
What is KBS CentOS Extras?
Who are the CentOS 4 developers and how can I contact them?
Is RHGFS and RHCS available for CentOS-4?
Is Red Hat® Directory Server available for CentOS-4?
How long will CentOS-4 updates be supported?
How do I use LVM2 with CentOS-4?
How do I install software RAID CentOS4?
What are the different types of files available in the CentOS 4 isos directory?
Answers
Are there any alternative upgrade methods to get to CentOS 4.x?
While a lot of people have posted routes and methods to move to CentOS 3.4 to CentOS 4 - the only reliable method that seems to work under different conditions is to boot the CentOS 3.4 machine using CD-1 from CentOS4, and type ‘linux upgradeany‘ at the boot prompt. CentOS 4 will then upgrade the CentOS 3.4 machine, and make all changes required to the filesystem in order to get a functional CentOS 4 install. Once run through, its always a good idea to check the functions you use often, server settings and UI components.
Additional comments byJohnnyHughes:
Upgrades from CentOS-2.1 or CentOS-3.x to CentOS-4
There are possible issues with using "linux upgradeany", and doing a fresh install is best whenever possible. These issues include: SELinux requires special extended attributes that will may not be there if you do an upgrade. So your SELinux support will be limited. If you use YUM to upgrade, you won‘t have even the limited SELinux support. The upstream vendor recommendation is very clear:http://www.centos.org/docs/4/html/rhel-ig-x8664-multi-en-4/ap-upgrade.html (Although upgrades are supported from versions 2.1 and 3 on x86 processors (or version 3 on an AMD64, EM64T or Itanimum system), you are more likely to have a consistent experience by backing up your data and then installing this release of EL4 over your previous installation. This recommended reinstallation method helps to ensure the best system stability possible.) ... {edited slightly to not infringe on tradmarks, see the link for the exact quote }
So my recommendation ... I agree with the upstream vendor, bite the bullet now and do a fresh install (it will save to time in the end anyway)
Where do I get the package signing key for CentOS 4?
You need to install the CentOS RPM signing key. It is not installed as part of the base system install for security reasons. This provides you the opportunity to validate the key before installing it on your system. RPM has the capacity to retrieve the key from a Centos Mirror: rpm --importhttp://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 (as root) will install (‘import‘) the CentOS 4 package signing key for RPM to use to confirm a validly signed package. Please note that it is safer to import the copy of the key from the install ISO media. It is in the root directory of each ISO, as RPM-GPG-KEY, and the same key is present on disc 1 as RPM-GPG-KEY-CentOS-4. The reason this is safer is that a CD is of course an immutable media, and when one verifies ISO MD5SUMs, one is implicitly also verifying the key. As a backstop, this key is as follows:
-----BEGIN PGP PUBLIC KEY BLOCK-----Version: GnuPG v1.2.1 (GNU/Linux)mQGiBEIfIY8RBACIjFavOQNbs4bjTtOblq4X5/oxuTJtv41nfqSFNeUAQke0qoxxAUlBesWxDsOXp5VppgNEA07hGjPvzoxabLAsTccQplvHMNzmRezyukYrSTVR/F7gywpvlhaAFkL9jZxodXzWKk2cmBLVWvuyzlLEUBeijm2amyEHcIGAczxPawCgmVcM9WpA6SOKivd9qTXK2XP+9BUD/2xV4OR4L7q8CSiaDMwPLo6P6D6VDc9LpVy16WmuiYPFJIcIpp309biKZhGZgd+gHDhld9EJcZ3A2v43GY/xCdJqZ7Uh5QIGDafnil872AbMIBYpcOpvAshTM10S3Qj06pIQE47oONZT5A80O/hn+Yd8ySCEswpbWCmtAxnciNw3A/0Qk/bKrhT6J9Um2JhMfxx/nB80mM+Jlsn58B8i4sjrIVdzc3b45Y2wbXN3uVGuvvAFolAco3cpVy3oY1wMVuh8UlJFNESmxZL/Z7BXyKhiKUZrNxEvQt9OtD1Fd36ur8Ky8zFE5GL903Nx/dEVBvIDq2/2K3Wy9Yq3YIC0PW7fkrQlQ2VudE9TLTQga2V5IDxjZW50b3MtNGtleUBjZW50b3Mub3JnPohfBBMRAgAfBQJCHyGPBQkSzAMABAsHAwIDFQIDAxYCAQIeAQIXgAAKCRClPQurRD4YISH0AJ9zmx2JPGt8ELKo3aE0YoGg6EYipwCdH3kRVJHQtDeRs/5v5Ghn92XZS4KITAQTEQIADAUCQh8hxAWDEswCywAKCRA4whYWOWygpCumAJwOseF0mAV+j/0kGrKXf/FKboFScgCdEITVqtB1CCyn+q+IqnCmgEF8rYy5Ag0EQh8hqhAIAKwNu60J+AnfVjNk0eN26sKBQOHFVQX9M3bdNBVWruocb7dro6DG4daPVB66ZI9RqBusll0jz5nUhBO3GZ3rn/KLVhMO2uCtvdcwWYtY6188lO6lOm3aYadIqafcPPiiLnF3zm/E8hI/trbPpaoW1dFBOiSlOY4bSpSCnTuHYd5fjYu77wQhnSsl19XfqwuvHQKW1vhXCaM2GrsLA5tgjLOlJhYJ4yPY2LToyxoWC/JMMM0Vwi7BaVoa/G2uamC6sL5f6KXei5QftemUvw1uM/2fkLbuHtwETq6ZyUZlsL1H5K5G4h+GDVByBF6Y2P1csi7oXK13sdzhkewLaMjmah8ABAsH/3zhD0Gy1jlMs9dGKSi9kq3jcUE/4o3vvjOPbxqT9psJu0jMEAfUVCWX9BWgZXyE2u+nBxcYAnNyqdmQzs6wTgJWGeGKpyC1jIKtO888RpPShvXtt/aNF4LaoielWZY9xu5oYEhnmBoww3VTbVxFNaPjglZOWnTxWfysHwG0H/dnXMp1sJjfdNsiB7zNniRRurlIiy0xhQSkDLe4tUr9Q9u4ztZKbwVX/fBzJC/u4Smi4VYx+HfOAP3OqzcGKNcb68GpIVo31RUQq1JqpPSM5U41kW8u+S5n+zhjZsb/Ix3ks18gI8wz5u5yzfGacqp65NLisqVeOKEf/MQ1xWytG4SITAQYEQIADAUCQh8hqgUJEswDAAAKCRClPQurRD4YIXC1AKCF3t5xKJnEXJfgvhvldOzDIFjajwCgkX/MZI0O0SxYQAc2hEQJqCI/LJU==Qsai-----END PGP PUBLIC KEY BLOCK-----If there is any question as to the validity of the key, please enquire; if a forged key is encountered, please send details, and return contact details to reach you to:security@centos.org
What is CentOS 4?
CentOS-4 is a freely distributable OS built from the source at:ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os/i386/SRPMS Before building the OS, non-free packages are altered. Non-free packages would include those encumbered with a non-redistributable copyright or trademark. CentOS-4 supports x86 (i586 and i686), x86_64 (AMD64 and Intel EMT64), ia64, ppc, s390, s390x, sparc and alpha architectures (ppc and sparc are currently BETA). Updates are distributed via YUM repositories.
What is the centosplus repository for CentOS-4?
The centosplus repo contains packages contributed by CentOS Developers and the Users. These packages might replace rpm‘s included in the core Distribution. You should understand the implications of enabling and using packages from this repository. See thisReadme.txt file for the latest information for CentOS-4 centosplus repo.
There also is a Wiki page about all thedifferent Repositories for CentOS.
What is KBS CentOS Extras?
KBS CentOS Extras is a repository that is based on Fedora Extras and built to work with CentOS-4 i386 and x86_64 arches. It is not an official CentOS repository, but it is currently maintained by Karanbir Singh (one of the CentOS-4 developers) so it is a very good source of programs that are not included with CentOS-4. You can find out how to get the programs for CentOS Extras here:http://centos.karan.org/
For other Repositories also compatible with CentOS4 seethis Page.
Who are the CentOS 4 developers and how can I contact them?
Name (IRC nick)
Johnny Hughes (hughesjr) - CentOS-4 Lead, i386, x86_64
Karanbir Singh (z00dax) - ppc, i386, x86_64
Pasi Pirhonen (blahee) - ia64, alpha, s390, s390x
Jim Perrin (Evolution) - Extras and centosplus
You can easily contact the CentOS-4 developers via theCentOS General Discussion Mailing List or on the #centos channel onIRC You can get help from other users at theCentOS-4 Forums
Is RHGFS and RHCS available for CentOS-4?
Yes, we have released Global File System 6.1 and Cluster Suite 4.0 for CentOS-4. They are available fromthis repository.
Release Announcement
Documentation
Is Red Hat® Directory Server available for CentOS-4?
No. Red Hat® Directory Server 7.1 and Red Hat Console and Administration Server have not been released. When the SRPMS are released, we will build it for CentOS-4.
You can install Fedora Directory server RPMs provided athttp://directory.fedora.redhat.com/wiki/Download. Choose the "Fedora Core 3 and RHEL4" version for CentOS 4.x
How long will CentOS-4 updates be supported?
We intend to support CentOS-4 updates until Feb 29, 2012. The current plan is this:
Full Updates (including hardware updates): Currently to Feb 29, 2008, Maintenance Updates Mar 1, 2008 to Feb 29, 2012
Full Updates During the Full Updates phase, new hardware support will be provided at the discretion of CentOS via Update Sets. Additionally, all available and qualified errata will be provided via Update Sets (or individually {and immediately} for Security level errata.) Update Sets normally will be released 2-4 times per year, with new ISOs released as part of each Update Set. In the 4.x numbering scheme, the .x is the number of the Update Set.
Maintenance Updates During the Maintenance updates phase, only Security errata and select mission critical bug fixes will be released. There will be few, if any, Update Sets released.
How do I use LVM2 with CentOS-4?
The basic answer is that you create Physical Volumes (PVs) using pvcreate and then either create or extend Volume Groups (VGs) with the PVs, the commands for this are vgextend, vgcreate, vgremove among others. Next you would create or extend Logical Volumes (LVs) in the VGs. The commands for that are lvcreate, lvextend, lvremove. Once you have taken care of the LVs, you would extend the file system (ext2 or ext3) using the ext2online command. Here are some detailed references with examples for using LVM2 on ext3:
The Linux Logical Volume Manager
Getting started with EL4‘s built-in LVM tools
TLDP LVM HOWTO
How do I install software RAID CentOS4?
There are two kinds of RAID: hardware RAID and software RAID. The first thing that everyone needs to understand is that many of the new SATA RAID motherboards do not have real hardware RAID, but instead contain a software RAID. The hardware manufacturer provides a software driver to have Windows recognize this a RAID, however it is not hardware RAID, any more than winModems are full hardware modems. So, in these instances, software RAID on Linux can be used. Here is documentation on how to do software RAID on CentOS:
System Admin Guide, RAID
mdadm guide (note: do not install mdadm from the tarball per the article, instead use the command: yum install mdadm, if required)
mdadm on FedoraNews
Man pages:mdadm,mdadm.conf,md
After installation of a software RAID1, you must install GRUB on both partitions. Here is a way to do that:
Reference Guide Grub Install
GRUB on a mirrored boot partition
Hardware RAID is specific to each controller. There are hardware drivers and software to manage the arrays before installation. To CentOS, a hardware RAID configuration looks like one device to install on. All the RAID functions are handled by the hardware controller.
What are the different types of files available in the CentOS 4 isos directory?
CentOS ISO Directory
There are several possible files within each ISO directory.
ISO files {end in .iso} - These files are the images themselves. You would burn these files as an image, once downloaded, to use to install CentOS. See this documentation on how to burn ISO files to disc:http://linuxiso.org/viewdoc.php/howtoburn.html
Torrent files {end in .torrent} - Torrent files will allow you to download the CD using Bittorrent. This is the only way to get ISOs from the mirror.centos.org servers. If you are using CentOS, you can get the latest el3 (for CentOS-3) or the el4 (for CentOS-4) version of bittorrent from Dag Wieer‘s repository:http://dag.wieers.com/packages/bittorrent/ Other OS users can get the latest bittorrent client from:http://www.bittorrent.com/
MD5 files - Other files that are available are the MD5 sums of the iso files in the directory. You can check the md5 sum of the file on your PC to ensure it was transfered properly to your computer and that none of the bits were scrambled, dropped, etc. See this guide for checking the md5 sum of an ISO:http://linuxiso.org/viewdoc.php/verifyiso.html
Single Server CD
The Single Server CD is an ISO that contains most of the items required for basic server setup (without a GUI) on a single CD. This was created for those who want to download 1 CD and be able to do a functional install. Obviously, we can‘t fit everything from the 4 CD set onto 1 CD, but we may not have the packages JUST right. We welcome feedback to the packages included in the Single Server CD, so if you need something not there, let us know. The best way to provide feedback to the CentOS developers is via the CentOS-Devel mailing list:
http://lists.centos.org/mailman/listinfo/centos-devel
Once you use the Single Server CD to install, you can use yum or up2date to add programs that you might need, and it functions just like any other CentOS install. Especially good is the "yum groupinstall" feature. See this link for more help with using yum:
http://mirror.centos.org/centos/4/docs/html/yum/
Full Arch CDs
There are a number of CDs that contain the full install for an architecture (ARCH). There are normally 3 or 4 CDs and they are numbered as either:
CentOS-4.2-x86_64-bin1of4.iso
or like this:
CentOS-3.6-x86_64-disc1.iso
These CDs are the RPMS that need to be installed and the first disc is bootable to do the install.
DVDs
DVDs are normally available for each version, but the ISO files are not normally included in the ISO directory. You can download the CentOS DVD‘s via bittorrent. This is because of the following reasons:
Files greater than 2 GB are not served properly by the default apache included in CentOS (and many other distros), so external (public) CentOS mirrors would end up with large files that they could not serve taking up space on their servers.
Including all DVDs in the mirror would increase the size of the CentOS mirror by 50% (it would be 1.5 x current). As we continue to release new arches and support for new versions, this would cause the size of CentOS to become to large; reducing the number of people who could mirror it for us externally.
CentOS 4 Docs:http://mirror.centos.org/centos/4/docs/
CentOS 3 Docs:http://mirror.centos.org/centos/3/docs/
CentOS External Public Mirrors:http://www.centos.org/mirrors
from;http://wiki.centos.org/FAQ/CentOS4