![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
I tried following this tutorial, but had some troubles and noticed it was from 2008. Plus I want to actually know what's going on a little better.
A brief run-down on the setup:
Hyrax helped me build this thing a long time ago and I've done very little to it ever since, so I've forggoten exactly how all the drives/array is partitioned. From memory though I think we set it up in such a way that we separated /boot, /home the page file and then storage. 1. Is there anyway I can take a look at how these were setup? I think maybe we created the array and the partitioned it? Anyway, I've physically inserted the new drive into the server and powered everything on and if I do: Code:
sudo fdisk -l 2. What prep work do I need to do to the drive before adding it to the array? Do I need to wipe it? Format it a particular way? In the aformentioned tutorial it uses FDISK to do a few things. My next assumption is that I would issue: Code:
mdadm --add /dev/md0 /dev/sda1 Code:
mdadm --grow /dev/md0 --raid-devices=5 Code:
cat /proc/mdstat Is there something I am missing?
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Thanks IAC.
I will issue some of these commands when I get home and post up the results! Should be around 7:30pm. Appreciated the help!
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Ok IAC, I did the commands you mentioned as here's how things look:
Code:
admin@server:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Array-Root
19G 1.3G 17G 8% /
none 431M 212K 431M 1% /dev
none 436M 0 436M 0% /dev/shm
none 436M 500K 436M 1% /var/run
none 436M 0 436M 0% /var/lock
none 436M 0 436M 0% /lib/init/rw
/dev/mapper/Array-Home
5.4T 4.1T 1.3T 78% /home
Code:
admin@server:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda1[4](S) sdd1[2] sde1[3] sdc1[1] sdb1[0]
5860535808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
Code:
admin@server:~$ mount /dev/mapper/Array-Root on / type ext4 (rw,noatime,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /dev/mapper/Array-Home on /home type ext4 (rw,noatime) Code:
admin@server:~$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 /dev/mapper/Array-Root / ext4 noatime,errors=remount-ro 0 1 /dev/mapper/Array-Home /home ext4 noatime 0 2 /dev/mapper/Array-Swap none swap sw 0 0 ![]() From memory though I think we created the array, then partitioned the array and installed the OS. Anyway, as I said earlier I tried following the tutorial I linked above and got as far as putting in the drive and running the FDISK stuff it mentions and by the looks of it the drive is partitioned correctly? The disk in question is /dev/sda: Code:
admin@server:~$ sudo fdisk -l [sudo] password for admin: Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xb2ed4813 Device Boot Start End Blocks Id System /dev/sda1 1 243202 1953512448 fd Linux RAID autodetect Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00088060 Device Boot Start End Blocks Id System /dev/sdb1 1 243201 1953512001 fd Linux RAID autodetect Disk /dev/sde: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000df4dd Device Boot Start End Blocks Id System /dev/sde1 * 1 243201 1953512001 fd Linux RAID autodetect Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000be37c Device Boot Start End Blocks Id System /dev/sdd1 1 243201 1953512001 fd Linux RAID autodetect Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000a4aaf Device Boot Start End Blocks Id System /dev/sdc1 1 243201 1953512001 fd Linux RAID autodetect Disk /dev/md0: 6001.2 GB, 6001188667392 bytes 2 heads, 4 sectors/track, 1465133952 cylinders Units = cylinders of 8 * 512 = 4096 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 65536 bytes / 196608 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | Last edited by -Sk3tChY-; 12th June 2012 at 7:15 PM. |
|
|
|
|
|
#4 |
|
Member
Join Date: May 2005
Location: Adelaide
Posts: 90
|
Hi -Sk3tChY-,
Looks like you have added the drive to the array but haven't ran the "grow" command yet? It's been a while since I have played with mdadm and as you have noticed the tutorial is a little out of date now and I should probably update it. Read though the comments as well, as a few people have posted extra use full information that might help you. Yes (S) means a spare device
__________________
allintech.info |
|
|
|
|
|
#5 |
|
48656C6C6F20576F726C6421
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 7,077
|
Basically:
Other than that, that tutorial link you posted has everything you need.
__________________
If practice makes perfect, and nobody's perfect, why practice? |
|
|
|
|
|
#6 |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
I issued sudo mdadm --grow /dev/md0 --raid-devices=5
Code:
admin@server:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda1[4] sdd1[2] sde1[3] sdc1[1] sdb1[0]
5860535808 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
[>....................] reshape = 0.0% (1209984/1953511936) finish=5346.4min speed=6085K/sec
unused devices: <none>
It looks like it's going to take a damn long time to add the drive to the array! ![]() This actually happened when I first built the array too, from memory it took like 2 days to build!
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
|
|
#7 |
|
48656C6C6F20576F726C6421
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 7,077
|
If the filesystems on that array are unmounted, it will be quicker.
I'm currently replacing two failed 2TB drives on a RAID6 array and it's going to take 13 hours total to re-stripe them both with all the filesystems unmounted (booted a Live CD to do all the work so root could be unmounted).
__________________
If practice makes perfect, and nobody's perfect, why practice? |
|
|
|
|
|
#8 | |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Quote:
![]() Hypothetical here, if a drive failed right now during the expansion process, would I still be covered? I vaguely remember reading somewhere that if a drive does during a time like this you lose the lot. Also, without getting ahead of myself, when this completes how do I go about checking/expanding LVM?
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
|
|
|
#9 | |
|
48656C6C6F20576F726C6421
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 7,077
|
Quote:
Gooooooogle pvresize and lvresize commands.
__________________
If practice makes perfect, and nobody's perfect, why practice? |
|
|
|
|
|
|
#10 |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Thanks big man, will do. I'm sure I'll report back here though with some questions soon after!
![]() An update: Code:
admin@server:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda1[4] sdd1[2] sde1[3] sdc1[1] sdb1[0]
5860535808 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
[====>................] reshape = 21.0% (411832064/1953511936) finish=4854.6min speed=5292K/sec
unused devices: <none>
![]() Does it normally take this long adding a new disk to an existing array:
It just seems rather slow to me, at this rate it would take like 4 full days to add the disk to the array! Could it be the fact my server isn't very powerful? (It's a HP Microserver with 1GB RAM)
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
|
|
#11 |
|
Member
Join Date: Sep 2007
Location: Sydney
Posts: 3,586
|
I built a 3x2TB RAID5 array with mdadm on Fedora. It took ~8 hours to initialise, but then, I'm using the onboard sata controller. See my 'PHYRAXUS' spec in my sig.
__________________
FALADIS - P6T-SE | i7 920 + Zalman CNPS 10X | 8GB XMS3 C8 | Sapphire 5870 1GB | Seagate 7200.12 500GB + 1TB | FT01 | CoolerMaster 1000W | LG BH12LS38 | G15 (v2) | W7 x64 Ultimate | Creative I-Trigue 3400
PHYRAXUS - DP67DE | i3 2100 | 2GB XMS3 C9 | EVGA GT430 1GB | Samsung F4EG HD204UI 2TB x4 | PC-V354B | OCZ Fatal1y 550W | Fedora 15 x64 + 4TB MDRAID5 ASICUS - ASUS N61JQ (W7 x64 Ultimate + Fedora 13 x64) | HYPHAERION - HP Compaq 2510p (Fedora 16 x64) |
|
|
|
|
|
#12 | |
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Quote:
I'm using the onboard controller too, it's a HP micro server.
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
|
|
|
|
|
|
#13 | |
|
Member
Join Date: Sep 2007
Location: Sydney
Posts: 3,586
|
Quote:
I think the HP microservers were designed to have good read/write speeds.
__________________
FALADIS - P6T-SE | i7 920 + Zalman CNPS 10X | 8GB XMS3 C8 | Sapphire 5870 1GB | Seagate 7200.12 500GB + 1TB | FT01 | CoolerMaster 1000W | LG BH12LS38 | G15 (v2) | W7 x64 Ultimate | Creative I-Trigue 3400
PHYRAXUS - DP67DE | i3 2100 | 2GB XMS3 C9 | EVGA GT430 1GB | Samsung F4EG HD204UI 2TB x4 | PC-V354B | OCZ Fatal1y 550W | Fedora 15 x64 + 4TB MDRAID5 ASICUS - ASUS N61JQ (W7 x64 Ultimate + Fedora 13 x64) | HYPHAERION - HP Compaq 2510p (Fedora 16 x64) |
|
|
|
|
|
|
#14 | |
|
Member
Join Date: Jun 2001
Location: Brisbane
Posts: 19,921
|
Quote:
This is perfectly normal.
__________________
Child's Play Charity |
|
|
|
|
|
|
#15 | ||
|
Member
Join Date: Oct 2007
Location: NSW, In a house.
Posts: 3,473
|
Quote:
Quote:
Well an update for those of you who might be interested: Code:
admin@server:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda1[4] sdd1[2] sde1[3] sdc1[1] sdb1[0]
5860535808 blocks super 0.91 level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]
[========>............] reshape = 40.4% (790951628/1953511936) finish=4100.8min speed=4724K/sec
unused devices: <none>
__________________
| Main Rig | i7-2600K @ TBA | CPU-370 | Maximus IV Extreme-Z | 16GB RAM TBA | EVGA GTX580 @ TBA | VID-NX580 | Corsair AX850 | Powdercoated CM Cosmo S | OCZ Vertex 3 Max IOPS 120GB | Black Ice SR1 360+120+120 |
| Second Rig | i5-2500K @ 4.326Ghz | CM 212+ | Sabertooth P67 | 16GB Corsair Vengeance @ 1648Mhz | Asus HD6850 @ 900/4400 | Silverstone ST75F-P | Fractal Design Define R3 | 2 x 2TB Seagate ST2000DL003 | 2 x 500GB Samsung HD501LJ | BenQ G2420HD | |
||
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|