LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2010, 09:37 PM   #16
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0

Thanks again bob.....just finished reading something and realized I actually saw iLO, not LILO.....duh!!
 
Old 12-31-2010, 10:42 PM   #17
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks bob.....after further reading I realized it was iLO, not LILO.....duh!!

So, is grub, is grub is grub?? Does it matter that I'm working with a server? The reinstall looks pretty simple.
 
Old 01-01-2011, 08:29 AM   #18
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Grub is grub, there will be no major differences in how this is done because it is a server, laptop, desktop, etc. Just be careful with mount points since they can be different based on the hardware you are using, and if the original setup was done using LVM (logical volumes in Red Hat) or physical paths (for an HP Smart Array it will likely be /dev/cciss/xxx).
 
Old 01-01-2011, 10:33 AM   #19
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Here is what I've seen online to reinstall grub:

$ sudo grub
grub> find /boot/grub/stage1
(hdx,x)

grub> root (hdx,x)

grub> setup (hdx) OR setup (hdx,x)?? two schools of thought here

grub> quit


Sound right?
 
Old 01-01-2011, 01:28 PM   #20
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Well this probably isn't what you want to hear, but both options could be right, or neither of them could be right. Think about what is happening when the server is booting for a minute to help understand. When you hit the power button the BIOS will do a POST, and after all subsystems BIOS will begin to pass control (in the specified order) to various devices until it finds one which has instructions on how to boot. In this case it is a drive with Grub on the MBR. Grub then knows where the OS is installed, and how to start booting the default (or selected) kernel.

The thing you will need to know is where was Grub originally installed, and where is your OS installed? The grub commands listed are just specifying to install the Grub bootloader on the first drive in the system. This will generally be the default, but there is no reason that things might be setup differently in your case. Have you been able to boot to a live CD and look at the drives and see how what partitions exist with data still in tact? That should help ensure we are now configuring Grub properly.
 
Old 01-01-2011, 01:53 PM   #21
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Erik, I plan on booting Ubuntu today. Not really sure what I should expect to see as far as data goes. By that I mean, I'm used to Windows environment where I can view individual drives, folders, files.

Are there commands I can use, or even in the GUI environment to be able to tell what version of Linux I have?
In the few times I've seen this machine booting up, I recall Redhat displayed, but can't recall the version/release, etc.

Thanks.......Happy New Year!
 
Old 01-01-2011, 03:04 PM   #22
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I tried typing sudo grub and command wasn't recognized. Then I typed just grub and it says grub isn't installed and gave me command to do so.
In GUI interface I opened folders and see GRUB listed....is this the same thing?
I don't have admin rights to look at some of the folders and they aren't named, so although I see GRUB listed, I don't know on which drive it resides.
 
Old 01-01-2011, 05:29 PM   #23
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
More info......
Under Places>Computer> I attempt to open /home and /temp and get error message "Unable to mount location- No mount object for mounted volume"
Under /boot I can view files/folders.....GRUB is listed first.

Then under System>GParted??>.......wasn't really sure what I was looking at, but window shows following columns:
Partition
File System
Mount Point
Label
Size.....etc....
 
Old 01-01-2011, 05:58 PM   #24
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Erik, you spoke of the mount points earlier.
I see under GParted the Partitions read /dev/cciss/c0d0p1 through c0d0p8
 
Old 01-02-2011, 09:12 AM   #25
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
The path /dev/cciss/c0d0px are the physical devices, not the mount points. Each of those is a partition, and you will need to determine which one of them is mounted as what. The easy way would be to look for a file on the disk /etc/fstab which has all of these mappings. Also this isn't making complete sense when matched with the output of the controller having three arrays, the Gparted is showing as having multiple partitions but on a single logical drive. Now this either means you possible missed the other arrays when you first looked, some data has been lost, or those drives were never in use.

Some of the problems you are having are likely due to permissions, so it might be easiest to mount the drives using the live CD again, but this time use a terminal to run some tests. First I would say do a sudo fdisk -l, which should list all devices and partitions on those devices. Obviously for this exercise we are only interested in the drives in those which are on the array which was in use prior. Then you can do a sudo df which will show how the live CD mounted the partitions so they can be accessed. Then you can use commands such as sudo ls to check the integrity of data on the partitions.

Also using an Ubuntu live CD to fix grub of a Red Hat server might not be the best idea as Ubuntu is more latest packages where as Red Hat is all about stability and generally uses older versions. Is this server still under contract with Red Hat? Do you have access to the original install CD/DVD, using that to repair grub will probably give you the best compatibility and reduce potential from problems when doing future Red Hat updates.
 
Old 01-02-2011, 10:00 AM   #26
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Erik, I did both sudo commands, unfortunately I can't give you a screenshot. I can give any info I see though.

Under GParted>Devices>....I show /dev/ccis/c0d0 (size)
/dev/ccis/c0d1 (size)
/dev/ccis/c0d2 (size)

The info I gave in a previous post above was only for /dev/ccis/c0d0.

In all of these, the Mount Point is populated as well as Label and Flags.

How are the partitions accessed once I type sudo df?
 
Old 01-02-2011, 01:32 PM   #27
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Under Computer>/boot.....I see a grub folder/file and all of its sub directories. Is this not the same thing?
No such luck with original cd.
 
Old 01-02-2011, 02:58 PM   #28
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
I have not used an Ubuntu live CD recently. Yes the files and directories for grub in /boot are what is relevant to booting the system. However what we need to verify is if the /boot you are seeing is the version from the CD or one of the actual drives. You also then need to go further and make sure that one of the three logical drives has a MBR with grub installed.

df will just list the mounted partitions/drives:


/dev/sdb2 8649576 4575408 3634792 56% /

You should see multiple lines like the above, this is just showing that /dev/sdb2 is used with a mount point of / (the root partition). What you want to see is which physical devices are mapped to which mount points, and then inspect the original /boot and make sure everything there is readable and in tact. You can also verify that the logical volume which has /boot has a MBR and is marked as bootable.
 
Old 01-02-2011, 03:31 PM   #29
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I'm slowly understanding the logical/physical partitions.

And I'm seeing that data as you describe.

In the GUI, I don't see MBR file/folder under /boot.....is it in within another folder?

In the command line, how do I access those partitions.......is this a cd /mount point command at the prompt?
 
Old 01-02-2011, 03:37 PM   #30
Redhat59
LQ Newbie
 
Registered: Dec 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Wait a minute.....is this where the mount command comes into play? My reading is a few steps behind my questions
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HP Proliant ML370, G5 has issues with centos5.0 installation akistam Linux - Server 1 05-06-2009 11:13 AM
HP ProLiant ML370 driver for Debian Lenny tuananh87vn Linux - Server 1 04-03-2009 08:36 AM
Monitoring Health of Compaq Proliant ML370? jantman Linux - Server 3 03-06-2007 04:44 PM
Proliant ML370, SmartArray 431 and kernel 2.6 NX-01 Linux - Hardware 3 02-19-2006 02:55 PM
Compaq proliant Ml370 Sylhouette Linux - Software 1 01-19-2002 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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