AddExtraHardDisk

From SME Server
Revision as of 18:58, 16 April 2007 by Per (talk | contribs) (Added AddExtraHdd HowTo -stage 1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Add extra harddisk

This HowTo are based on Michiel Blotwijk original.

Description

How to add an extra hard disk to an existing SME server.

It assumes adding one PATA harddrive, but the process will be similar in other situations.

Step-by-step HowTo

1 Preparation

1.0 Mount the harddrive and fire up your machine.

1.1 Get shell access and login as root.

1.2 Switch to single-user mode.

telinit 1

2 Partition

2.0 Now you need to identify the device name of the new disk.

The following command will show you all the drives on your server (including any USB drives you might have).

fdisk -l | more 


2.1 Let's assume you installed the disk as master on the second IDE controller.
This means you have to partition /dev/hdc fdisk /dev/hdc and when prompted: n (to add a new partition) p (to make a primary partion) 1 (that's the number one, the number you want to assign to the partition) Accept the suggested first & last cylinder values w (write and exit) This will create the primary partition /dev/hdc1, using the entire disk space. 2.2 Format the new partition: mkfs -t ext2 /dev/hdc1 2.3 Convert the partition to the ext3 format: tune2fs -j /dev/hdc1
Partition table
Role IDE controller Device name
Master 1 /dev/hda
Slave 1 /dev/hdb
Master 2 /dev/hdc
Slave 2 /dev/hdd