Debian - Software Raid 1 and Grub issue
Hi there. Long time reader first time poster...
I have done basic installs of Fedora, Ubuntu, Linux Mint, and CentOS... But I am attempting something new. I am attempting to install Debian using the Software RAID (Raid 1). I have 2, 3 TB drives. I get through the initial setup of the , Hostname, Fully quilified domain name, root password, new user/password setup, and I get to the partioning and software raid configuration. I select manual set and create the paritions and software raid and assign EXT 4 and Swap. But when it gets to "Install the GRUB boot loader" part I get the following: Quote:
Disk 1 1 GB - Physical volume for RAID 8.5 GB - Physical volume for RAID 50 GB - Physical volume for RAID 2.9 TB - Physical volume for RAID Disk 2 1 GB - Physical volume for RAID 8.5 GB - Physical volume for RAID 50 GB - Physical volume for RAID 2.9 TB - Physical volume for RAID I then create the following software Raid 1 1 GB - ext4 -/boot 8.5 GB - swap 50 GB - ext4 - / 2.9 TB ext4 - /home With this setup I am getting the above error when GRUB is trying to install. I read some where that the MBR doesn't like anything about 2 TB so I even made the /home just 2 TB just to see what may happen but I still get the same result. Thanks for any help that you may be able to provide. |
For GRUB2 to work with RAID1, you must leave a 1MiB space between the MBR and the start of the first partition. This space is used for the core.img file. So, if your sector size is 512B, your first partition must start on sector 2048. This goes for both sda and sdb.
If the installation allows it, you must select both sda and sdb for the installation of GRUB2. It does not automatically install itself on both drives. If the installation does not allow it, then install GRUB2 on sda and after the installation of Squeeze is completed and you reboot, install GRUB2 on sdb: Code:
grub-install /dev/sdb |
Question...
When doing the inital partitioning at the begining it is automaticly giving 1mb free the very front of the "1 GB - Physical volume for RAID" that I make. So am I neededing to create partitions like the following: 1mb - set to ??? 1 GB - Physical volume for RAID 8.5 GB - Physical volume for RAID 50 GB - Physical volume for RAID 2.9 TB - Physical volume for RAID (aka. remaining space) So it looks like: sda 1mb 1mb - set to ??? 1 GB - Physical volume for RAID 8.5 GB - Physical volume for RAID 50 GB - Physical volume for RAID 2.9 TB - Physical volume for RAID (aka. remaining space) Then do the same thing for sdb? |
Boot from the LiveCD and paste the output of:
Code:
fdisk -l /dev/sda /dev/sdb |
Quote:
Personally, I make it a point to not install the OS on a RAID, at least not the same one that the rest of the partitions live on. The reason to split /home onto its own partition is to allow you to change the OS without affecting the contents of /home. However, if /home lives on the same RAID as /, that means that in order for you to use /home after the new OS install, you absolutely must set up the exact same RAID during the install of the new OS as you had before (IE: you must recover the existing RAID during the installation of the new OS). This is finicky to say the least, which is why I avoid it whenever possible. |
Here you go, towheedm.
Quote:
|
Quote:
Code:
sudo apt-get install parted Code:
sudo parted -l Code:
Model: ATA WDC WD800BB-75CA (scsi) |
Quote:
|
I think this is a problem with how GRUB2 and GPT works together. Have a look at these:
http://lists.debian.org/debian-user/.../msg00595.html http://www.rodsbooks.com/gdisk/booting.html |
Quote:
Use a knoppix disk to fix it? How? |
Well it all depends on if your machine is BIOS-based or EFI-based. I would start by carefully reading through http://www.rodsbooks.com/gdisk/booting.html including all of the links on that page. It has a lot of info on setting up GPT with GRUB2 on both BIOS and EFI machines.
I have never used EFI or GPT, so have no idea at this point how to directly solve this. So sorry for that. |
Okay. I figured it out... Basically you create when doing the partition section from the install. Create a 10mb partition on both drives and set the "Use Type" to "Reserved BIOS boot area" for it instead of "Physical volume for RAID". Once the install is done install grub on the other drive
and that is it. I kept trying to RAID the small partition which does not provide you with the "Resesrved BIOS Boot area" under the "use type" |
I'm currently having a similar issue. The 10mb partition you refer to, what is that formatted as or is it unformatted?
|
You know, I don't know if it is formatted or formatted maybe someone else can explain what goes on with that 10mb partition. You make the 10mb partition when you are partitioning the drives followed by setting the flag on this partition to "Reserved BIOS boot area" instead of "Physical volume for RAID". The install does the rest...
Once logged into the system you have to add GRUB to the other drive since the install does not install GRUB on the other drive(s). Hope this helps |
Yes, thanks! I was having some trouble getting it to set that flag; turns out that you need to have a GPT partition table (which you have to manually specify if you're creating the partitions in Gparted as I was). Then it should just be a simple matter of setting the bios_grub flag (which you can do with a right-click in Gparted).
I'm still finishing up the install, so I don't know if this has completely fixed my issue, but hopefully I'm at least 1 step closer to where I need to be. If you're curious, I've described the full problem here: http://www.linuxquestions.org/questi...08#post4895708 |
All times are GMT -5. The time now is 04:44 PM. |