Re: RAID1 does not boot

2012-04-09 Thread Muhammad Yousuf Khan
ok as discussed i updated my machine from lenny to squeeze 6.0.4


my grub version is 1.98.

 root@nas:~# grub-install -v
 grub-install (GRUB) 1.98+20100804-14+squeeze1

is this version 2 ?

now command output as discussed.

 grub-install /dev/sdb
 Installation finished. No error reported.
 grub-install /dev/sda
 Installation finished. No error reported.






On Sun, Apr 8, 2012 at 7:36 PM, Camaleón noela...@gmail.com wrote:
 On Sun, 08 Apr 2012 12:11:40 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 7:13 PM, Camaleón noela...@gmail.com wrote:

 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of the
 device map /boot/grub/device.map. Check if this is correct or not. If
 any of the lines is incorrect, fix it and re-run the script
 `grub-install'.

 (hd0)   /dev/sda
 (hd1)   /dev/sdb

 Only that information was displayed? I'd would have expected more
 (searching for splash image, searching for kernel...), but well, at
 a first glance looks right to me, no errors at least.

 no, it only display the above nothing else.

 Weird :-?

now this is the new display after upgrading the OS to 6.0.4
 grub-install /dev/sdb
 Installation finished. No error reported.
 grub-install /dev/sda
 Installation finished. No error reporte

 Just in case, try to run update-grub and check if that fixes the

 booting issue.


 ok if i update-grub it means i will shift from grub 1 to 2 maybe so is
 it going to effect any thing because i haven't work on grub 2 before. i
 am big time lenny user as i am new and i always look for stable version
 can grab my hairs for any errors and there are experienced people who
 can help with lenny.

 Wait, wait... let's try to clear some points first.

 1/ Are you using GRUB legacy or GRUB 2? I already asked you this but you
 still have not replied to this question (or I don't remember). It is
 important to know what's your GRUB's version as both versions differ a
 lot.

here we go with the grub version (new one)

root@nas:~# grub-install -v
grub-install (GRUB) 1.98+20100804-14+squeeze1


 2/ update-grub is not used to upgrade GRUB legacy to GRUB 2, it's a
 routine used to reconciliate/populate the changes you've made in your
 menu or configuration files (read man update-grub if you need detailed
 info on what it does).

 3/ Are you running Lenny or Squeeze? Lenny is not supported anymore (no
 security patches) so installing lenny -unless you have a specific
 requirement for doing so- is a bad move and a waste of time... you should
 reconsider getting squeeze instead.

now update to Squeeze 6.0.4


 4/ You will have to confront GRUB 2 sooner or later :-)

 If you're using GRUB2 I can't understand why the those commands did not
 complain given that partition 0 shouldn't exist :-?

still no error as i give the output above.


 no i think lenny come with grub 1 by default and i am using the default
 one. what is that complain. can you please explain. i ll update to grub
 2 and show you the command output. but are you sure its not going to
 hurt the running machine because i dont wana conduct the whole
 installation again :( its a pain.

 So you're running Lenny... then sir, I'm sorry to say this but you really
 should reconsider reinstalling your full system with squeeze (current
 Debian stable) and now that you still have not started to install
 packages I'd say is the best time for doing it.

now it is Squeeze 6.0.4


 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jls7ps$f2u$6...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMÒq5toas0jdohyjovkldrr5bydobgy+g-h7mur9y...@mail.gmail.com



Re: RAID1 does not boot

2012-04-09 Thread Camaleón
On Mon, 09 Apr 2012 14:44:31 +0500, Muhammad Yousuf Khan wrote:

 On Sun, Apr 8, 2012 at 7:36 PM, Camaleón noela...@gmail.com wrote:
 On Sun, 08 Apr 2012 12:11:40 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 7:13 PM, Camaleón noela...@gmail.com wrote:

 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of
 the device map /boot/grub/device.map. Check if this is correct or
 not. If any of the lines is incorrect, fix it and re-run the script
 `grub-install'.

 (hd0)   /dev/sda
 (hd1)   /dev/sdb

 Only that information was displayed? I'd would have expected more
 (searching for splash image, searching for kernel...), but well,
 at a first glance looks right to me, no errors at least.

 no, it only display the above nothing else.

 Weird :-?

 now this is the new display after upgrading the OS to 6.0.4
  grub-install /dev/sdb
  Installation finished. No error reported. 
  grub-install /dev/sda
  Installation finished. No error reporte

Good. And what happens now when you try to boot with only one disk 
connected? Or have you tried something to check this?

In brief, what I'm trying to say is... what's the problem by now? :-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlup9o$ss9$8...@dough.gmane.org



Re: RAID1 does not boot

2012-04-09 Thread Muhammad Yousuf Khan
On Mon, Apr 9, 2012 at 6:47 PM, Camaleón noela...@gmail.com wrote:
 On Mon, 09 Apr 2012 14:44:31 +0500, Muhammad Yousuf Khan wrote:

 On Sun, Apr 8, 2012 at 7:36 PM, Camaleón noela...@gmail.com wrote:
 On Sun, 08 Apr 2012 12:11:40 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 7:13 PM, Camaleón noela...@gmail.com wrote:

 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of
 the device map /boot/grub/device.map. Check if this is correct or
 not. If any of the lines is incorrect, fix it and re-run the script
 `grub-install'.

 (hd0)   /dev/sda
 (hd1)   /dev/sdb

 Only that information was displayed? I'd would have expected more
 (searching for splash image, searching for kernel...), but well,
 at a first glance looks right to me, no errors at least.

 no, it only display the above nothing else.

 Weird :-?

 now this is the new display after upgrading the OS to 6.0.4
          grub-install /dev/sdb
          Installation finished. No error reported.
          grub-install /dev/sda
          Installation finished. No error reporte

 Good. And what happens now when you try to boot with only one disk
 connected? Or have you tried something to check this?

 In brief, what I'm trying to say is... what's the problem by now? :-)

nothing every thing went well. i just installed i however i didnt runt
the grub command and things were working accordingly. i can not run
command grub as there is no command like this. so i didnt run any
thing in the grub console but i just runt the grub-install command
instead to install the stuff now thing are fine. now i am stuck in
samba and Microsoft activedirectory 2003 integration issue.
ahhh :( paaain.

Thanks.



 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlup9o$ss9$8...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnNj4XO+MxG7s8TDj5t1OO2qpO_ajS2NUkAt=fm86o...@mail.gmail.com



Re: RAID1 does not boot

2012-04-09 Thread Camaleón
El 2012-04-09 a las 00:26 +0500, Muhammad Yousuf Khan escribió:

(resending to the list)

 On Sun, Apr 8, 2012 at 7:36 PM, Camaleón noela...@gmail.com wrote:

(...)

  1/ Are you using GRUB legacy or GRUB 2? I already asked you this but you
  still have not replied to this question (or I don't
 remember). It is
 
 well i haven't check the version of it as i am on weekend off so ill
 check back about the version of grub and come to you with the details.
  but i am using lenny with default grub  so i think lenny has the GRUB
 legacy not Grub 2. however ill check the version and will let you know

I don't recall the default GRUB for Lenny, I installed GRUB Legacy in 
my Lennys but I don't remember if GRUB Legacy was still the default 
option there... You have to check it.

  important to know what's your GRUB's version as both versions differ a
  lot.
 
  2/ update-grub is not used to upgrade GRUB legacy to
 GRUB 2, it's a
  routine used to reconciliate/populate the changes you've made in your
  menu or configuration files (read man update-grub if you need detailed
  info on what it does).
 
 ok ill check out the detail of update-grub

Despite its name, it basically updates the menu entries based on the 
information it finds.

  3/ Are you running Lenny or Squeeze? Lenny is not supported anymore (no
  security patches) so installing lenny -unless you have a specific
  requirement for doing so- is a bad move and a waste of time... you should
  reconsider getting squeeze instead.
 
 
 ok bro very informative i already knew the consequences of using old
 version but for finding good solutions online i thought that lenny
 would be a better option but as i have already got a good and better
 understanding with linux Black screen :P command console now i am good
 to go with Squeeze as well.
 
 ok ill install Squeeze as instructed sir :). on Monday.

Good. And never ever choose an OS based on the number of articles or 
the information it is referenced in the web. That's just a crazy 
approach :-)

  4/ You will have to confront GRUB 2 sooner or later :-)
 
 ok as i dont have any senior with me to support and anything happens
 bad or good i will be responsible because what i have learned so far
 about linux is from you guys. so your higher support would be needed.
 :) because i never used Grub 2 i dont know how tough it is going to be
 if i use GRUB 2 but i know linux is a very stable OS and will not
 create problems for me . so i am planning to install grub 2 and
 Squeeze. wish me good luck :)

GRUB 2 is now in a good shape and as many people is using nowadays, you 
are covered in this regard :-). I also feared the transition from GRUB 
legacy to GRUB 2 but I barely have to play with the bootloader and I 
have a plain disk configuration layout so I still haven't experiences any 
problem with GRUB 2.

  So you're running Lenny... then sir, I'm sorry to say this but you really
  should reconsider reinstalling your full system with squeeze (current
  Debian stable) and now that you still have not started to install
  packages I'd say is the best time for doing it.
 
 
 ok bro as per your suggession you give me the confidence for moving
 one step ahead. i would be needing you help in this regard.

Ask whatever you want. I skipped Squeeze (still with Lenny here) but 
I'm planning to install Wheezy when is released.
 
 Thanks for the support ill come back to you after the installation of
 Sqeeze and grub 2 . With RAID ONE.

Yup. Remember that you still have to install GRUB2 in both disks to be 
able to boot from either of them.
 
 if you have Gmail Google talk or any messenger. server that would be
 great and helpful to talk i promise i will not bother i have good
 experience of network handling . what i need is just a push. if stuck.
 it would be very kind if you let me

I prefer to stick to the mailing list because everybody else will 
benefit for the questions you ask the the replies you get. Anyway, I'm 
far to be what it can be call as an Internet social person, I don't 
have/use blogs, IM, facebook, twitter or something like that :-)

Greetings,

-- 
Camaleón 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120409141326.gb7...@stt008.linux.site



Re: RAID1 does not boot

2012-04-09 Thread Camaleón
On Mon, 09 Apr 2012 19:10:46 +0500, Muhammad Yousuf Khan wrote:

 On Mon, Apr 9, 2012 at 6:47 PM, Camaleón noela...@gmail.com wrote:

(...)

 now this is the new display after upgrading the OS to 6.0.4
          grub-install /dev/sdb
          Installation finished. No error reported. grub-install
          /dev/sda
          Installation finished. No error reporte

 Good. And what happens now when you try to boot with only one disk
 connected? Or have you tried something to check this?

 In brief, what I'm trying to say is... what's the problem by now? :-)
 
 nothing every thing went well. i just installed i however i didnt runt
 the grub command and things were working accordingly. i can not run
 command grub as there is no command like this. so i didnt run any
 thing in the grub console but i just runt the grub-install command
 instead to install the stuff now thing are fine. 

Ah, perfect then! ;-)

 now i am stuck in samba and Microsoft activedirectory 2003 integration
 issue. ahhh :(
 paaain.

Setting up samba is a lot of pain, dude... take a good cup of cocoa and 
prepare for a looong, long week :-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlus03$ss9$1...@dough.gmane.org



Re: RAID1 does not boot

2012-04-08 Thread Muhammad Yousuf Khan
On Fri, Apr 6, 2012 at 7:13 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 06 Apr 2012 18:26:44 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 4:48 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 06 Apr 2012 13:31:15 +0500, Muhammad Yousuf Khan wrote:

 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help

 What was the ouput for the above command? Maybe it returned an error
 but we can't know.

 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of the
 device map /boot/grub/device.map. Check if this is correct or not. If
 any of the lines is incorrect, fix it and re-run the script
 `grub-install'.

 (hd0)   /dev/sda
 (hd1)   /dev/sdb

 Only that information was displayed? I'd would have expected more
 (searching for splash image, searching for kernel...), but well, at a
 first glance looks right to me, no errors at least.

no, it only display the above nothing else.


 Just in case, try to run update-grub and check if that fixes the

 booting issue.


ok if i update-grub it means i will shift from grub 1 to 2 maybe so is
it going to effect any thing because i haven't work on grub 2 before.
i am big time lenny user as i am new and i always look for stable
version can grab my hairs for any errors and there are experienced
people who can help with lenny.

 grub
 grub root (hd0,0)
 grub setup (hd0)
 grub root (hd1,0)
 grub setup (hd1)
 grub quit

 I warned you about not copy/paste (grrr...) :-)

 of-course i didn't copy paste :)

 Well done, then. Is that I'm very thorough when playing with the
 bootloader :-)

 The above will only work if these two apply:

 - You have GRUB legacy (GRUB2 partitions now start at 1 instead 0)
 - Your /boot partition is located in the first partition of the
 first/ second disk

 ok Thanks, ill read on that.

 If you're using GRUB2 I can't understand why the those commands did not
 complain given that partition 0 shouldn't exist :-?


no i think lenny come with grub 1 by default and i am using the
default one. what is that complain. can you please explain. i ll
update to grub 2 and show you the command output. but are you sure its
not going to hurt the running machine because i dont wana conduct the
whole installation again :( its a pain.


 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlmtms$j6g$8...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkcQi1c266uwiHRkSWAw0brT18v8D0U=q1av5ku2js...@mail.gmail.com



Re: RAID1 does not boot

2012-04-08 Thread Camaleón
On Sun, 08 Apr 2012 12:11:40 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 7:13 PM, Camaleón noela...@gmail.com wrote:

 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of the
 device map /boot/grub/device.map. Check if this is correct or not. If
 any of the lines is incorrect, fix it and re-run the script
 `grub-install'.

 (hd0)   /dev/sda
 (hd1)   /dev/sdb

 Only that information was displayed? I'd would have expected more
 (searching for splash image, searching for kernel...), but well, at
 a first glance looks right to me, no errors at least.
 
 no, it only display the above nothing else.

Weird :-?
 
 Just in case, try to run update-grub and check if that fixes the
 
 booting issue.


 ok if i update-grub it means i will shift from grub 1 to 2 maybe so is
 it going to effect any thing because i haven't work on grub 2 before. i
 am big time lenny user as i am new and i always look for stable version
 can grab my hairs for any errors and there are experienced people who
 can help with lenny.

Wait, wait... let's try to clear some points first.

1/ Are you using GRUB legacy or GRUB 2? I already asked you this but you 
still have not replied to this question (or I don't remember). It is 
important to know what's your GRUB's version as both versions differ a 
lot.

2/ update-grub is not used to upgrade GRUB legacy to GRUB 2, it's a 
routine used to reconciliate/populate the changes you've made in your 
menu or configuration files (read man update-grub if you need detailed 
info on what it does).

3/ Are you running Lenny or Squeeze? Lenny is not supported anymore (no 
security patches) so installing lenny -unless you have a specific 
requirement for doing so- is a bad move and a waste of time... you should 
reconsider getting squeeze instead.

4/ You will have to confront GRUB 2 sooner or later :-)

 If you're using GRUB2 I can't understand why the those commands did not
 complain given that partition 0 shouldn't exist :-?


 no i think lenny come with grub 1 by default and i am using the default
 one. what is that complain. can you please explain. i ll update to grub
 2 and show you the command output. but are you sure its not going to
 hurt the running machine because i dont wana conduct the whole
 installation again :( its a pain.

So you're running Lenny... then sir, I'm sorry to say this but you really 
should reconsider reinstalling your full system with squeeze (current 
Debian stable) and now that you still have not started to install 
packages I'd say is the best time for doing it.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jls7ps$f2u$6...@dough.gmane.org



Re: RAID1 does not boot

2012-04-06 Thread Muhammad Yousuf Khan
Thank you every one for helping me. actually i followed and read every
thing but just grub install /dev/sdb
 alone didn't help i also run some commands in grub as well

grub install /dev/sda (not necessary )
grub install /dev/sdb
grub
grub root (hd0,0)
grub setup (hd0)
grub root (hd1,0)
grub setup (hd1)
grub quit

Thank Camaleón. your links literally helped me a lot. :)


Thanks

MYK


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkso4_vnd1tddjtt2tvosty8ozi0cnbw3nrrot500s...@mail.gmail.com



Re: RAID1 does not boot

2012-04-06 Thread Jon Dowland
On Fri, Apr 06, 2012 at 01:31:15PM +0500, Muhammad Yousuf Khan wrote:
 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help i also run some commands in grub as well

You're missing the dash between 'grub' and 'install':

 grub-install /dev/sdb

not

 grub install /dev/sdb


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120406091709.GA25249@debian



Re: RAID1 does not boot

2012-04-06 Thread Muhammad Yousuf Khan
sorry i just rewrote the line by mistake it is

grub-install /dev/sda
grub-install /dev/sdb

Thanks for correcting


On Fri, Apr 6, 2012 at 2:17 PM, Jon Dowland j...@debian.org wrote:
 On Fri, Apr 06, 2012 at 01:31:15PM +0500, Muhammad Yousuf Khan wrote:
 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help i also run some commands in grub as well

 You're missing the dash between 'grub' and 'install':

 grub-install /dev/sdb

 not

 grub install /dev/sdb


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120406091709.GA25249@debian



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=aK5e6W3570ThpvWEVSAW8nCP-KXNb=fqv3aybsq9...@mail.gmail.com



Re: RAID1 does not boot

2012-04-06 Thread Camaleón
On Fri, 06 Apr 2012 13:31:15 +0500, Muhammad Yousuf Khan wrote:

 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help 

What was the ouput for the above command? Maybe it returned an error but 
we can't know.

 i also run some commands in grub as well

 grub install /dev/sda (not necessary ) 
 grub install /dev/sdb

Careful. Remember that you have swapped the disks in the BIOS, so ensure 
that your /dev/sda is still your first disk and /dev/sdb is the 
second.

 grub
 grub root (hd0,0)
 grub setup (hd0)
 grub root (hd1,0)
 grub setup (hd1)
 grub quit

I warned you about not copy/paste (grrr...) :-)

The above will only work if these two apply:

- You have GRUB legacy (GRUB2 partitions now start at 1 instead 0)
- Your /boot partition is located in the first partition of the first/
second disk

Are both points matching your installation? 

 Thank Camaleón. your links literally helped me a lot. :)

You're welcome, but let's focus on how we can solve the problem now ;-)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlml5v$j6g$6...@dough.gmane.org



Re: RAID1 does not boot

2012-04-06 Thread Muhammad Yousuf Khan
On Fri, Apr 6, 2012 at 4:48 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 06 Apr 2012 13:31:15 +0500, Muhammad Yousuf Khan wrote:

 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help

 What was the ouput for the above command? Maybe it returned an error but
 we can't know.

Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/sda
(hd1)   /dev/sdb


 i also run some commands in grub as well

 grub install /dev/sda (not necessary )
 grub install /dev/sdb

 Careful. Remember that you have swapped the disks in the BIOS, so ensure
 that your /dev/sda is still your first disk and /dev/sdb is the
 second.

 grub
 grub root (hd0,0)
 grub setup (hd0)
 grub root (hd1,0)
 grub setup (hd1)
 grub quit

 I warned you about not copy/paste (grrr...) :-)
of-course i didn't copy paste :)

 The above will only work if these two apply:

 - You have GRUB legacy (GRUB2 partitions now start at 1 instead 0)
 - Your /boot partition is located in the first partition of the first/
 second disk
ok Thanks, ill read on that.

 Are both points matching your installation?
yes they did but at the stage when i was playing with the drives by
plugging them on and off the RAID started some problem then i remove
the drive from RAID (the faulty one) mdadm command and re-added  the
partition to md0 and md1 and that worked for me.

 Thank Camaleón. your links literally helped me a lot. :)

 You're welcome, but let's focus on how we can solve the problem now ;-)
Yes sure, as i am very new to linux word however i am a quick learner
ill work on the solving part as well hopefully :)

Thanks mate.



 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlml5v$j6g$6...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmm9o5hsbw_m9hd9ynqb3wz9b7+nmrpp4-xwvd6g8hv...@mail.gmail.com



Re: RAID1 does not boot

2012-04-06 Thread Camaleón
On Fri, 06 Apr 2012 18:26:44 +0500, Muhammad Yousuf Khan wrote:

 On Fri, Apr 6, 2012 at 4:48 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 06 Apr 2012 13:31:15 +0500, Muhammad Yousuf Khan wrote:

 Thank you every one for helping me. actually i followed and read every
 thing but just grub install /dev/sdb
  alone didn't help

 What was the ouput for the above command? Maybe it returned an error
 but we can't know.
 
 Searching for GRUB installation directory ... found: /boot/grub
 Installation finished. No error reported. This is the contents of the
 device map /boot/grub/device.map. Check if this is correct or not. If
 any of the lines is incorrect, fix it and re-run the script
 `grub-install'.
 
 (hd0)   /dev/sda
 (hd1)   /dev/sdb

Only that information was displayed? I'd would have expected more 
(searching for splash image, searching for kernel...), but well, at a 
first glance looks right to me, no errors at least.

Just in case, try to run update-grub and check if that fixes the 
booting issue.

 grub
 grub root (hd0,0)
 grub setup (hd0)
 grub root (hd1,0)
 grub setup (hd1)
 grub quit

 I warned you about not copy/paste (grrr...) :-)

 of-course i didn't copy paste :)

Well done, then. Is that I'm very thorough when playing with the 
bootloader :-)

 The above will only work if these two apply:

 - You have GRUB legacy (GRUB2 partitions now start at 1 instead 0)
 - Your /boot partition is located in the first partition of the
 first/ second disk

 ok Thanks, ill read on that.

If you're using GRUB2 I can't understand why the those commands did not 
complain given that partition 0 shouldn't exist :-?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlmtms$j6g$8...@dough.gmane.org



Re: RAID1 does not boot

2012-04-05 Thread Muhammad Yousuf Khan
Thanks, i found out the problem but still i am confused actually
i have disk 1 and disk 2  with same specs like they both are 320 GB
and same made. here is my partition flow
(because i had tried installation so many times so i change the
partition structure)

1. /Boot 1GB (Boot on and on RAID /dev/md0)
2. SWAP 4 GB (RAID /dev/md1)
3, / (remaining space) (RAID /dev/md2)

now at the end after installation when system rebooted for the first
time i receive error loading operating system actually in BIOS boot
option i mistakenly selected SATA2 as boot instead of SATA 1. when i
shift things back i manage to reach grub menu.

now the part where i am confuse is that i believed that the computer
should have booted from SATA2 as well  because boot partition is also
installed over it too. as i have created /boot partiton on RAID which
was md0. now for instance if my SATA 1 goes down then i would be
handicap as it will not going to boot from SATA2.
 please suggest me what should i do in this regard. because what i
want that, if some thing happen to any of the drive i just have to
unplug the bad one and replace it with the new one ofcourse i know i
have to make same RAID partition and stuff but what i want is if SATA1
Fails i want SATA 2 to boot with out any complex efforts.

Thanks






On Thu, Apr 5, 2012 at 4:37 PM, Camaleón noela...@gmail.com wrote:
 On Thu, 05 Apr 2012 14:43:40 +0500, Muhammad Yousuf Khan wrote:

 i am a newbie, i tried RAID 1 installation on VM which was working fine.
 now i tried to install the same scenario on physical machine. i have two
 300 GB Hard drives and i want to make a RAID1 every things work
 perfectly. i created the RAID partition and then RAID device. i created
 3 partition on the RAID drive.

 1./boot (1GB)
 2.SWAP (not on RAID)
 3./Root (300 GB)

 now everything when fine to the end of the installation but the problem
 is when i restart the machine after installation. it doest boot however
 in VM machine it didn't happen.

 A virtual machine does not always helps to diagnose hardware related
 issues and the VM can be using a different set of kernel modules for the
 disks.

 Anyway, what error are you getting when booting? Can you reach the GRUB's
 menu?

 but one thing i notice during
 installation it is giving me the message the Kernel was unable to
 re-read the partition table on /dev/md0 (invalid argument) this means
 Linux won't know anything about the modifications you made until you
 reboot you should reboot you computer before doing anyting with
 /dev/md0.

  i tried Squeez 6.0.4 and
 Lenny  several times and at the end  no-success.

 There are similar installation errors reported here:

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507653

 But that shouldn't have additional drawbacks other than the warning.

 My guess is that the problem here is booting from the raid volume.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlk05q$mrm$4...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=sxo2ltrftozypjn6yaammaarkasa2zdxu_ctwt_v...@mail.gmail.com



Re: RAID1 does not boot

2012-04-05 Thread Camaleón
On Thu, 05 Apr 2012 17:09:53 +0500, Muhammad Yousuf Khan wrote:

(please, keep a bottom posting style, it reads better)

 On Thu, Apr 5, 2012 at 4:37 PM, Camaleón noela...@gmail.com wrote:

(...)

 My guess is that the problem here is booting from the raid volume.

 Thanks, i found out the problem but still i am confused actually i have
 disk 1 and disk 2  with same specs like they both are 320 GB and same
 made. here is my partition flow (because i had tried installation so
 many times so i change the partition structure)
 
 1. /Boot 1GB (Boot on and on RAID /dev/md0) 
 2. SWAP 4 GB (RAID /dev/md1)
 3, / (remaining space) (RAID /dev/md2)

So basically you have now included /boot and /swap into the RAID, right?
 
 now at the end after installation when system rebooted for the first
 time i receive error loading operating system actually in BIOS boot
 option i mistakenly selected SATA2 as boot instead of SATA 1. when i
 shift things back i manage to reach grub menu.

Okay, so now you get to GRUB's menu and then, what happens? Can you 
finally boot your installed system?
 
 now the part where i am confuse is that i believed that the computer
 should have booted from SATA2 as well  because boot partition is also
 installed over it too. 

(...)

Mmm, IIRC software RAID (mdadm) needs from user intervention (manual 
tweaking) when one of the disks goes offline (or you alter the disk order 
at the BIOS ;-) ), at least for booting. I mean, you had to install GRUB 
in both disks or something like that, I dont't remember the exact steps 
but they should be documented...

Greetings, 

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlk6go$mrm$8...@dough.gmane.org



Re: RAID1 does not boot

2012-04-05 Thread Muhammad Yousuf Khan
On Thu, Apr 5, 2012 at 6:25 PM, Camaleón noela...@gmail.com wrote:
 On Thu, 05 Apr 2012 17:09:53 +0500, Muhammad Yousuf Khan wrote:

 (please, keep a bottom posting style, it reads better)

 On Thu, Apr 5, 2012 at 4:37 PM, Camaleón noela...@gmail.com wrote:

 (...)

 My guess is that the problem here is booting from the raid volume.

 Thanks, i found out the problem but still i am confused actually i have
 disk 1 and disk 2  with same specs like they both are 320 GB and same
 made. here is my partition flow (because i had tried installation so
 many times so i change the partition structure)

 1. /Boot 1GB (Boot on and on RAID /dev/md0)
 2. SWAP 4 GB (RAID /dev/md1)
 3, / (remaining space) (RAID /dev/md2)

 So basically you have now included /boot and /swap into the RAID, right?
YES both are raid volumes

 now at the end after installation when system rebooted for the first
 time i receive error loading operating system actually in BIOS boot
 option i mistakenly selected SATA2 as boot instead of SATA 1. when i
 shift things back i manage to reach grub menu.

 Okay, so now you get to GRUB's menu and then, what happens? Can you
 finally boot your installed system?


Yes. i can work normally as i boot from the grub menu.  there is no
problem at all. every thing is quite normal even here is the result of
cat /proc/mdadm

Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[1]
  307588416 blocks [2/2] [UU]

md1 : active (auto-read-only) raid1 sda2[0] sdb2[1]
  3903680 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
  1076224 blocks [2/2] [UU]


 now the part where i am confuse is that i believed that the computer
 should have booted from SATA2 as well  because boot partition is also
 installed over it too.

 (...)

 Mmm, IIRC software RAID (mdadm) needs from user intervention (manual
 tweaking) when one of the disks goes offline (or you alter the disk order
 at the BIOS ;-) ), at least for booting. I mean, you had to install GRUB
 in both disks or something like that, I dont't remember the exact steps
 but they should be documented...

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlk6go$mrm$8...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkobhv3sxvka0j_h3yx7fa62astkztv5g70micyyrm...@mail.gmail.com



Re: RAID1 does not boot

2012-04-05 Thread Muhammad Yousuf Khan
sorry to bother you again. can you please give or guide me from where
i can find instruction for installation grub on both drives.

Thank you?

On Thu, Apr 5, 2012 at 7:18 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Thu, Apr 5, 2012 at 6:25 PM, Camaleón noela...@gmail.com wrote:
 On Thu, 05 Apr 2012 17:09:53 +0500, Muhammad Yousuf Khan wrote:

 (please, keep a bottom posting style, it reads better)

 On Thu, Apr 5, 2012 at 4:37 PM, Camaleón noela...@gmail.com wrote:

 (...)

 My guess is that the problem here is booting from the raid volume.

 Thanks, i found out the problem but still i am confused actually i have
 disk 1 and disk 2  with same specs like they both are 320 GB and same
 made. here is my partition flow (because i had tried installation so
 many times so i change the partition structure)

 1. /Boot 1GB (Boot on and on RAID /dev/md0)
 2. SWAP 4 GB (RAID /dev/md1)
 3, / (remaining space) (RAID /dev/md2)

 So basically you have now included /boot and /swap into the RAID, right?
 YES both are raid volumes

 now at the end after installation when system rebooted for the first
 time i receive error loading operating system actually in BIOS boot
 option i mistakenly selected SATA2 as boot instead of SATA 1. when i
 shift things back i manage to reach grub menu.

 Okay, so now you get to GRUB's menu and then, what happens? Can you
 finally boot your installed system?


 Yes. i can work normally as i boot from the grub menu.  there is no
 problem at all. every thing is quite normal even here is the result of
 cat /proc/mdadm

 Personalities : [raid1]
 md2 : active raid1 sda3[0] sdb3[1]
      307588416 blocks [2/2] [UU]

 md1 : active (auto-read-only) raid1 sda2[0] sdb2[1]
      3903680 blocks [2/2] [UU]

 md0 : active raid1 sda1[0] sdb1[1]
      1076224 blocks [2/2] [UU]


 now the part where i am confuse is that i believed that the computer
 should have booted from SATA2 as well  because boot partition is also
 installed over it too.

 (...)

 Mmm, IIRC software RAID (mdadm) needs from user intervention (manual
 tweaking) when one of the disks goes offline (or you alter the disk order
 at the BIOS ;-) ), at least for booting. I mean, you had to install GRUB
 in both disks or something like that, I dont't remember the exact steps
 but they should be documented...

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlk6go$mrm$8...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkSmrTwODyw34t1TRWVB56FR81HRibN=ltji3c5afh...@mail.gmail.com



Re: RAID1 does not boot

2012-04-05 Thread Tom H
On Thu, Apr 5, 2012 at 10:19 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:

 sorry to bother you again. can you please give or guide me from where
 i can find instruction for installation grub on both drives.

grub-install /dev/sda
grub-install /dev/sdb


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SwYq5bpROtZ+CF=tin4j2vjdhzijfz_4skn0pubd7m...@mail.gmail.com



Re: RAID1 does not boot

2012-04-05 Thread Camaleón
On Thu, 05 Apr 2012 19:19:42 +0500, Muhammad Yousuf Khan wrote:

 sorry to bother you again. can you please give or guide me from where i
 can find instruction for installation grub on both drives.
 
 Thank you?

Sure, let me search for some docs...

(scroll down to Enabling boot from both disks)
http://www.texsoft.it/index.php?c=hardwarem=hw.storage.grubraid1l=it

(scroll down to Step4. Install GRUB2 on both drives:)
http://www.debian-tutorials.com/general/setting-up-raid1-on-an-existing-debian-squeeze-installation

*Do not run the commands by just copy/paste*, you have to understand what 
you are doing and adjust the commands to your installation, taking a special 
care with:

- Bootloader version (whether you're using GRUB legacy, GRUB2, LILO...)
- Hard disk partition where the bootloader has to be installed

Any error you make here can lead to an unbootable system (again) ;-P

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jlkaf1$mrm$1...@dough.gmane.org



Re: RAID1 does not boot

2012-04-05 Thread Muhammad Yousuf Khan
Thanks Camaleon and TOM H. let me follow the instructions ill come
back with the results tomorrow  as right now, office is closed

On Thu, Apr 5, 2012 at 7:33 PM, Camaleón noela...@gmail.com wrote:
 On Thu, 05 Apr 2012 19:19:42 +0500, Muhammad Yousuf Khan wrote:

 sorry to bother you again. can you please give or guide me from where i
 can find instruction for installation grub on both drives.

 Thank you?

 Sure, let me search for some docs...

 (scroll down to Enabling boot from both disks)
 http://www.texsoft.it/index.php?c=hardwarem=hw.storage.grubraid1l=it

 (scroll down to Step4. Install GRUB2 on both drives:)
 http://www.debian-tutorials.com/general/setting-up-raid1-on-an-existing-debian-squeeze-installation

 *Do not run the commands by just copy/paste*, you have to understand what
 you are doing and adjust the commands to your installation, taking a special
 care with:

 - Bootloader version (whether you're using GRUB legacy, GRUB2, LILO...)
 - Hard disk partition where the bootloader has to be installed

 Any error you make here can lead to an unbootable system (again) ;-P

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jlkaf1$mrm$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmngn9tx8ajjnkdyd5gsxutmeelsoqtn1e7if3svkdp...@mail.gmail.com



Re: RAID1 does not boot

2012-04-05 Thread Bob Proulx
Muhammad Yousuf Khan wrote:
 now at the end after installation when system rebooted for the first
 time i receive error loading operating system actually in BIOS boot
 option i mistakenly selected SATA2 as boot instead of SATA 1. when i
 shift things back i manage to reach grub menu.

The debian-installer doesn't install grub onto both raid disks.
Arguably it should.  But it doesn't.  Perhaps in a future version this
will be fixed.  For Squeeze it doesn't.  Hopefully in Wheezy.

The debian-installer in Squeeze only installs grub on the first disk.
Usually that will be /dev/sda.  Meaning that /dev/sda will boot okay.
Meaning that the second disk /dev/sdb will *not* boot.

This is a known deficiency.  To correct this issue follow the
instructions posted by Tom in his message.  You will need to install
grub manually to the second drive as Tom example shows.

  grub-install /dev/sdb

After that it should boot from either drive okay.

Bob


signature.asc
Description: Digital signature