cannot restart after adding 4th hard drive to greyhole pool

paurey
Posts: 25
Joined: Mon Apr 18, 2011 12:50 pm

cannot restart after adding 4th hard drive to greyhole pool

Postby paurey » Mon Aug 15, 2011 1:58 pm

Hello

I purchased a PCI card with 4 SATA ports in order to add my 5th HD (i.e. my 4th in the storage pool as I am using one only for Fedora).

When adding the last drive, something strange happended when I followed wiki instructions, as this drive (sde) should not have been mounted by default, and for some reason it was.... The thing is that I followed the instructions on the wiki but when I restarted my system I got an errer during file system check. The system is unable to mount the last drive I added in /etc/fstab/, and sends me to the terminal. But there is more, I actually cannot access the terminal as there is a strange error:
bash: cannot set terminal process group (-1): inappropriate ioctl for device
bash: no job control in this shell
(Repair filesystem) 1 #
I am stuck here as I don't manage to access the terminal.

I have some Linux background but that was long time ago. I am now rediscovering the potential of it. I still need to learn a lot. Any help or advice would be helpful. Otherwise the only option I am now considering is a full reinstall of Fedora.
Thanks!!

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby radioz » Mon Aug 15, 2011 4:30 pm

Try shutting down the system and removing your new drive.

Bring the system back up. Is everything ok?

If so, post the output of fstab:
cat /etc/fstab

also the output of:
mount

Which wiki instructions were you following?

paurey
Posts: 25
Joined: Mon Apr 18, 2011 12:50 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby paurey » Mon Aug 15, 2011 11:19 pm

Thanks I tried that already and had the same error. I eve tried to remove the last two drives: sdd and sde.

The wiki instructions I was refering to where these:

http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

thanks

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby radioz » Tue Aug 16, 2011 10:05 am

Well, we need some more detailed information if you want some help.

So with the new drive removed, the system fails to boot?

From the command prompt that comes up, can you display the contents of /etc/fstab?
(cat /etc/fstab)

Do you see any error messages displayed while it boots up?

Can you tell which drive might be failing? (/dev/sdx?)

Did you configure your system to use Greyhole?

paurey
Posts: 25
Joined: Mon Apr 18, 2011 12:50 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby paurey » Tue Aug 16, 2011 10:26 am

Well, we need some more detailed information if you want some help.

So with the new drive removed, the system fails to boot?

From the command prompt that comes up, can you display the contents of /etc/fstab?
(cat /etc/fstab)

Do you see any error messages displayed while it boots up?

Can you tell which drive might be failing? (/dev/sdx?)

Did you configure your system to use Greyhole?
Yes, the system fails to boot.

I cannot access the command prompt, that is the first problem actually. This is what I see after typing SU password.


bash: cannot set terminal process group (-1): inappropriate ioctl for device
bash: no job control in this shell
(Repair filesystem) 1 #


I think what is failing is /dev/sde, and I configured it to use Greyhole pool. But still, even removing the drive I get the same message.

Thanks

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby radioz » Tue Aug 16, 2011 12:03 pm

At this point I would boot up the system using a liveCD and look at some of the configuration files.

Just about any Linux live cd would work. I would recommend http://www.sysresccd.org/Main_Page if you don't already have one. Download it and burn it on a different pc and then boot your Amahi system from it.

Once booted, mount your OS hard drive (presumably /dev/sda) so you can examine configuration files.
We're interested in looking at /etc/fstab.
The bottom of /var/log/messages might show error messages related to the problem.

It sounds to me like there is a problem with the greyhole configuration. Unfortunately, I'm not familiar with greyhole. Perhaps someone else can chime in with help here.

paurey
Posts: 25
Joined: Mon Apr 18, 2011 12:50 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby paurey » Wed Aug 17, 2011 11:11 am

Thank you!
I managed to access the system hard drive and /etc/fstab with the liveCD you recommended.
I just had to hide the last two lines (2 drives I added recently) and the system re-started normally.
I wonder what I did wrong...

At this point, I want to add dirve 4 and 5 (sdd and sde) to the server and of course, greyhole pool.

I will try again following wiki instructions, but just in case you see something wrong, I post here /etc/fstab.

Code: Select all

# # /etc/fstab # Created by anaconda on Fri Jun 10 19:52:16 2011 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/vg_servidorf-lv_root / ext4 defaults 1 1 UUID=65dc6d6c-4192-435e-86fc-408360e7fe66 /boot ext4 defaults 1 2 /dev/mapper/vg_servidorf-lv_home /home ext4 defaults 1 2 /dev/mapper/vg_servidorf-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 UUID=b2370ff8-9deb-42b0-a35c-c31830efd25c /var/hda/files ext4 defaults 1 2 UUID=83514598-6eb1-4e17-89e8-82eb7b4f4b3f /var/hda/files/drives/drive3 ext4 defaults 1 2 #UUID=de56a5b8-ef4d-42d9-ae8b-930817cf0418 /var/hda/files/drives/drive4 ext4 defaults 1 2 #UUID=a2be6d8d-53a2-4d48-959f-b2a0d384403b /var/hda/files/drives/drive5 ext4 defaults 1 2

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: cannot restart after adding 4th hard drive to greyhole p

Postby radioz » Wed Aug 17, 2011 2:29 pm

I'm glad you could get the live cd working.

Do you have data on your drives you need to preserve?
If so, I wouldn't mess around with anything else until you get your data backed up somewhere. Messing around with drive configurations can be risky and I wouldn't want to see you loose important data.

I don't see anything obviously wrong. I'm afraid I can't help with Greyhole since I don't use it on my system.
Hopefully someone else can offer some suggestions.

Good luck

Who is online

Users browsing this forum: No registered users and 6 guests