Re: Help with ES v3 Raid1 (Mirror)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I tried your process again and used 0 0 in fstab before the first reboot
to disable fsck at boot. still no go. I am getting confused. Here is
what I can do before rebooting. 

I did step 1 to step 8. I then use the Disk Administrator to mount the
device. I ran df -H and got /dev/md0 36g 34mb 34g 1% .mnt/md0. I can
write a text file to it and read it. I unmount the device and the text
file and lost-found folder disappear as expected. I then re-mount it and
my text file and lost-fount are back. everything seems to work as
normal. When I use the Disk Administrator tool it uses the fstab to
mount, so I expect it to be alright. I reboot. When I get back into
XWindows, I run df -H, no mounted MD0 device anymore. I then go to the
Disk Administrator tool and try to mount from the fstab and get "Wrong
fs type or bad superblock on /dev/md0"

Please help keep a fellow administrator keep his teeth...!

thanks

Marc  

On Wed, 2006-02-01 at 19:14 -0200, Cleber P. de Souza wrote:
> You could run mdadm --detail --scan > /etc/mdadm.conf to save the
> array setting in the disk.
> There are others options that you can put into this file as to be
> alerted during raid failure.
> See man mdadm.conf.
> 
> On 2/1/06, Marc Leveille <marc.leveille@xxxxxxxxxxxxxx> wrote:
> > This worked, but I had an issue. I'll explain. I ran your process and
> > after step 8 I was able to mount this device and write to it. after
> > re-booting it failed during start-up with the same error. The only thing
> > that I can see is that if you set the 1 2 option in the fstab it tells
> > the system to run fsck at boot. when this runs it seems to distroy
> > something, because when I remove the line in fstab and reboot, I can no
> > longer mount it because of wrong fs type.
> >
> > I will re-run your process but use 0 0 in fstab before restarting.
> >
> > Marc
> >
> > On Wed, 2006-02-01 at 17:20 -0200, Cleber P. de Souza wrote:
> > > Hi Marc.
> > >
> > > I think you forgot somethings.
> > > After you fdisk a disk, you must restart the system so the new changes
> > > have efect.
> > > So I suggest you follow this steps:
> > >
> > > 1) fdisk sdb setting fd to the partition, as you did;
> > > 2) restart the system;
> > > 3) execute sfdisk -d /dev/sdb | sfdisk /dev/sdc (copy partition
> > > structure from sdb to sdc);
> > > 4) restart again;
> > > 5) run the command to make the raid devices (mdadm ...), as you did;
> > > 6) mkfs.ext3 /dev/md0
> > > 7) e2fsck -f /dev/md0
> > > 8) add lin in fstab.
> > >
> > > Ready.
> > >
> > >
> > >
> > > On 2/1/06, Marc Leveille <marc.leveille@xxxxxxxxxxxxxx> wrote:
> > > > I have tried this all morning without success. I also tried making the
> > > > raid device using sdb1 and sdc1 as oppesed to sdb and sdc. Here is what
> > > > I am doing in exact steps because sometimes one little thing can mess
> > > > things up.
> > > >
> > > > 1- Fdisk sdb and create a primary partition with full size of drive and
> > > > set type to FD (Linux Raid). write and exit
> > > > 2- same as step 1 but for sdc.
> > > > 3- run the command to make raid device. "mdadm --create /dev/md0
> > > > --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
> > > > 4- mkfs.ext3 /dev/md0 (completes with noe errors)
> > > > 5- e2fsck -f /dev/md0 (works with no errors)
> > > > 6- add line in fstab
> > > > /dev/md0   /home/apps  ext3    defaults  1 2
> > > >
> > > > reboot and get
> > > >    FSCK.ext3 /dev/mdo the superblock could not be read or does not
> > > > describe a correct EXT2 Filesystem.......bla bla and asks to run E2FSCK
> > > > -B 8193
> > > >
> > > > e2fsck: invalid arguement whilt trying to open /dev/md0
> > > >
> > > > thanks
> > > >
> > > > Marc
> > > >
> > > > On Wed, 2006-02-01 at 13:40 -0200, Cleber P. de Souza wrote:
> > > > > OK.
> > > > > Put your success of failure here later.
> > > > > I had this problem one time making raid from a existing Red Hat system
> > > > > and solve in this way.
> > > > >
> > > > > On 2/1/06, Marc Leveille <marc.leveille@xxxxxxxxxxxxxx> wrote:
> > > > > > Hi, I never ran e2fsck -f /dev/md0 after making fs on /dev/md0.
> > > > > >
> > > > > > I will try this this morning.
> > > > > >
> > > > > > Marc
> > > > > >
> > > > > > On Wed, 2006-02-01 at 10:15 -0200, Cleber P. de Souza wrote:
> > > > > > > Hi Marc.
> > > > > > >
> > > > > > > After run mdadm --create you must also run mkfs.ext3 /dev/md0 and
> > > > > > > e2fsck -f /dev/md0.
> > > > > > > So you will get OK.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 1/26/06, Marc Leveille <marc.leveille@xxxxxxxxxxxxxx> wrote:
> > > > > > > > Hi, I'm trying to setup a Raid1 mirror between 2 hard drives. I have the
> > > > > > > > following.
> > > > > > > >
> > > > > > > > 1- SDA 36gig System disk
> > > > > > > > 2- SDB 36gig blank
> > > > > > > > 3- SDC 36gig blank
> > > > > > > >
> > > > > > > > I'm trying to Mirror SDB to SDC by doing the following.
> > > > > > > >
> > > > > > > > 1- By using FDisk I created SDB1 and SDC1 on each drive.
> > > > > > > > 2- I then makefs ext3 for each partition.
> > > > > > > > 3- Then I used mkadm --create /dev/md0 --level=1
> > > > > > > > --raid-devices=2 /dev/sdb1 /dev/sdc1
> > > > > > > >
> > > > > > > > I ran watch cat /proc/mdstat until the process was completed.
> > > > > > > > 4- when it was complete I tested the mount using mount -t
> > > > > > > > ext3 /dev/md0 /home/apps and it mounted and I was able to open it.
> > > > > > > > 5- I then edited fstab with /dev/md0 /home/apps ext3 defaults 1 2 and
> > > > > > > > rebooted.
> > > > > > > > 6- I now get the following error at boot.
> > > > > > > >
> > > > > > > > FSCK.ext3 /dev/mdo the superblock could not be read or does not describe
> > > > > > > > a correct EXT2 Filesystem.......bla bla and asks to run E2FSCK -B 8193
> > > > > > > >
> > > > > > > > 7- I used Vi and comented out the mount in fstab and re-booted. I tried
> > > > > > > > to manually mount the drive the same way as (Item #4) and it now fails
> > > > > > > > Mount: Wrong FS Type.
> > > > > > > >
> > > > > > > > Any ideas as to what I need to do. Sould I use ext3 ?
> > > > > > > >
> > > > > > > > thanks
> > > > > > > >
> > > > > > > > Marc
> > > > > > > >
> > > > > > > > --
> > > > > > > > redhat-list mailing list
> > > > > > > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > > > > > > > https://www.redhat.com/mailman/listinfo/redhat-list
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Cleber P. de Souza
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > redhat-list mailing list
> > > > > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > > > > > https://www.redhat.com/mailman/listinfo/redhat-list
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Cleber P. de Souza
> > > > >
> > > >
> > > > --
> > > > redhat-list mailing list
> > > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > > > https://www.redhat.com/mailman/listinfo/redhat-list
> > > >
> > >
> > >
> > > --
> > > Cleber P. de Souza
> > >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> 
> 
> --
> Cleber P. de Souza
> 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux