Gentoo Archives: gentoo-user

From: Matthias Fechner <idefix@×××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Raid reports wrong size
Date: Thu, 18 Dec 2008 18:00:18
Message-Id: 494A851F.5090002@fechner.net
1 Hi,
2
3 I created today a raid5 with three 1.5TB harddisks.
4 What I did:
5 1. created partitions on every harddisk with type 0xfd, fdisk says:
6 Platte /dev/sdb: 1500.3 GByte, 1500301910016 Byte
7 255 K?pfe, 63 Sektoren/Spuren, 182401 Zylinder
8 Einheiten = Zylinder von 16065 ? 512 = 8225280 Bytes
9 Disk identifier: 0x9e99f286
10
11 Ger?t boot. Anfang Ende Bl?cke Id System
12 /dev/sdb1 1 182401 1465136001 fd Linux raid
13 autodetect
14
15 2. Created the raid with:
16 mdadm --create /dev/md0 --level 5 --raid-devices 3 /dev/sd[bcd]1
17
18 cat /proc/mdstat
19 Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
20 [raid4] [multipath] [faulty]
21 md0 : active raid5 sdd1[2] sdc1[1] sdb1[0]
22 2930271872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
23
24 Here seems everything fine.
25
26 3. Created a filesystem on the raid with:
27 mkfs.xfs /dev/xfs
28
29 4. Mounted the filesystem with:
30 mount /dev/md0 /video_test
31 df -h
32 /dev/md0 747G 5,5M 747G 1% /video_test
33
34 The raid should have a nice of 3TB and not 747GB.
35 Has anyone an idea what is wrong here?
36
37 TIA.
38
39 Best regards,
40 Matthias
41
42 --
43 "Programming today is a race between software engineers striving to
44 build bigger and better idiot-proof programs, and the universe trying to
45 produce bigger and better idiots. So far, the universe is winning." --
46 Rich Cook

Replies

Subject Author
Re: [gentoo-user] Raid reports wrong size Dirk Heinrichs <dirk.heinrichs@××××××.de>