Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Snoopyski 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
-
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
-
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
-
Snoopyski you fix this problem? I'm having the same at the momment.
-
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 (http://mirror.contribs.org/smeserver/contribs//dmay/smeserver/7.x/smeserver-usb-disk-howto.htm) by dmay I looked at my message log and saw an entry similar to this:fstab-sync[3298]: added mount point /media/cdrecorder for /dev/hdd
The "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 dd if=/dev/zero of=/dev/hdd bs=512 count=63
and the output I received was 63+0 records in
63+0 records out
just like the how-to indicated that I should. Continuing w/ the how-to I tried 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...? (http://forums.contribs.org/index.php?topic=34987.0)) 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!!
-
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.
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.
-
So would e2fsck /dev/md1 and/or e2fsck /dev/mapper/main-root work for a RAID5 setup?
-
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
-
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
-
Thank you for the help!!
I had to try/etc/rc.d/rc7.d/S85sshd start
but I getS85sshd: command not found
:(
Did I miss something? I am not that proficient at Linux command line stuff yet..
Ryan
-
OK so when I ran chroot /mnt/sysimage and then ran /etc/rc7.d/S85sshd start I get this
Starting sshd:runsvctrl: warning: /service/sshd/log: runsv not running.
runsvctrl: warning: /service/sshd: runsv not running.
It seems like I am getting closer...
-
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
#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.
#mdadm -AR /dev/md5 /dev/sdb2
#vgscan
#vgchange -a y new_vg_name
#mkdir /mnt/tmp
#mount /dev/new_vg_name/root /mnt/tmp
-
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?
-
Hayman,
Did you try booting from the sme server CD in rescue mode and running grub-install??
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]
-
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 meinstall_device not specified
I just don't know where to point it...
In trying to get ssh to run I tried /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
-
The command should be
grub-install /dev/sda
-
The command should be
grub-install /dev/sda
Format of install_device not recognized.
:?
How about this? I have connected a USB drive to the server that won't boot, anyone know how I can access it in rescue mode so I can copy my files to it? I see that rescue mode loads a USB storage driver, but I don't know how to access the disk...
I still don"t understand why I can't get ssh going correctly, I can ping the non-booting server, but I can't connect using Putty or WinSCP :?
-
Hayman,
To fix the grub problem up, try this:
Boot into rescue mode from the installation CD and choose the option to mount the filesystem.
then do:
#chroot /mnt/sysimage
then edit /etc/mtab and change the mount point for /boot from /dev/md1 to /dev/sda1
the run:
#grub-install /dev/sda
Lloyd
-
Thanks Idkeen,
I don't have access to the server today, but I'll try that the next time I am on site. Thanks again for the suggestions.
Ryan
-
Ok, I was able to stop by for a moment and was successfully able to modify /etc/mtab to point /boot to /dev/sda1. I then ran grub-install /dev/sda and I never got the prompt back... I didn't get any errors, and I was able to type characters, etc...; but I never got a prompt back. After waiting several minutes and not seeing any HD activity and seeing nothing from the console, I hit the reset switch (as I couldn't exit gracefully), pulled the CD and the server booted to a grub prompt.
I had to leave then, but I don't know if that is what I was supposed to accomplish or not... Looks like Grub is installed, but I still don't know how to get it to continue to boot. I will continue to search for answers, but would appreciate any pointers!
Thanks,
Ryan
Edit: I forgot to mention that I tried using boot at the grub prompt, but I received an error that said something to the effect that the kernel need to be loaded or couldn't be found... I then ran out of time, but will be back there this evening I hope.
-
I tried again and let it sit longer and finally got a message that said grub was installed. When I rebooted though it hangs at the checking filesystems stage...
Checking filesystems
/dev/md1: Resize inode not valid.
/dev/md1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
***An error occurred during the file system check
***Dropping you to a shell; the system will reboot
***when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):
I enter my password and get(Repair filesystem) 1 #
Any suggestions?
Ryan
-
Ryan,
Check to make sure that /dev/md1 is mounted by typing mount at the prompt, then try:
(Repair filesystem) 1 #fsck /dev/md1
and see what happens?
Lloyd
-
Idkeen, I thank you so much for your assistance! I was very nervous about most of this as I had no backup, but it seems that everything is still here!!
:pint: This one is for you!
Ryan
-
Ryan
That's great, Sorry I forgot to mention that grub-install takes along time.
BTW you asked how to access the usb disk from rescue mode, for future reference:
Boot sme rescue and mount the filesystem
#chroot /mnt/sysimage
#modprobe usb-storage
(check dmesg to find the device ID ie /dev/sdd etc)
#mknod /dev/sdd b 8 48
#mknod /dev/sdd1 b 8 49
#mknod /dev/sdd2 b 8 50
.... and so on
NOTE: The numbers are important. The first is always 8, the second starts at a multiple of 16
(ie sda is 0, sdb is 16, sdc is 32, sdd is 48 etc) and the numbered devices go up incrementally from there.
You should find your usb disk located in /media so mount it using the following:
#mount /media/CORSAIR (replace CORSAIR with your device name)
Lloyd