Tony Mountifield
2017-Jan-26 09:40 UTC
[CentOS] CentOS 7 install on one RAID 1 [not-so-SOLVED]
In article <1485416344.2047.1.camel at biggs.org.uk>, Pete Biggs <pete at biggs.org.uk> wrote:> > > > > If you are using RAID 1 kernel mirroring, you can do that with /boot too, > > and Grub finds the kernel just fine. I've done it many times: > > > > > Hmm, OK. I wonder why anaconda doesn't do it then. > > Reading various websites, it looks like grub2 can do it, but you have > to make sure that various grub modules are installed first - i.e. do > something like > > grub-install --modules='biosdisk ext2 msdos raid mdraid' /dev/xxx > > I don't know if they are added by default these days.I don't know, but I've never had to do it, when using plain mirroring, on either C4, C5 or C6. I can imagine you would need to if /boot was RAID 0 striped, if indeed that is even possible.> The other gotcha is, of course, that the boot sectors aren't RAID'd - > so if /dev/sda goes, replacing it will make the system unbootable since > it doesn't contain the boot sectors. Hot swap will keep the system > running but you have to remember to re-install the correct boot sector > before reboot. If you have to bring the machine down to change the > disk, then things could get interesting!Yup, been there, done that. So long as you use grub to install the boot sector on both drives, then you can always tell the BIOS to boot from the other drive to bring the system up after replacing the first disk. Anaconda doesn't set up the boot sector on the second drive by default, so I put some grub commands in the post-install section of kickstart to do so. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Gordon Messmer
2017-Jan-26 15:04 UTC
[CentOS] CentOS 7 install on one RAID 1 [not-so-SOLVED]
On 01/26/2017 01:40 AM, Tony Mountifield wrote:> Anaconda doesn't set up the boot sector on the second drive by default, > so I put some grub commands in the post-install section of kickstart > to do so.I can't attest that it *works* (mostly since I use UEFI everywhere possible) but anaconda definitely attempts to install grub on each drive with a copy of /boot: https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/bootloader.py
Hi all, I use cURL to connect external https server from local apache php application. I found this application only use even local port number and never use odd port number. My server info is as follows: # uname -r 2.6.32-642.3.1.el6.x86_64 # sysctl -a | grep net.ipv4.ip_local net.ipv4.ip_local_port_range = 32768 60999 net.ipv4.ip_local_reserved_ports = I want cURL use odd and even number as local port. Any idea? Thank you. Yana
Tony Mountifield
2017-Jan-26 18:03 UTC
[CentOS] CentOS 7 install on one RAID 1 [not-so-SOLVED]
In article <5ef97952-14c0-6ad2-0803-c24691a6816b at gmail.com>, Gordon Messmer <gordon.messmer at gmail.com> wrote:> On 01/26/2017 01:40 AM, Tony Mountifield wrote: > > Anaconda doesn't set up the boot sector on the second drive by default, > > so I put some grub commands in the post-install section of kickstart > > to do so. > > > I can't attest that it *works* (mostly since I use UEFI everywhere > possible) but anaconda definitely attempts to install grub on each drive > with a copy of /boot: > > https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/bootloader.pyThanks, that's interesting to know. When I first started doing this it was on CentOS 4, and I'm pretty sure the second drive didn't get grubbed back then, which would be what prompted me to add the post-install grub for the second drive at that time. I never went back to check whether the need had been obviated in CentOS 5 or 6. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org