adding_disks

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: How to ADD new HDD ?
From: "Steve \"Stevers!\" Coile" <scoile@redhat.com>
Date: Wed, 30 Jun 1999 07:44:16 -0400 (EDT)


On Wed, 30 Jun 1999, Manoj Saxena wrote:
>     We have a Redhat 5.2 server installed with 9Gb SCSI hard disk. Due 
> to huge volume of data we want to add another 9Gb SCSI hard disk. 
> This is a brand new unformatted hard disk.
> 
>     So please let me know how can I add it with no risk to the 
> present running server. Though I can shut it down at times.

Once you've physically installed the disk and rebooted the system,
you'll need to do the following:

- Identify the disk.  Use the "dmesg" command and/or the /var/log/dmesg
  and /var/log/messages files to identify the device special file
  associated with the new disk.  It'll probably be /dev/sdb or /dev/sdc.

- Partition the disk.  Use the "fdisk" command to partition the new disk.
  Invoke the utility as follows:

	fdisk /dev/sdc

  replacing "/dev/sdc" with the name of the device special file
  corresponding to the new disk.

  If you would like to put a swap partition on the new disk, you'll need
  to assign the new swap partition the appropriate partition type.

  After partitioning the disk, save the changes to the partition table
  and exit the "fdisk" utility.

- Format the new partitions.  Use the "mke2fs" command to format the
  newly-created partitions:

	mke2fs -v /dev/sdc1

  replacing "/dev/sdc1" with the name of the device special file
  corresponding to the partition to format.  "/dev/sdc1" refers to the
  first partition on /dev/sdc.  Format each new partition that is to
  contain a file system.

- Create mount points for the new file systems.  Use the "mkdir" command
  to create directories where the new file systems will be mounted.
  For instance, if you want one of the new file systems to be accessible
  as /home2, do:

	mkdir /home2

- Add entries for the new file systems in /etc/fstab.  See the fstab(5)
  man page for more information on the format of /etc/fstab.  See the
  mount(8) man page for more information on available mount options.

- Mount the new file systems.

That's it.

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu