Page 1 of 1

way to rebuild greyhole/fstab? multi-drive issues

Posted: Sun Jul 25, 2010 2:31 pm
by sgtfoo
I made a mistake while adding my last 1gb hdd (sdc1) to my storage pool. Iwas following the wiki (http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA).

In my attempts to fix, I ended up with a duplicate entry of my 1gb drive in the storage partitions, within the HDA GUI. Don't know how I did it.

Now my fstab and greyhole seem to be needing a rebuild.

I've got all the shares empty and need to "reset" greyhole, so to speak.

I'd like to re-add all the 3 partitions I have to the storage pool.
The /etc/fstab file mayneed to be rebuilt... I dunno.

Is there a way to do this?

It's also worth noting that I have a drive giving me the "bad sectors/ failing" warning. Would a reformat help it? How do I release it from the HDA so I can use gparted to re-format?

thanks all!

Loving my amahi server otherwise!

Re: way to rebuild greyhole/fstab? multi-drive issues

Posted: Mon Jul 26, 2010 2:57 am
by gboudreau
Execute the following, as root. This will give us the info we need to help you:

Code: Select all

yum -y install fpaste mount > /tmp/debug 2>&1 cat /etc/greyhole.conf >> /tmp/debug cat /etc/fstab >> /tmp/debug ls -l /dev/sd* >> /tmp/debug 2>&1 ls -lR /dev/disk >> /tmp/debug 2>&1 mysql -uroot -phda -e "select * from disk_pool_partitions" hda_production >> /tmp/debug 2>&1 fpaste /tmp/debug
If you get messages that the drive is failing, it probably is. If you include it in your storage, make sure you select at least 1 extra copies for each of your share, or you'll soon loose some files.
With 1+ extra copies on all shares, loosing just one drive won't loose any files.

Re-formatting it probably wouldn't help, but it can't hurt either.
I guess gparted want it unmounted?

Code: Select all

mount
This command will show you all your mounted partitions.
Find the one that needs to be unmounted, and use it's path in the following command:

Code: Select all

umount path_here
Example:

Code: Select all

umount /var/hda/files/drives/sdb1