LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2004, 09:56 AM   #1
gmanigault
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Rep: Reputation: 0
Final questions before test


Well I have the software raid level 1 working and up and running. It boots fines. I have two questions before I do the cowboy test.

1. I have a swap partition set on one of the drives but not on the other. Should I and or can I mirror the swap partion? Or should I just create a swap partition of the same size on the second drive?

2. If on drive fails will it boot as long as I have a /boot partition set to active on each of the drives?

3. My last question is should I do the cowboy test and unplug a drive while the system is running to see if the mirror is working or is there another way to test it?

Gary M.

Slowly and pain stakingly becoming Yoda.....
 
Old 12-09-2004, 10:01 AM   #2
initialdrifteg6
Member
 
Registered: Oct 2004
Location: France, Kentucky
Distribution: debian
Posts: 173

Rep: Reputation: 38
hmm... tough decisions and questions... id like to say...

1. your swap partitions would probably be the same size... should be atleast... that way your hdd will have the same partition sizes and will cause less confusion on a full hdd.

2. i would assume so since the raid controller initiates right after bios and will read what the setup is and take actions according.

3. i would say no for the simple fact of chance to damaging something... i'm not gonna be a part of this one...
 
Old 12-09-2004, 02:08 PM   #3
gmanigault
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Results

Well I reconfiged a portion of the second drive.

=====
fdisk -l

Disk /dev/hdd: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 1912 15358108+ fd Linux raid autodetect
/dev/hdd2 1913 11473 76798732+ fd Linux raid autodetect
/dev/hdd3 11474 17847 51199155 fd Linux raid autodetect
/dev/hdd4 17848 19122 10241437+ 82 Linux swap

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ fd Linux raid autodetect
/dev/hda2 1913 11473 76798732+ fd Linux raid autodetect
/dev/hda3 11474 17847 51199155 fd Linux raid autodetect
/dev/hda4 17848 19122 10241437+ 82 Linux swap


My two drives are laid out the same now.
=====

When I shutdown my box and unpluged hdd and restarted it booted fine. When I shutdown again and rebooted with hda uplugged it did not boot to grub and then start. As you can see I have both hda1 hdd1 set bootable. What could be my problem?

Second what do I have to do to make the autosynch of a mirror work when it is outof sync. When you unplug a drive and look at /proc/mdstat it only shows one drive and even when both are plugged in after it doesn't just reconstruct the mirror. I had to use raidhotadd /dev/md0 /dev/hdd3 for it to start and resynch the mirror. Is there something that can monitor this and keep them in synch?






Quote:
Originally posted by initialdrifteg6
hmm... tough decisions and questions... id like to say...

1. your swap partitions would probably be the same size... should be atleast... that way your hdd will have the same partition sizes and will cause less confusion on a full hdd.

2. i would assume so since the raid controller initiates right after bios and will read what the setup is and take actions according.

3. i would say no for the simple fact of chance to damaging something... i'm not gonna be a part of this one...
 
Old 12-10-2004, 08:11 AM   #4
gmanigault
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Still need help on this

Well I reconfiged a portion of the second drive.

=====
fdisk -l

Disk /dev/hdd: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 1912 15358108+ fd Linux raid autodetect
/dev/hdd2 1913 11473 76798732+ fd Linux raid autodetect
/dev/hdd3 11474 17847 51199155 fd Linux raid autodetect
/dev/hdd4 17848 19122 10241437+ 82 Linux swap

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ fd Linux raid autodetect
/dev/hda2 1913 11473 76798732+ fd Linux raid autodetect
/dev/hda3 11474 17847 51199155 fd Linux raid autodetect
/dev/hda4 17848 19122 10241437+ 82 Linux swap


My two drives are laid out the same now.
=====
My last two questions....

1. When I shutdown my box and unpluged hdd and restarted it booted fine. When I shutdown again and rebooted with hda uplugged it did not boot to grub and then start. As you can see I have both hda1 hdd1 set bootable. What could be my problem?

2. What do I have to do to make the autosynch of a mirror work when it is outof sync. When you unplug a drive and look at /proc/mdstat it only shows one drive and even when both are plugged in after it doesn't just reconstruct the mirror. I had to use raidhotadd /dev/md0 /dev/hdd3 for it to start and resynch the mirror. Is there something that can monitor this and keep them in synch?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
One of my final questions Nikon01 Slackware 10 09-03-2004 10:07 AM
Whats the difference between Fedora 2 test releases and final version? MSA Fedora 1 05-20-2004 07:22 PM
Will Up2date update to FC2 Final from Test 3? longblock454 Fedora 1 05-17-2004 09:41 AM
final questions about Mandrake whoistom Linux - Distributions 6 07-31-2003 02:38 PM
Final Questions b4 installing LINUX! Scorcher2005 Linux - Newbie 4 06-09-2002 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration