[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partitioning RAID5 disks into 2 Filesystems



Pabla,Balbir [Ontario] wrote:

I thought, the process should be fdisk followed by mkfs.

Use cfdisk to create partitions; using fdisk is afaik deprecated. *Always* reboot after creating partitions or changing the partition table before doing anything else, and verify that the partitions have been created in the way you wanted after the reboot. I've seen it failing once, and you don't want to create a new filesystem and thereby accidentially overwrite something else or run into other troubles later because the boundaries of the partitions are incorrectly recognized :)

1. How to recognise the device file for RAID5 ?

fdisk -l, cat /proc/devices and cat /proc/scsi/scsi might help.

 Ls -l /dev    .... My guess is /dev/sda   is for RAID1 and /dev/sdb is
for RAID5. Am I correct that device file for all the RAID5 disks is
/dev/sdb

/dev/sda is the first SCSI disk, /dev/sdb is the second. See /usr/src/linux/Documentation/devices.txt.

May I know exact sysntax of commands to partition and create 2
filesystems on my 7 RAID disks.

After creating the partitions with cfdisk, use mkfs -j to create ext3 filesystems on them.

You may want to use LVM if you need the advantages it offers, but using it also means to add a layer of serious (software) complexity to a system that should be as failsave as possible and therefore be kept as simple as possible.


GH



Reply to: