Creating And Mounting A File System; Checking The Current State Of Raid - NEC Express5800/ftServer Administrator's Manual

Linux operating system
Table of Contents

Advertisement

To stop the device, use the mdadm command with the -S argument, as follows:
mdadm -S /dev/md30

Creating and Mounting a File System

The RAID arrays created in the preceding examples are raw disk block devices. You
can mount a file system on the RAID array.
The following command creates an ext-3 journaled file system in the RAID-0 array
created above:
# mkfs.ext3 /dev/md30
You can mount the file system on a convenient mount point, /big_data, as follows:
# mkdir /big_data
# mount /dev/md30 /big_data
To verify the work, use the command df to show the size of the file system:
# df /big_data
Use the command ls to show the lost+found directory in the file system:
# ls -l /big_data
At this point, be sure to add the mount to the /etc/fstab file, so the file system is
mounted during boot. Reboot the system to make sure it works.
N O T E
A single disk that is not part of a RAID array must have a
file system mounted on it to ensure that its operation state
is reported correctly.

Checking the Current State of RAID

The mdstat file displays the current state of RAID. It shows all running RAID arrays
and their current status, including which mirrors are present, whether they are
synchronized, and more. See
Example
5-2.
Setting Up the ftServer System
Setting Up RAID Arrays
5-13

Advertisement

Table of Contents
loading

Table of Contents