LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-16-2018, 05:17 AM   #1
goorooj
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Rep: Reputation: Disabled
rescue cd for pxe with fixed ip?


Hi Swarm Intelligence,

Following Environment: remote Datacenter, rented rack, nobody there. I dont want to drive there, a day would be gone.

Pure Linux / VMware environment. almost all is virtual and HA, except the 2 database servers with a 1.1TB database running, second as hot standby.

now one of these [removed] up. i can contact the OOB card www server, and pipe the console via terminal emu to ssh. tried all well known grub recovery and kernel options

it does not help much in this case, i would have to edit some files in the filesystem as it turned out. so normally i would just start a rescue CD and do that, but i am not there.

the environment is safe and stripped of everything not needed. so there is for example no dhcp server.

now i did set up a pxe boot server, with dhcp. i need an image now that boots up with a certain ip address and ssh access, so i can boot that from the faulty machine, ssh to it and repair the file system... how do i do that? take an existing image and do what? can somebody point me in the right direction, my brain seems to fade out by now the longer i think about it.
 
Old 01-16-2018, 07:25 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,710

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by goorooj View Post
Hi Swarm Intelligence,
Following Environment: remote Datacenter, rented rack, nobody there. I dont want to drive there, a day would be gone. Pure Linux / VMware environment. almost all is virtual and HA, except the 2 database servers with a 1.1TB database running, second as hot standby.

now one of these [removed] up. i can contact the OOB card www server, and pipe the console via terminal emu to ssh. tried all well known grub recovery and kernel options

it does not help much in this case, i would have to edit some files in the filesystem as it turned out. so normally i would just start a rescue CD and do that, but i am not there. the environment is safe and stripped of everything not needed. so there is for example no dhcp server.

now i did set up a pxe boot server, with dhcp. i need an image now that boots up with a certain ip address and ssh access, so i can boot that from the faulty machine, ssh to it and repair the file system... how do i do that? take an existing image and do what? can somebody point me in the right direction, my brain seems to fade out by now the longer i think about it.
You don't. While there may exist some options depending on your hardware (for example, **SOME** blade servers do have the ability to put an address in BIOS), PXE has no way of knowing or configuring any address-type stuff. Far simplest way to go is to set up a DHCP server with an address range of ONE, since you only need one machine, and let it do its thing. Or use any existing DHCP server and have it dole out the correct address based on the MAC address of the card.
 
1 members found this post helpful.
Old 01-16-2018, 08:04 AM   #3
goorooj
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the hint. i already thought of the MAC but i cannot read it out from serverview, cannot look on the switch and cannot find any documentation. so i will take the IP range of one adress solution. joy of inherited infrastructure.
thanks, sometimes you need a hit with a blunt object on the head to get thinking going again.

Last edited by goorooj; 01-16-2018 at 08:06 AM.
 
Old 01-22-2018, 03:40 AM   #4
goorooj
LQ Newbie
 
Registered: Jan 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Just for everybody that comes here on a search:

i got it going. PXE was not much of a help either, important mistake i made was that i appended the kernel options in order "... rw init=/bin/bash console=ttyS0,115200 console=tty0" because it was already in the original grub entry like that.
and this does not work because sterr/stdout goes only to the LAST console in this entry. so the shell was there, just i did not see it. i think this goes for every serial console.
reversing the console entries gave me the prompt.

so for Fujitsu RX300 S6 the way to go with ServerView Console to see the terminal is appending these kernel option on the linux line in Grub: rw init=/bin/bash console=ttyS0,115200
and just omitting the console=tty0 entry, I did not have a monitor anyway.

Last edited by goorooj; 01-22-2018 at 03:42 AM.
 
1 members found this post helpful.
  


Reply



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
LXer: Microsoft thinks it's fixed Windows Server mess its last fix 'fixed' LXer Syndicated Linux News 0 06-06-2016 05:30 AM
PXE Booting System Rescue CD 3.8.0 proliant800 Linux - Newbie 5 04-13-2015 03:07 PM
LXer: PXE network boot of grml rescue system LXer Syndicated Linux News 0 12-10-2010 12:12 AM
How do I pack stage2.img into initrd.img for a PXE linux rescue? real1elmo Red Hat 12 10-14-2009 06:29 PM
LXer: Solutions from the road: Red Hat Enterprise Linux Rescue Mode over PXE (part I) LXer Syndicated Linux News 0 07-05-2007 11:16 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:33 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