LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-10-2017, 11:58 AM   #1
ServerDude
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
Unhappy Centos 6.8 failed reboot hosted dedicated server


I bought/rent a dedicated server from nocix with Centos 6.8 installed, also came with 2 hard drives
Code:
sda - 128GB SSD
&
Code:
sdb - 2TB HDD
and I think I made a mistake by partitioning the second drive
Code:
/dev/sdb
so I now have
Code:
/dev/sdb1
which I mounted to a folder called
Code:
/newdrive
then transferred all files in a user directory called
Code:
/home1
and deleted all files in
Code:
/home1
then mounted the drive to
Code:
/home1
but when I rebooted I lost the ability to connect via SSH, I contacted nocix and they said I had to reload with the SystemRescueCd.

I did that and have been reading/following the steps outlined here: https://www.system-rescue-cd.org/Sys...a-damaged-Grub

See the below error messages I got when I ran
Code:
grub-install /dev/sda
Code:
df: Warning: cannot read table of mounted file systems: No such file or directory df: Warning: cannot read table of mounted file systems: No such file or directory Could not find device for /boot: Not found or not a block device.
I am very new to this so I'm not sure what to do.. It's also quite urgent as the websites this server is hosting are down because of I can't get it back online.

See my partitions below. I've got 2 drives sda and sdb. loop0 is the linux installation and sda1 is the boot drive.

Code:
[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN]
[loop0           ] [squashfs   ] [<unknown>        ] [   275.14 MB] [  7] [  0]
[sda1            ] [ext2       ] [<unknown>        ] [   250.00 MB] [  8] [  1]
[sda2            ] [LVM2_member] [<unknown>        ] [   119.00 GB] [  8] [  2]
[sdb1            ] [ext3       ] [/userdata        ] [     1.82 TB] [  8] [ 17]
[dm-0            ] [ext4       ] [<unknown>        ] [   110.25 GB] [253] [  0]
[dm-1            ] [ext4       ] [<unknown>        ] [     1.00 GB] [253] [  1]
[dm-2            ] [swap       ] [<unknown>        ] [     7.72 GB] [253] [  2]

Output of
Code:
vgscan
Code:
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  Reading all physical volumes.  This may take a while...
  Found volume group "vg" using metadata type lvm2
And output of
Code:
lvscan
Code:
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  ACTIVE            '/dev/vg/root' [110.25 GiB] inherit
  ACTIVE            '/dev/vg/tmp' [1.00 GiB] inherit
  ACTIVE            '/dev/vg/swap' [7.72 GiB] inherit
 
Old 01-10-2017, 05:05 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Not sure what way to tell you to go exactly.

Generally I say get data off that is important to start before you mess it up more. Get a usb drive and copy the system maybe if you are sure you can do that safely.


Not sure I'd have used systemrescue cd exactly. Guess you could try a fedora or other RH based live media of similar kernel level to use.

Didn't get the ssh part. You do have full physical access don't you? I assume you did something to the users that messed up ssh access is my guess.

Your lvm complaint is that you need to start lvm services isn't it? lvmetad I think has some config setting for 0 or 1 maybe.

After you messed with grub you may end up just taking data off and putting on recovery image. Not sure why that company didn't ship you recovery media with system.
 
Old 01-10-2017, 10:08 PM   #3
ServerDude
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
Not sure what way to tell you to go exactly.

Generally I say get data off that is important to start before you mess it up more. Get a usb drive and copy the system maybe if you are sure you can do that safely.


Not sure I'd have used systemrescue cd exactly. Guess you could try a fedora or other RH based live media of similar kernel level to use.

Didn't get the ssh part. You do have full physical access don't you? I assume you did something to the users that messed up ssh access is my guess.

Your lvm complaint is that you need to start lvm services isn't it? lvmetad I think has some config setting for 0 or 1 maybe.

After you messed with grub you may end up just taking data off and putting on recovery image. Not sure why that company didn't ship you recovery media with system.
I don't have physical access, it's a hosted dedicated server, I have a control panel where I get the login credentials and schedule OS reloads etc. One of the reloads is the sysrcd which boots from memory and preserves the hard drives. I am able to FTP in on the sysrcd as root and mount the drives in a putty terminal to make a backup.

I did change the hostname in /etc/hosts and also in /etc/sysconfig/network just before reboot if that may be the cause?
 
Old 01-11-2017, 04:14 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
When I had a leased off site system they had a way to re-image the system from menu. I'd still start with getting the data off that you like.

FTP working is a good sign. Kind of removes the hostname issue.

So, are they saying that you have boot remotely using some image? Do they offer the system rescue image?

Last edited by jefro; 01-11-2017 at 04:16 PM.
 
  


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
CentOS 6, server failed to reboot with incorrect entry in /etc/fstab babybear Linux - Newbie 1 08-19-2016 07:25 PM
[SOLVED] install file made on home pc in my hosted centos server ssoldne Linux - Server 1 07-09-2016 12:54 AM
Dedicated Server with CentOS 4.x and DNS Xoleum Linux - Newbie 3 09-10-2005 02:48 PM
Which version best for remotely hosted dedicated server? birwin Linux - Distributions 4 03-02-2004 10:55 PM
Which version best for remotely hosted dedicated server? birwin Linux - Software 0 03-02-2004 09:14 PM

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

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