how to completely disable greyhole

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

how to completely disable greyhole

Postby moredruid » Sat Aug 28, 2010 6:30 am

Since I don't want Greyhole and probably never will (I manage my storage with LVM) I want to completely disable greyhole. I don't want to introduce another layer of unnecessary disk I/O to my system.

steps I took to disable greyhole:
chkconfig greyhole off
remove /etc/monit.d/greyhole.conf
service monit restart
service greyhole stop

Is that sufficient?

Can I remove the greyhole package too or is that not really necessary?
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

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

Re: how to completely disable greyhole

Postby gboudreau » Sat Aug 28, 2010 6:56 am

I think hda-platform depends on hda-greyhole, so you won't be able to remove hda-greyhole without loosing hda-platform too.

What you did is enough. You stopped the greyhole daemon, and since you didn't enable 'Uses pool' on any share, the Greyhole VFS module for Samba is not used at all.
- Guillaume Boudreau

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: how to completely disable greyhole

Postby moredruid » Sat Aug 28, 2010 7:03 am

OK thx :)
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

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

Re: how to completely disable greyhole

Postby radioz » Wed Sep 29, 2010 11:14 am

I want to do a similar thing (turn off greyhole), but I noticed that greyhole.conf is automatically generated.

Does anyone know what command generates the greyhole.conf file? I want to make sure that it is not re-generated again.

Thanks

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

Re: how to completely disable greyhole

Postby gboudreau » Wed Sep 29, 2010 11:22 am

hda-platform regenerates this file, when something changes in shares / storage pool.
You'd have to manually modify the platform to stop that, and your changes would be overwritten on the next hda-platform update.
- Guillaume Boudreau

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

Re: how to completely disable greyhole

Postby radioz » Wed Sep 29, 2010 12:03 pm

hda-platform regenerates this file, when something changes in shares / storage pool.
You'd have to manually modify the platform to stop that, and your changes would be overwritten on the next hda-platform update.
What would be the cleanest way to disable greyhole if I might later want to re-enable it?

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

Re: how to completely disable greyhole

Postby gboudreau » Wed Sep 29, 2010 12:23 pm

Uncheck start on boot and watchdog in the dashboard Settings > Servers page, then click Stop.

You can check it's disabled:

Code: Select all

chkconfig --list greyhole
should show all 'off'

Code: Select all

ls -l /etc/monit.d/greyhole*
should return no such file.

Code: Select all

service greyhole status
should say it's stopped.
- Guillaume Boudreau

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

Re: how to completely disable greyhole

Postby radioz » Wed Sep 29, 2010 5:10 pm

Thanks, that took care of it!

Now I know how to re-enable it when I need it.

[The only minor issue I have is that the green 'running' indicator is still visible even though greyhole has been stopped. I would assume that it should change to some other color. Is this a bug?]

Who is online

Users browsing this forum: No registered users and 59 guests