FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-03-2010, 06:30 PM
James Allsopp
 
Default Moving a boot partition to a more stable format

Hi,
I built a debian server a while ago, with all of the main partitions across an LVM volume, which is then mirrored across two drives using kernel RAID1. I left swap out and effectively stripe them by setting their priority to 1 in /etc/fstab. However the boot partition still only exists on one of the disks (/dev/sda1). I would like to mirror that as well so if either drive goes down, the system can boot regardless. I distantly remember being warned off creating them as a RAID1, but can't remember the exact reason. How's the best way of achieving want I want and does anyone have any good up-to-date instructions? I've cut and pasted the file list at the bottom,


On a side note, if I remove one of the disks from a raid 1 configuration, if I then mount the partitions, are they safely readable as with any ordinary ext3 partition for instance?

Thanks for any help,
James


Hawaiian:/home/ja# fdisk -l /dev/sd[ab]

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf229fe3e

** Device Boot***** Start******** End***** Blocks** Id* System
/dev/sda1** *********** 1********* 37***** 297171** 83* Linux
/dev/sda2************* 38******** 524**** 3911827+* 82* Linux swap / Solaris

/dev/sda3************ 525***** 121601** 972551002+* fd* Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00049c5c

** Device Boot***** Start******** End***** Blocks** Id* System
/dev/sdb1************** 1********* 37***** 297171** 83* Linux

/dev/sdb2************* 38******** 524**** 3911827+* 82* Linux swap / Solaris
/dev/sdb3************ 525***** 121601** 972551002+* fd* Linux raid autodetect
 
Old 10-05-2010, 10:17 AM
James Allsopp
 
Default Moving a boot partition to a more stable format

Hi,
I sent the below message a couple of days ago, but now I think the
answer is simple,

i.) Copy the files off boot,
ii.) Turn sda1 and sdb1 into a RAID1 array
iii.) Copy the files back
iv.) Reinstall grub on both the hard drives,

Does this sound about right? I presume I'll have remove all of the
UUID's from the menu.lst

Thanks
James


Hi,
I built a debian server a while ago, with all of the main partitions
across an LVM volume, which is then mirrored across two drives using
kernel RAID1. I left swap out and effectively stripe them by setting
their priority to 1 in /etc/fstab. However the boot partition still only
exists on one of the disks (/dev/sda1). I would like to mirror that as
well so if either drive goes down, the system can boot regardless. I
distantly remember being warned off creating them as a RAID1, but can't
remember the exact reason. How's the best way of achieving want I want
and does anyone have any good up-to-date instructions? I've cut and
pasted the file list at the bottom,

On a side note, if I remove one of the disks from a raid 1
configuration, if I then mount the partitions, are they safely readable
as with any ordinary ext3 partition for instance?

Thanks for any help,
James

Hawaiian:/home/ja# fdisk -l /dev/sd[ab]

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf229fe3e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 37 297171 83 Linux
/dev/sda2 38 524 3911827+ 82 Linux swap / Solaris
/dev/sda3 525 121601 972551002+ fd Linux raid
autodetect

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00049c5c

Device Boot Start End Blocks Id System
/dev/sdb1 1 37 297171 83 Linux
/dev/sdb2 38 524 3911827+ 82 Linux swap / Solaris
/dev/sdb3 525 121601 972551002+ fd Linux raid
autodetect


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4CAAFB31.5070105@googlemail.com">http://lists.debian.org/4CAAFB31.5070105@googlemail.com
 

Thread Tools




All times are GMT. The time now is 09:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org