K
K
kovalr2017-04-06 12:28:30
linux
kovalr, 2017-04-06 12:28:30

How much space for files in a RAID 1 array (two disks of 1 Tb each)?

There is a raid an array in which two disks in a mirror on 1 Tb. Raid 1. Made with mdamd on ubuntu server.
I'm trying to transfer files to another 2 Tb disk via SAMBA. When indexing files, the system says that there are 12 million files on the shared folder and it all takes 4.4 Tb. Accordingly sees an error.
As on a mirror raid where 1 Tb places fit 4.4 Tb. and why can't I transfer it all to a 2 TB disk?
4acbe92262194f328edc670da799a91d.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2017-04-06
@saboteur_kiev

1. What file system?
2. When copying files, did you take into account links? Linux is very fond of symbolic ones for files and directories, and even hardlinks for files that cannot be distinguished at all.

D
Dmitry Shitskov, 2017-04-06
@Zarom

df -hwhat does it show?
Did you check the file system for errors?

M
Melkij, 2017-04-06
@melkij

Unmount the filesystem and do a stupid dd if=/dev/md0 of=/dev/ on the big disk partition. And there will be a copy of the entire file system with all soft / hard links, sparse files and everything you need. Then resizee2fs to expand the filesystem to the capacity of the partition.
And if you want to smoothly replace the array with more capacious ones, then you don’t need to copy files at all. Add bigger drives, wait for sync, remove old drives and do resize2fs ru.stackoverflow.com/a/637847/203622

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question