Koozali.org: home of the SME Server

RUSH SME Server 7 boot problem after power surge -- GRUB !

Offline Snoopyski

  • *
  • 141
  • +0/-0
    • http://www.serviceinfosg.com
RUSH SME Server 7 boot problem after power surge -- GRUB !
« on: March 22, 2006, 02:33:15 PM »
Hello everyone,

See my error message above:

GRUB Loading stage1.5.

GRUB loading, please wait...
Error 2

Now I boot it with SME Server 7 CD-Rom in RESCUE mode and I type the following command:

fsck /dev/sda1

This command fsck on my partition /dev/sda1 give me this error:

Group descriptor look bas... Trying backup blocks...
Resize inode not valid. Recreate ?

What I need to answer ? Do I lost something ?

Thanks,

Snoopyski

ryan

RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #1 on: March 28, 2006, 11:44:06 PM »
Did this happen with or without a UPS?

As far as the repair, I would personally do an image backup of the server using ghost 4 linux before attempting to run any file or disk utility.

ryan

Offline byte

  • *
  • 2,183
  • +2/-0
Re: RUSH SME Server 7 boot problem after power surge -- GRUB
« Reply #2 on: March 29, 2006, 01:04:04 AM »
Quote from: "Snoopyski"
Hello everyone,
fsck /dev/sda1



The fsck is for ext2 filesystem in SME 7.0x we are using ext3, try running...

e2fsck /dev/sda1

Before have a read about e2fsck which can check both ext2 and ext3

HTH
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

whistleruk

RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #3 on: March 31, 2006, 01:02:38 PM »
Snoopyski you fix this problem? I'm having the same at the momment.

Offline haymann

  • *
  • 212
  • +0/-0
Re: RUSH SME Server 7 boot problem after power surge -- GRUB
« Reply #4 on: March 01, 2007, 09:52:26 PM »
Quote from: "Snoopyski"
GRUB Loading stage1.5.

GRUB loading, please wait...
Error 2
I just got the same error after trying to setup a USB hard disk. I don't know if the two events are related, but that is the only thing that changed...

I was trying to get smeserver-dar2 to be able to backup to a USB disk. I read in many places on this forum that USB disks are auto mounted and appear in /media/usbdisk. However on my server the only item that I had in the /media directory was labeled cdrecorder...

So following the promising looking How-to by dmay I looked at my message log and saw an entry similar to this:
Code: [Select]
fstab-sync[3298]: added mount point /media/cdrecorder for /dev/hddThe "3298" isn't the same number that I had, but I don't recall what it was...

I then tried the following from the how-to
Code: [Select]
dd if=/dev/zero of=/dev/hdd bs=512 count=63and the output I received was
Code: [Select]
63+0 records in
63+0 records out
just like the how-to indicated that I should. Continuing w/ the how-to I tried
Code: [Select]
fdisk /dev/hdd but got an error that said the drive was unreadable.

I searched the forum a little more and saw a some information about /etc/fstab (maybe from here...?) And so I modified my fstab to show /dev/hdd to /media/usbdisk instead of /media/cdrecorder, I can't remember exactly what the syntax that I changed was and I can't get to it now... I tried again to fdisk and it was still unreadable so I rebooted. Now I get the GRUB error...

I am looking to move all my data to a new server anyway, so as long as I can get to the data to save it, that will be fine. My server has 4 SATA drives in a RAID5 array.
I appreciate any assistance!!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: RUSH SME Server 7 boot problem after power surge -- GRUB
« Reply #5 on: March 02, 2007, 01:49:11 AM »
Quote from: "byte"
Quote from: "Snoopyski"
Hello everyone,
fsck /dev/sda1



The fsck is for ext2 filesystem in SME 7.0x we are using ext3, ...


Don't forget that we are also using RAID1 and we are also using LVM.

Quote

try running...

e2fsck /dev/sda1


I don't think that will be the correct thing to do. My file systems are on /dev/md1 and /dev/mapper/main-root, not /dev/sda1 etc.

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #6 on: March 02, 2007, 03:15:25 AM »
So would e2fsck /dev/md1 and/or e2fsck /dev/mapper/main-root work for a RAID5 setup?

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #7 on: March 02, 2007, 08:14:57 PM »
Trying a different approach then...

Does anyone know if I can use WinSCP to connect to a server in rescue mode? I enabled networking and have an IP address, but the connection is refused. If I can copy my data off this server, then I won't need to worry about grub anymore.
Thanks,
Ryan

Offline byte

  • *
  • 2,183
  • +2/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #8 on: March 02, 2007, 11:20:42 PM »
Quote from: "haymann"
but the connection is refused.


If your in rescue mode your ssh service wouldn't be running so you would need to issue at command line

/etc/rc7.d/S**sshd start

Where ** is a number
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #9 on: March 03, 2007, 01:18:50 AM »
Thank you for the help!!

I had to try
Code: [Select]
/etc/rc.d/rc7.d/S85sshd startbut I get
Code: [Select]
S85sshd: command not found :(

Did I miss something? I am not that proficient at Linux command line stuff yet..
Ryan

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #10 on: March 03, 2007, 04:25:25 AM »
OK so when I ran chroot /mnt/sysimage and then ran /etc/rc7.d/S85sshd start I get this
Code: [Select]
Starting sshd:runsvctrl: warning: /service/sshd/log: runsv not running.
runsvctrl: warning: /service/sshd: runsv not running.

It seems like I am getting closer...

Offline ldkeen

  • *
  • 403
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #11 on: March 03, 2007, 04:47:09 AM »
If you need to mount the old sme server 7.0 disk and get the data off it follow this procedure:

Boot from SME Server 7.1 install CD
press F5
type "sme rescue" at the command prompt and hit enter
Note: don't start the network and skip mounting the filesystem.
Rename the Volume Group so it doesn't conflict with your new setup
Code: [Select]
#mdadm -AR /dev/md5 /dev/sdb2
#lvm vgscan
#lvm vgs -v
#lvm vgchange -a n
#lvm vgrename orig_vg_name new_vg_name
#exit

Now remove the CD and reboot from a clean installed sme server 7.1 with the old drive attached as secondary slave or via usb caddy.
Code: [Select]
#mdadm -AR /dev/md5 /dev/sdb2
#vgscan
#vgchange -a y new_vg_name
#mkdir /mnt/tmp
#mount /dev/new_vg_name/root /mnt/tmp

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #12 on: March 03, 2007, 08:12:38 PM »
Quote from: "ldkeen"

Now remove the CD and reboot from a clean installed sme server 7.1 with the old drive attached as secondary slave or via usb caddy.
But I have a RAID 5 array... I'll need more than one of my old disks right?

Offline ldkeen

  • *
  • 403
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #13 on: March 04, 2007, 01:24:42 PM »
Hayman,
Did you try booting from the sme server CD in rescue mode and running grub-install??
Quote from: "hayman"
I'll need more than one of my old disks right?

Yes, you'll need at least n-1 (at least 2 of a 3 disk raid5) drives to be able to get the data from it.
Lloyd[/quote]

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #14 on: March 04, 2007, 03:21:36 PM »
Quote from: "ldkeen"
Hayman,
Did you try booting from the sme server CD in rescue mode and running grub-install??
No, I had not, but just did. I am sure this is pretty basic, but if I just run grub-install it tells me
Code: [Select]
install_device not specified
I just don't know where to point it...

In trying to get ssh to run I tried
Code: [Select]
/etc/init.d/sshd start and it says that ssh stated, but I still get connection refused errors... This is frustrating to have the data there, but not be able to transfer it to my new server.

Incidentally, the main reason that I am changing servers is to get away from RAID 5 and get to RAID 1... I wish I could just mount one drive in another machine and pull what I need  :(
Thank you for your continued help, I appreciate it!
Ryan