F
F
FRANZEE2016-07-28 17:24:12
System administration
FRANZEE, 2016-07-28 17:24:12

How to format a raid array?

There is a raid array 10. It is necessary to format each disk.
Is it possible to format them all at once?
Or do I need to delete the raid and format each one separately?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Serg New, 2016-07-28
@drsmoll

Is this a joke? April 1st has passed.
Why format each disk if the RAID array is figuratively a "virtual disk" of several physical disks.

R
res2001, 2016-07-28
@res2001

What for?
You are trying to use a raid in a strange way.
If you need a guarantee of cleaning the disk, then yes, disassemble the raid and do low-level overwriting of information (not formatting).

A
Artem @Jump, 2016-07-28
Tag

Formatting is writing to a file system disk partition. That is, the formatting process consists in writing several files to the disk, which will be used as a database for the file system.
A section is a logical structure.
Before formatting, the physical disk must be divided into logical partitions and formatted.
A raid is an array of multiple disks that are available to the system as one physical disk. The physical disk cannot be formatted, you need to create a partition.
Therefore, in order to format each disk, you need to -
1) Remove the raid and connect the disks directly.
2)Create a partition or partitions on each disk.
3) Format these partitions.
It's just not clear why you need it? And what's with the raid?
If you want to clear the data, then formatting for these purposes is absolutely useless, because it does not affect the data in any way.
In this case, you just need to completely overwrite all volumes with random data.
To do this, you can use special utilities, you can use the TrueCrypt disk encryption mechanism, or it’s trite to fill the disk with movies to the eyeballs, then delete them and score again.

L
Lindon_cano, 2016-07-28
@Lindon_cano

The raid is formatted simply:
sudo mkfs.ext4 -m0.1 /dev/md0
Voila! The raid is formatted.
And if you, as you do in a comment to another answer, need to clean up the data, then man shred or even man dd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question