Hi folks,
Having some difficulty setting up RAID 1. This is a fairly long post, so please be patient with me.
I have three nice big 400GB disks - . I have a whole bunch of stuff on one of them - and want to use the other two as a Samba/NFS RAID share to hold 'common' data available to the network.
I have tried using gparted to set up the partitions etc. There seems to be a persistent /dev/md1 block device already created - creation date shows as September 7th 2007, although I wiped the drive and installed Hardy from scratch, so presume that this refers to something that is a default in 8.04. The other drives - three 400GB SATA and one 250GB external USB drive show up fine.
I have looked at my sdb and sdc drives in gparted - and have created a single 400GB partition on each one of them (Reiserfs). The moment that the partitions are created and flagged as Raid, the md1 device changes and shows that it has a partition, md1p1. The p1 bit makes sense of course, being partition 1 (??) on the md. However, if I look under /dev, there's no md1p1 there. And then I get some funny error messages from gparted telling me that the file/device /dev/md1p1 doesn't exist.
In addition, when I run the command
I get the following output:
I have used the UUID to update /etc/fstab to try and mount the device on startup. My /etc/fstab now looks like:
but when I reboot, it fails on fsck and tells me that the device with UUID=6e221738:a2a47658:f4bafbd1:e641a630 does not exist. This might seem to suggest that either md1 doesn't exist, or md1p1 doesn't exist.
So I'm stuck.
What I'm trying to do is:
1. Find out why md1p1 appears in gparted but doesn't seem to be recognised by anything else. Should this device exist? If so, how can I get this device to show up in the system and be recognised?
2. Am I on the right track by adjusting my fstab? If so, is the UUID correct? I noted that it's very different to the others in the fstab...
3. Should I just be deleting md1 and trying from scratch with this? If so, how do I do it? There doesn't seem to be much info about this type of thing in ubuntu/kubuntu, just lots of info on installing the base filesystem on a RAID system...
Any help you could give me would be most appreciated. I'm getting tired going round in circles on this one - and can't seem to find relevant info about this.
Thanks in advance
Bag.
Having some difficulty setting up RAID 1. This is a fairly long post, so please be patient with me.
I have three nice big 400GB disks - . I have a whole bunch of stuff on one of them - and want to use the other two as a Samba/NFS RAID share to hold 'common' data available to the network.
I have tried using gparted to set up the partitions etc. There seems to be a persistent /dev/md1 block device already created - creation date shows as September 7th 2007, although I wiped the drive and installed Hardy from scratch, so presume that this refers to something that is a default in 8.04. The other drives - three 400GB SATA and one 250GB external USB drive show up fine.
I have looked at my sdb and sdc drives in gparted - and have created a single 400GB partition on each one of them (Reiserfs). The moment that the partitions are created and flagged as Raid, the md1 device changes and shows that it has a partition, md1p1. The p1 bit makes sense of course, being partition 1 (??) on the md. However, if I look under /dev, there's no md1p1 there. And then I get some funny error messages from gparted telling me that the file/device /dev/md1p1 doesn't exist.
In addition, when I run the command
Code:
mdadm --detail /dev/md1
Code:
/dev/md1: Version : 00.90.03 Creation Time : Fri Sep 7 19:12:51 2007 Raid Level : raid1 Array Size : 390711296 (372.61 GiB 400.09 GB) Used Dev Size : 390711296 (372.61 GiB 400.09 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Wed Jun 25 22:23:48 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 6e221738:a2a47658:f4bafbd1:e641a630 Events : 0.6 Number Major Minor RaidDevice State 0 8 16 0 active sync /dev/sdb 1 8 32 1 active sync /dev/sdc
Code:
/etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sda3 UUID=dc33ffc6-3193-4d0f-819d-5bdd96eae958 / ext3 nouser,relatime,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1 # /dev/sda1 UUID=99cab34c-089e-43d5-8a73-79e75cf8a153 /boot ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 2 # /dev/sda7 UUID=75560e4e-d0c6-4809-a98b-494149cdd5ab /distros ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 2 # /dev/sda8 UUID=eb356766-dc38-4314-9dff-11e0d46c7850 /home ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 2 # /dev/sda6 UUID=692cd76f-8b58-4024-8e66-a91be3f9c531 /restore ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 2 # /dev/sda5 UUID=88e6ee03-65a2-442b-87ed-71a592051a73 /tmp ext3 nouser,relatime,atime,auto,rw,dev,exec,suid 0 2 # /dev/sda2 UUID=bdfb2c72-3923-4ac3-94b3-9607a7727cc8 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,utf8,atime,noauto,rw,dev,exec,suid 0 0 /dev/scd1 /media/cdrom1 udf,iso9660 user,utf8,atime,noauto,rw,dev,exec,suid 0 0 # RAID block - Raid1 type, two disks of 400GB each # /dev/md1 UUID=6e221738:a2a47658:f4bafbd1:e641a630 /common reiserfs nouser,relatime,atime,auto,rw,dev,exec,suid 0 2
So I'm stuck.
What I'm trying to do is:
1. Find out why md1p1 appears in gparted but doesn't seem to be recognised by anything else. Should this device exist? If so, how can I get this device to show up in the system and be recognised?
2. Am I on the right track by adjusting my fstab? If so, is the UUID correct? I noted that it's very different to the others in the fstab...
3. Should I just be deleting md1 and trying from scratch with this? If so, how do I do it? There doesn't seem to be much info about this type of thing in ubuntu/kubuntu, just lots of info on installing the base filesystem on a RAID system...
Any help you could give me would be most appreciated. I'm getting tired going round in circles on this one - and can't seem to find relevant info about this.
Thanks in advance
Bag.
Comment