way to rebuild greyhole/fstab? multi-drive issues

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

way to rebuild greyhole/fstab? multi-drive issues

Postby sgtfoo » Sun Jul 25, 2010 2:31 pm

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!
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Mon Jul 26, 2010 2:57 am

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
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 5 guests