Koozali.org: home of the SME Server

Moved drive to different machine, and now getting grub Error 15 at startup

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Okay, I have an old machine (late 90s) with a proprietary power supply that is failing. Since it would be a nuisance to special-order their nonstandard power supply, and I have another, different machine sitting around doing nothing, I decided to simply move the HDD into the other machine and run it from that one.  I have made NO changes to anything beyond simply moving the drive from one old machine to another, with that drive as the only HDD connected and powered.

The original machine is an old Gateway Essential, the other machine is an old Micron Millinnia.

I turned the machine on, and it got as far as:

Code: [Select]
Verifying DMI Pool Data...
GRUB loading stage 1.5

Grub loading, please wait...
Error 15

What am I doing wrong?

What do I need to do to get my email server back up and running without a lot of muss or fuss, and without losing any data?

Offline Stefano

  • *
  • 10,894
  • +3/-0
if you can, move your data using Affa

anyway, did you search for "centos grub error 15" with google?

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Well, one issue is I am not sure I would be able to keep the machine that WAS running SME Server up and running for more than a little while.  It kept spontaneously shutting off after a short period, sometimes a couple hours, sometimes a few minutes.  Fairly likely this is due to a failing power supply.  This is why I moved the HDD to another machine and tried to boot it on that machine.

I DID do a google for "grub error 15" or something close to that, but didn't find anything useful.  Didn't try it with "centos grub error 15" though.
« Last Edit: January 19, 2012, 12:09:19 PM by NomadOfNorad »

Offline Stefano

  • *
  • 10,894
  • +3/-0
try to boot from SME's cd in rescue mode and reinstall Grub

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Moving your drive might seem the easy solution, but the system is a little bit more complex. Error 15 (according to a little google-ing) indicates that files required by grub are not found.
Since you moved you hard disk to another machine I think the drive id it might be on is not the same as it was on in the old machine. This might get you started and at least might give you some idea on how things work:

http://stringofthoughts.wordpress.com/2009/05/25/grub-error-15-debianubuntu/

I have not tested this and the information is for a different flavor of linux, it might work, it might not work. I suggest you backup your drive, for instance by making an image and experiment using the image, that way you will not wreck the original disk
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
I think all that may be required is to run 'upgrade' from the SME server CDROM.

If this were my system, I'd first use 'rescue' from the SME server CDROM, check that the system looks to be OK, and do a full backup over the network. All those unplanned shutdowns and concerns over a malfunctioning power supply raise concerns over the integrity of the file system, however.

Another option, as Stefano mentioned, is to use 'rescue' and re-install grub via the command line.

Offline Stefano

  • *
  • 10,894
  • +3/-0
was the hd the only one in the old server? if it was not, try to connect the other one

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
It was the only drive in the old system, it is the only drive in the new system.

Is Affa something I install separately onto SME Server, or is it something that comes with the regular install, or that if it didn't originally come with it, got added with one of the SME Server updates?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Is Affa something I install separately onto SME Server, or is it something that comes with the regular install, or that if it didn't originally come with it, got added with one of the SME Server updates?
It is a contrib (addition), see http://wiki.contribs.org/Affa
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kmccarn

  • ****
  • 112
  • +0/-0
I would look at the BIOS drive settings on both systems first - see if there are translation issues with the heads and cylinders....

Just a thought....

 8-)
Kevin in WV 8-)......

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #10 on: January 20, 2012, 04:29:20 AM »
NomadOfNorad

Did you overlook Charlies advice ? You should follow it, he is very good with his advice.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #11 on: January 20, 2012, 09:30:26 AM »
Okay, I did an Upgrade from the SME server CD, and it went through the whole process, prompted me to remove the CD and hit enter to reboot.... and then on reboot, it still gives Error 15.  Grrrr....

Looks like I'm going to have to reinstall Grub.  Any advice on doing this, me being a complete novice at Linux?
« Last Edit: January 20, 2012, 09:33:48 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #12 on: January 20, 2012, 10:13:06 AM »
NomadOfNorad

As Charlie suggested did you first do:
"If this were my system, I'd first use 'rescue' from the SME server CDROM, check that the system looks to be OK, and do a full backup over the network. All those unplanned shutdowns and concerns over a malfunctioning power supply raise concerns over the integrity of the file system, however."

See http://wiki.contribs.org/Booting
« Last Edit: January 20, 2012, 10:14:40 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #13 on: January 20, 2012, 10:44:58 AM »
Yeah, I saw that comment about "...do a full backup over the network," and I went into rescue mode looking for a way to do that, and didn't see any obvious means of telling it "I want to save the backup to that a folder on that Win7 machine over there," because right now that would be the only place I'd be able to save it to.  There wasn't any obvious menu item for that, so I'm guessing I'd have to manually type something in at the command prompt, but since I have barely any experience at all with Linux, I have no idea what that command sequence might be.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #14 on: January 20, 2012, 11:13:57 AM »
NomadOfNorad

As long as the file system in intact, a system in rescue mode should perform similarly to a live SME system.

Boot up into rescue mode, then follow the prompts to mount the system and so on. It's reasonably obvious, but you may be unsure the first time you do it, so experiment (with care).
I'm sure there are some notes about this either on the wiki or in the forums, search on rescue mode, here is one result
http://forums.contribs.org/index.php/topic,45089.msg218391.html#msg218391

Then when you are at the command prompt type in
console
This should open the admin menu, from there you can select to do a backup to a connected USB drive.

Alternatively the system should be accessible from the network it is connected to, so you can access server manager and perform a backup to workstation or connected USB.


This post may also be of interest re the grub issue.
http://forums.contribs.org/index.php/topic,48149.msg238786.html#msg238786
« Last Edit: January 20, 2012, 11:21:01 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #15 on: January 20, 2012, 12:24:02 PM »
My install way back when (I think it might have been SME 6.x) was to a (non-RAID) single HDD-drive machine, having told it to wipe the hard drive and install SME in the default manner.  How likely is it for my GRUB restore process to be identical to the one mary linked to in the previous post?  What is the simplest way for me to determine what the correct paths are I should type for the grub-install?


Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #17 on: January 21, 2012, 04:25:58 AM »
So, from the fact that both mary and Stefano have sent me to this post, I take it that /dev/sda and /dev/sdb is a universal constant across all installed versions of SME Server?

addendum:

Okay, I got as far as:

grub-install /dev/sda

...and got:

/dev/sda: Not found or not a block device

« Last Edit: January 21, 2012, 04:35:40 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #18 on: January 21, 2012, 04:50:12 AM »
NomadOfNorad

Not necessarily a universal constant, but typical.

sda, sdb, sdc, sdd & so on refer to your drive locations for SATA drives.
SATA Port0 is sda, SATA Port1 is sdb & so on.
Typically you might have sda & sdb in a RAID1 array and sdc might be a backup USB drive.

Similar for earlier non SATA drives connected via IDE, IDE1 = hda, IDE2 = hdb & so on for hdc & hdd.
Typically you might have hda & hdc in a RAID1 array (the drives are physically connected on different channels or drive controllers for reliability)

So the location you install grub to will depend on what drive or drives you have connected, and whether it is a single drive or a RAID1 array or some other RAID variant.

So what are your drive types, how many and to what ports are they connected, & is it a RAID array ?

A single SATA drive connected to SATA Port0 should be referred to as /dev/sda

To review details about your drives, at the command prompt do (with care)
fdisk -l |more
« Last Edit: January 21, 2012, 04:52:30 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #19 on: January 21, 2012, 06:27:35 AM »
Well, my two machines (the one I had the drive in originally, and the one I moved it to) are old, late 1990s ones, before there ever was SATA.  It's PATA only on there.  And no RAID or anything, just plane-jane IDE drive.
« Last Edit: January 21, 2012, 06:33:59 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #20 on: January 21, 2012, 08:35:12 AM »
NomadOfNorad

So for one IDE drive connected to the first IDE socket on harddisk controller channel 1 use
grub-install /dev/hda

... and PATA is not IDE, it's just slow SATA, compatible with early SATA mobos that did not support the fast SATA spec
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #21 on: January 21, 2012, 09:42:37 AM »
Okay, I did grub-install /dev/hda and it completed it without errors, I then rebooted and.... it still gives error 15.  oO

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #22 on: January 21, 2012, 10:23:45 PM »
NomadOfNorad

What output does this command give ?
fdisk -l |more
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #23 on: January 21, 2012, 11:39:32 PM »


Code: [Select]
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/hda: 122.9 gb, 122942324736 bytes
255 heads, 64 sectors/track, 16065 * 512 = 8225280 bytes

   Device Boot    Start         End        Blocks    ID   System
/dev/hda1   *          1          13        104391   fd   Linux raid autodetect
/dev/hda2              14    14946  119949322+   fd   Linux raid autodetect

Disk /dev/md2: 122.8 GB, 122828029952 bytes
2 heads, 4 sectors/track, 29987312 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096


Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #24 on: January 22, 2012, 11:52:43 PM »
Come on, anybody?  If it takes me much longer to get this fixed, emails at my webspace provider are going to start bouncing due to lack of space, assuming they haven't already.

Should I try something like grub-install /dev/hda1 instead of grub-install /dev/hda here?
« Last Edit: January 23, 2012, 12:04:07 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #25 on: January 23, 2012, 02:45:53 AM »
NomadOfNorad

Have you tried selecting a different kernel at boot up time (press the down or up cursor key when the list of kernels displays), perhaps to match your new mobo/CPU
see
http://forums.contribs.org/index.php/topic,44191.msg212120.html#msg212120

That is just one result I looked at, you should do a lot of searching in these forums & bugzilla to look for clues.

Maybe this bug is of interest too
http://bugs.contribs.org/show_bug.cgi?id=589#c17
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #26 on: January 23, 2012, 03:17:02 AM »
Would that selecting of a different kernel be done from bios, from the SME Server install/rescue CD, or from the Super Grub Disk linked to on that first link?  That Super Grub Disk org thing looks interesting, though.  (Starts poking around on their website)

----addendum:

BTW, in SuperGrubDisk 0.9799 (the legacy GRUB version), I went to GNU/LINUX > Fix Boot of LINUX (GRUB), and it states "SGD has NOT succeeded :("

Should I be trying SuperGrubDisk 1.98s1 (the GRUB2 repair disk)?

Rescutux didn't seem to be able to fix it either.  oO
« Last Edit: January 23, 2012, 05:55:06 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #27 on: January 23, 2012, 05:59:22 AM »
NomadOfNorad

From the SME Server normal boot up screen
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #28 on: January 23, 2012, 06:16:06 AM »
Do you mean from the install/rescue CD?  Because I still can't get past grub Error 15.

It is looking more and more like I have no choice but to just totally WIPE the hard drive and do a totally-from-scratch install of SME Server onto that.

My understanding is that there is a way, from the install/recovery CD, to start up some kind of web-interface (that I'd then access from my Windows machine), from which I could then select what to backup, and send that to a thumb-drive I'd have connected to the SME server machine.  But I don't really know how to launch that page, or.... would it use the same IP address that the server I'm trying to backup the data from had been assigned to, or would that be set at the time I launch the web interface from the live CD?

What IS the exact, detailed procedure to launch into that web interface, and so on?

I REALLY want to avoid doing a gut-and-reinstall at ALL costs, tho.  So, are there any other things I can try to fix my GRUB without having to wipe and reinstall from scratch?

---addendum:

Is there some more advanced mechanism I can run that will tell me exactly WHY I can't successfully restore GRUB?  For instance, someone I was talking to online speculating it MIGHT be there is some kind of damage to the actual magnetic media of the HDD that is preventing the restore.  Bad sector, or something, RIGHT at the spot GRUB is trying to be installed onto.  Is there a way to rule that out?

Come to think of it, is there some kind of mechanism where I can boot from a CD, such that it then launches the SME Server system that is located on the HDD?  That is, replace launching from GRUB with launching from a CD?
« Last Edit: January 23, 2012, 07:45:16 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #29 on: January 23, 2012, 07:50:36 AM »
NomadOfNorad

Yes boot in rescue mode from the SME7.5 install CD.
Somewhere there I expect you will still see the kernels listed.


Quote
My understanding is that there is a way, from the install/recovery CD, to start up some kind of web-interface (that I'd then access from my Windows machine), from which I could then select what to backup, and send that to a thumb-drive I'd have connected to the SME server machine.  But I don't really know how to launch that page, or.... would it use the same IP address that the server I'm trying to backup the data from had been assigned to, or would that be set at the time I launch the web interface from the live CD?
What IS the exact, detailed procedure to launch into that web interface, and so on?

Please re-read the information you have already been provided, see my earlier post which I believe exactly answers your question. Please stop ignoring advice already given.

http://forums.contribs.org/index.php/topic,48261.msg239384.html#msg239384

However the server is booted, it will still behave as normal ie function as the SME server is configured to do.
So you can access the admin console via command prompt, or server manager via the network from a workstation.
Of course your SME server needs to be correctly connected to the network cables etc.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #30 on: January 23, 2012, 08:15:23 AM »
NomadOfNorad

Quote
Come to think of it, is there some kind of mechanism where I can boot from a CD, such that it then launches the SME Server system that is located on the HDD?  That is, replace launching from GRUB with launching from a CD?

Are you serious with this question ? That's exactly what have we been telling you to do this whole thread ?
Are we talking to a brick wall here ? Do you know what boot to CD means ??????

Please configure the BIOS on your server to allow the system to start up (ie boot) from a CD.
Get yourself a copy of the SME 7.5.1 CD and place it in the drive, then restart the server.
Select to boot to CD.
Then when you see the appropriate screen, press a key, you will be then given the opportunity to start up in Rescue mode, which will allow a broken server to start up.
Select the appropriate option F key or Type
sme rescue

Follow the on screen prompts to mount the system ie something like
/mnt/sysimage

Log in as root and you will be able to do any command line stuff
eg to run the admin console type
console
then select to do an immediate backup to a connected USB (formatted ext3).

In this mode the server should be network accessible as per its configuration, just like it would be if you booted normally.

Do you understand this or is it still a mystery to you ?


Please try this procedure out on a test server BEFORE you try fixing your broken server.
You seem to be very unfamiliar with the process, so practice first on a test system.
Just do a basic install of SME to a test server, and then try to boot up to it using the install CD, and then try doing the commands mentioned above.
When you are comfortable with it, then try the same thing on the broken system.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #31 on: January 23, 2012, 08:32:34 AM »
Well, I've booted the CD into Rescue mode, all the way up to:

Code: [Select]
Your system is mounted under the /mnt/sysimage directory.
When finished please exit from the shell and your system will reboot.

-/bin/sh3-3.00#

But if from the Windows machine I then try to go to https://(myservername)/server-manager/ I get Unable to connect.

It doesn't matter if I let it set the address via DHCP, or if I set all that manually and set a static IP address such as 192.168.0.10 like it should be.

Either you've left out an important step here (sometimes we ALL leave out seemingly obvious steps, that aren't), or something else is borked.

---addendum:
And yeah, I know how to boot from CD, I have my BIOS set to do so when one is in the drive, but while you said earlier that booting into Rescue Mode from the CD (which I've done lots of times in the last couple of days) also caused the existing SME Server that is on the HDD to start working like normal, it never seemed to behave like it was doing so, so I kept thinking that either something was being left OUT of the instructions I was being given here, or that I was misreading you as having said that being in Rescue Mode would cause the SME Server on the HDD to be running.  And as you can see above, it appears SME Server on the HDD is not running right now, even though it is supposed to be.

Is there a command I can issue from the shell to double check what is running or not running related to the SME Server system on the HDD?  I suppose it's possible that something beyond just the GRUB booter got corrupted on the HDD.  I can ping 192.168.0.10, but the web interface isn't coming up even when I address it as https://192.168.0.10/server-manager/
« Last Edit: January 23, 2012, 09:20:11 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #32 on: January 23, 2012, 10:22:00 AM »
NomadOfNorad

Please read & follow all instructions:
from last post:
Log in as root and you will be able to do any command line stuff
eg to run the admin console type
console
then select to do an immediate backup to a connected USB (formatted ext3).

You can also for example type
df -h
to view disk usage
or
top -i
to see processes running
or using the steps in this howto
http://wiki.contribs.org/Monitor_Disk_Health
enable smartd to test the disk
config setprop smartd status enabled
/etc/rc.d/init.d/smartd start
smartctl -t short /dev/hda
which runs a 1 minute test or
smartctl -t long /dev/hda
which runs a 1 hour test
then view the report with
smartctl -a /dev/hda

Network accessibility could be for many other reasons not related to your current grub issue, so that's another query/thread please.
« Last Edit: January 23, 2012, 10:23:35 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #33 on: January 23, 2012, 11:28:04 AM »
NomadOfNorad

Are you serious with this question ? That's exactly what have we been telling you to do this whole thread ?
Are we talking to a brick wall here ? Do you know what boot to CD means ??????

Yes.  Obviously, to boot the rescue CD (which I've done multiple times) I am booting the CD.

Quote
Please configure the BIOS on your server to allow the system to start up (ie boot) from a CD.
Get yourself a copy of the SME 7.5.1 CD and place it in the drive, then restart the server.
Select to boot to CD.
Then when you see the appropriate screen, press a key, you will be then given the opportunity to start up in Rescue mode, which will allow a broken server to start up.
Select the appropriate option F key or Type
sme rescue

Follow the on screen prompts to mount the system ie something like
/mnt/sysimage

Yes, I have done all that.  Launching into Rescue Mode, it tells me at the end that it has in fact mounted  /mnt/sysimage

Or do I need to do that a second time, manually, at the -/bin/sh3-3.00# prompt?  i.e. type:

chroot /mnt/sysimage

...at the prompt?

(Comes back to this part of my post) Oh, that's what I do to get into Root.

Quote
Log in as root and you will be able to do any command line stuff
eg to run the admin console type
console
then select to do an immediate backup to a connected USB (formatted ext3).

Okay, so I need the thumbdrive to be formatted specially for *nix, rather than using the default Fat32 it comes preformatted in.  I did not know that part of it.

Quote
In this mode the server should be network accessible as per its configuration, just like it would be if you booted normally.

The web interface doesn't seem to be running.  I can ping the machine via the IP address I gave it, but pinging it as Server (the machine-name I configured it to have on the LAN originally) doesn't work.  I'm guessing that means some part of SME Server is not launching properly.

That is why, earlier, when you said that running rescue mode means that SME Server on the HDD is also running... and it looked, in the times that I was in rescue mode, as if that was NOT happening... I came away thinking either that it only looked to me as if you were saying that that was what it was supposed to be doing, and that therefore I must be misreading that into it, and you were really saying something else, or else that you were unwittingly leaving out a step that seemed really obvious but that in fact wasn't really obvious.

Quote
Do you understand this or is it still a mystery to you ?


Please try this procedure out on a test server BEFORE you try fixing your broken server.
You seem to be very unfamiliar with the process, so practice first on a test system.
Just do a basic install of SME to a test server, and then try to boot up to it using the install CD, and then try doing the commands mentioned above.
When you are comfortable with it, then try the same thing on the broken system.

Unfortunately, I do not have another hard drive to image this drive onto or to simply install another instance of SME Server onto, or another spare machine to mount it in.

I am now looking at the post you've just posted while I was composing the above...

I do not have a USB thumbdrive formatted for ext3, I only have ones formatted for Windows FAT32 or the like.

typing df -h yields:

Code: [Select]
Filesystem                Size  Used Avail Use% Mounted on
rootfs                      6.0M 5.0M  660K 89% /
/dev/root.old             6.0M 5.0M 660K 89% /
/tmp/loop0                174M 174M     0 100% /mnt/runtime
/dev/vg_primary/lv_root
                               113G  20G  87G   19% /mnt/sysimage
/tmp/md1                    99M  13M 81M   14% /mnt/sysimage/boot
/dev/root.old              6.0M  5.0M 660K  89% /mnt/sysimage/dev


Redoing this as root, typing df -h yields:

Code: [Select]
Filesystem                 Size    Used Avail Use% Mounted on
/dev/vg_primary/lv_root
                               113G   20G   87G  19%  /
/dev/md1                     99M  13M  81M  14%  /boot

typing top -i yields:

Code: [Select]
top - 05:16:49 up 15 min, 0 users,   load average: 0.00, 0.00, 0.01
Tasks: 29 total,       1 running,   27 sleeping,   0 stopped,    1 zombie
Cpu(s): 0.3% us,   0.7% sy,  0.0% ni, 99.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem:     190792k total,    161528k used,      29264k free,     23268k buffers
Swap:    524280k total,             0k used, 524280k free,     114660k cached

PID USER           PR  NI   VIRT   RES  SHR S %CPU %MEM     TIME+  COMMAND
653 root            16   0   2676   968   784 R   0.7     0.5      0:03.48 top


I try to invoke config setprop smartd status enabled and it tells me:

Code: [Select]
sh: config: command not found
...so it doesn't look like I'd be able to do the others.

---addendum:

Just as an extra test, I went back and restarted the CD in rescue mode, and this time set the address to 192.168.0.9 and was able to ping it at that address, so clearly the network connection is running, I just can't get to the web interface, and still pinging it by the name Server doesn't work.  Am I right in understanding you would want this aspect of the issue (the matter of network-related access stuff) to be moved to its own thread?
« Last Edit: January 23, 2012, 11:44:06 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #34 on: January 23, 2012, 11:58:58 AM »
NomadOfNorad

Quote
so I need the thumbdrive to be formatted specially for *nix, rather than using the default Fat32 it comes preformatted in.  I did not know that part of it. ...... I do not have a USB thumbdrive formatted for ext3, I only have ones formatted for Windows FAT32 or the like.

fat32 is supported by SME, but you will get better reliability using ext3, see
http://wiki.contribs.org/USBDisks

The commands I gave you were just examples of what you could do, in an attempt to get you to understand how to use the root prompt.
They may also be informative to you.

the config command is a link for db configuration so
Instead use
db configuration setprop smartd status enabled
& so on

This thread is primarily about getting your grub fixed and server running normally.
Going into a whole lot of other troubleshooting stuff here in the same thread may become unwieldly.
Primarily the suggestion by Charlie etc was to run a backup, so login as root and run console and see if you can create a backup to USB.
I steered you towards smartd so you could test your drive (as it may be faulty), which was also suggested earlier.

If you want to resolve why the network is not working correctly under rescue mode, then my suggestion is to do so in another thread.

Why not put your drive back into the old machine, at least that will work (I assume it was working before you moved the drive ?).
Then buy another drive and experiment with SME and learn a bit more about troubleshooting in rescue mode & so on, and later on attempt the upgrade again.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #35 on: January 23, 2012, 12:16:47 PM »
I try to invoke config setprop smartd status enabled and it tells me:

Code: [Select]
sh: config: command not found
...so it doesn't look like I'd be able to do the others.
You are in rescue mode, it is not running all services as the root file system is mounted under a different location (/mnt/sysimage). This is to diagnose and try to recover, you are not supposed to expect full functionality.
Network functionality is there so you can for instance copy files off the system.

Because of the different mount point of your normal file system, normal commands do not work in their short form, you will need the full path, however even then they might not work as dependencies might not be located properly.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #36 on: January 23, 2012, 11:36:00 PM »
Okay, if I can't get the GRUB fixed, is there a way I can boot the machine some other way, and hand things off to the full SME Server, such that the machine now behaves exactly as if it HAD been booted from the HDD directly, and launches into the full SME Server?  Say, boot from CD, thumbdrive, floppy, whatever.  Something that does exactly what the GRUB does, but doesn't itself reside on the HDD, but that immediately hands things off to the full Linux system on the HDD?  (That's what I was asking earlier, and yeah I figure there probably isn't such an animal here.)

In any event, to try to repair things, I have burned CDs of all three rescue/investigate ISOs at supergrubdisk.org, and have so far used SGD 0.9799 (the legacy GRUB disk), which failed to restore my GRUB, and I've booted the Rescutux CD, which I still haven't gotten a handle on. I haven't tried SGD 1.98s1 (the GRUB2 version) because someone else who looked at some of the details of this all told me my machine is using legacy GRUB, should I try that one now?  If I let it change me to GRUB2, assuming it will do that, will my SME Server still work fine?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #37 on: January 24, 2012, 12:06:41 AM »
NomadOfNorad

Stop using other tools, you are most likely just causing other problems or making your problem worse.

I suggest you put your disk back into the original server and ascertain it is working correctly there and advise us the outcome, before you experiment by doing other non standard things.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #38 on: January 24, 2012, 12:42:44 AM »
Okay, moved it back to the old machine.... and lo and behold it booted into the OS.

Now I need to order a new powersupply for it, and put up with frequent shutdowns until it arrives.  oO

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #39 on: January 24, 2012, 02:43:01 AM »
NomadOfNorad

Earlier you said:
Quote
Fairly likely this is due to a failing power supply.

Is the power supply really the problem ? Hoe did you determine that ?
What is the actual problem, how does it manifest itself.
Look in the messages log file for clues as to why the server is shutting down.
I would also disconnect any devices not really being used constantly eg the CD drive and any other drives eg floppy drive.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #40 on: January 24, 2012, 03:05:28 AM »
It simply shuts off suddenly.  Where are the message log files located?  Are they among the ones accessible from the web interface?

Actually, I'm pretty sure it's the power supply, because when it DOES shut off... the button on the front to tell the machine to turn back on doesn't work after it shuts off.  I have to physically unplug the machine and plug it back in, and THEN it restarts.

And bear in mind, that button does work the rest of the time.  Just not when the machine has spontaneously shut off.
« Last Edit: January 24, 2012, 03:20:21 AM by NomadOfNorad »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #41 on: January 24, 2012, 03:15:25 AM »
NomadOfNorad

Quote
It simply shuts off suddenly.

There can be many reasons for that happening, a faulty power supply is one possibility, a faulty motherboard is another etc.

You need to more specifically describe what "shuts off suddenly" means.
Does it mean the server is unresponsive or maybe it means the power on the server turns off completely (ie power lights go off), or something else ????

Quote
Where are the message log files located?  Are they among the ones accessible from the web interface?

Yes, but surely you did not need to ask that question.
Please read the Manual linked at top of forums.
I am referring to a log file specifically called messages, not to a general collection of message log files.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Moved drive to different machine, and now getting grub Error 15 at startup
« Reply #42 on: January 24, 2012, 06:32:58 AM »
The machine just suddenly, completely powers off, all at once. Lights, fan, everything.  And happens in less than a second.  I have the machine right here at the same desk I have my main machine, so there is no mistaking when it has shut off.

I had to replace the power supply once before, several years back, though I don't remember what prompted me to check it.  The power supply tester I have showed trouble-lights on that one, though, an indication that that one was going bad but hadn't failed yet.  I've just been too lazy to disconnect the current one from the mobo to tie it into the tester.

I just now came back from testing it, and the tester shows only one LED on when it is supposed to light all of them.  So, yeah, the power supply is definitely it.