Greyhole installed twice

Barkus
Posts: 6
Joined: Sun Dec 30, 2012 9:06 pm

Greyhole installed twice

Postby Barkus » Sun Dec 30, 2012 9:21 pm

Not sure how, but my server got updated to Greyhole 0.9.26-3 (is there an auto-update, if so how do I disable it?), which started causing issues- the greyhole service and greyhole.so didn't exist among other things. Trying to reinstall 0.9.26-3 a second time didn't work because the install script kept failing. So I reverting back to 0.9.25-1 by running:

Code: Select all

rpm -Uvh --force http://www.greyhole.net/releases/rpm/x86_64/hda-greyhole-0.9.25-1.x86_64.rpm
It installed fine and this would fix the issue but only temporarily and then back to no service missing samba link.

Decided to run

Code: Select all

uname -r; rpm -q samba hda-greyhole
to see what version was running and found this

2.6.35.14-106.fc14.x86_64
samba-3.5.11-79.fc14.x86_64
hda-greyhole-0.9.25-1.x86_64
hda-greyhole-0.9.26-3.x86_64

How do I uninstall the second copy, hda-greyhole-0.9.26-3.x86_64?

Thanks.

TROUBLESHOOTING INFO:

samba.conf: http://fpaste.org/28dq/
greyhole.conf: http://fpaste.org/KhhC/

Mount:

Code: Select all

/dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) /dev/sda1 on /boot type ext4 (rw) /dev/sda5 on /var/hda/files type ext4 (rw) /dev/sda6 on /var/hda/files/media type ext4 (rw) /dev/sdb1 on /var/hda/drives/drive1 type ext4 (rw) /dev/sdc1 on /var/hda/drives/drive2 type ext4 (rw) /dev/sdd1 on /var/hda/drives/drive3 type ext4 (rw) /dev/sde1 on /var/hda/drives/drive4 type ext4 (rw) /dev/sdf1 on /var/hda/drives/drive5 type ext4 (rw) /dev/sdg1 on /var/hda/drives/drive6 type ext4 (rw) /dev/sdh1 on /var/hda/drives/drive7 type ext4 (rw) /dev/sdi1 on /var/hda/drives/drive8 type ext4 (rw) /dev/sdk1 on /var/hda/drives/drive9 type ext4 (rw) /dev/sdj1 on /var/hda/drives/drive10 type ext4 (rw) /dev/sdl1 on /var/hda/drives/drive11 type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fdisk -l

Code: Select all

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7b6f20a7 Device Boot Start End Blocks Id System /dev/sda1 * 2048 1026047 512000 83 Linux /dev/sda2 1026048 205826047 102400000 83 Linux /dev/sda3 205826048 209922047 2048000 82 Linux swap / Solaris /dev/sda4 209922048 1953523711 871800832 5 Extended /dev/sda5 209924096 721924095 256000000 83 Linux /dev/sda6 721926144 1953523711 615798784 83 Linux Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x6acf062c Device Boot Start End Blocks Id System /dev/sdb1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x96273669 Device Boot Start End Blocks Id System /dev/sdc1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7b6f20bb Device Boot Start End Blocks Id System /dev/sdd1 63 3907029167 1953514552+ 83 Linux Disk /dev/sde: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sde1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdf: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xf8cf7c9f Device Boot Start End Blocks Id System /dev/sdf1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdg: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x6c102885 Device Boot Start End Blocks Id System /dev/sdg1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdh: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdh1 63 3907029167 1953514552+ 83 Linux Disk /dev/sdi: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdi1 63 3907029167 1953514552+ 83 Linux WARNING: GPT (GUID Partition Table) detected on '/dev/sdj'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdj: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdj1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdk'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdk: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdk1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdl'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdl: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdl1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
df -h

Code: Select all

Filesystem Size Used Avail Use% Mounted on /dev/sda2 97G 5.9G 86G 7% / tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sda1 485M 48M 412M 11% /boot /dev/sda5 241G 1023M 228G 1% /var/hda/files /dev/sda6 579G 571G 8.1G 99% /var/hda/files/media /dev/sdb1 1.8T 1.8T 4.1G 100% /var/hda/drives/drive1 /dev/sdc1 1.8T 1.8T 22G 99% /var/hda/drives/drive2 /dev/sdd1 1.8T 1.8T 12G 100% /var/hda/drives/drive3 /dev/sde1 1.8T 1.8T 37G 98% /var/hda/drives/drive4 /dev/sdf1 1.8T 1.8T 7.9G 100% /var/hda/drives/drive5 /dev/sdg1 1.8T 1.8T 17G 100% /var/hda/drives/drive6 /dev/sdh1 1.8T 1.8T 21G 99% /var/hda/drives/drive7 /dev/sdi1 1.8T 1.8T 23G 99% /var/hda/drives/drive8 /dev/sdk1 2.7T 2.7T 21G 100% /var/hda/drives/drive9 /dev/sdj1 2.8T 493G 2.3T 18% /var/hda/drives/drive10 /dev/sdl1 2.8T 502G 2.3T 18% /var/hda/drives/drive11
greyhole --stats

Code: Select all

Greyhole Statistics =================== Storage Pool Total - Used = Free + Trash = Possible /var/hda/files/media/gh: 578G - 570G = 8G + 0G = 8G /var/hda/drives/drive1/gh: 1834G - 1830G = 4G + 0G = 4G /var/hda/drives/drive2/gh: 1834G - 1812G = 22G + 0G = 22G /var/hda/drives/drive3/gh: 1834G - 1822G = 11G + 0G = 11G /var/hda/drives/drive4/gh: 1834G - 1797G = 37G + 0G = 37G /var/hda/drives/drive5/gh: 1834G - 1826G = 8G + 1G = 9G /var/hda/drives/drive6/gh: 1834G - 1817G = 16G + 2G = 18G /var/hda/drives/drive7/gh: 1834G - 1813G = 21G + 0G = 21G /var/hda/drives/drive8/gh: 1834G - 1811G = 22G + 0G = 22G /var/hda/drives/drive9/gh: 2751G - 2730G = 20G + 0G = 20G /var/hda/drives/drive10/gh: 2794G - 492G = 2302G + 1G = 2303G /var/hda/drives/drive11/gh: 2794G - 501G = 2293G + 0G = 2293G ========================================== Total: 23587G - 18823G = 4765G + 4G = 4768G
​mysql -u root -phda -e "select * from disk_pool_partitions" hda_production​

Code: Select all

+----+-------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+-------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/files/media | 10 | 2012-04-07 02:40:44 | 2012-04-07 02:40:44 | | 2 | /var/hda/drives/drive1 | 10 | 2012-04-09 23:40:03 | 2012-04-09 23:40:03 | | 3 | /var/hda/drives/drive2 | 10 | 2012-04-11 17:10:46 | 2012-04-11 17:10:46 | | 4 | /var/hda/drives/drive3 | 10 | 2012-04-16 02:13:11 | 2012-04-16 02:13:11 | | 5 | /var/hda/drives/drive4 | 10 | 2012-04-18 23:56:21 | 2012-04-18 23:56:21 | | 6 | /var/hda/drives/drive5 | 10 | 2012-04-22 21:08:17 | 2012-04-22 21:08:17 | | 7 | /var/hda/drives/drive6 | 10 | 2012-04-25 15:16:08 | 2012-04-25 15:16:08 | | 8 | /var/hda/drives/drive7 | 10 | 2012-05-15 17:05:24 | 2012-05-15 17:05:24 | | 9 | /var/hda/drives/drive8 | 10 | 2012-05-15 17:05:25 | 2012-05-15 17:05:25 | | 10 | /var/hda/drives/drive9 | 10 | 2012-07-10 21:26:25 | 2012-07-10 21:26:25 | | 11 | /var/hda/drives/drive10 | 10 | 2012-11-30 01:21:22 | 2012-11-30 01:21:22 | | 12 | /var/hda/drives/drive11 | 10 | 2012-11-30 01:21:24 | 2012-11-30 01:21:24 | +----+-------------------------+--------------+---------------------+---------------------+
mysql -u root -phda -e "select concat(path, '/gh') from disk_pool_partitions" hda_production | grep -v 'concat(' | xargs ls -la | fpaste​
http://fpaste.org/HiyX/

Greyhole queue

Code: Select all

Greyhole Work Queue Statistics ============================== This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Check Books 0 0 0 0 Docs 0 0 0 0 Movies 0 0 0 0 Music 0 0 0 0 Pictures 0 0 0 0 Recorded TV 0 0 0 0 Software 0 0 0 0 Tim 0 0 0 0 =============================================== Total 0 0 0 0 Write Delete Rename Check The following is the number of pending operations that the Greyhole daemon still needs to parse. Until it does, the nature of those operations is unknown. Spooled operations that have been parsed will be listed above and disappear from the count below. Spooled 0
greyhole log

Code: Select all

Dec 30 23:18:49 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:00 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:10 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:20 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:30 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:40 7 sleep: Nothing to do... Sleeping. Dec 30 23:19:50 7 sleep: Nothing to do... Sleeping. Dec 30 23:20:00 7 sleep: Nothing to do... Sleeping. Dec 30 23:20:10 7 sleep: Nothing to do... Sleeping. Dec 30 23:20:20 7 sleep: Nothing to do... Sleeping.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Greyhole installed twice

Postby bigfoot65 » Mon Dec 31, 2012 8:31 am

If you added the Greyhole repo, then it will autoupdate. By default Amahi does not use the Greyhole repo just for that reason.

To remove the other version, as root user do:

Code: Select all

yum remove hda-greyhole-0.9.26-3.x86_64
That should do it, then restart Greyhole and check the version.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Barkus
Posts: 6
Joined: Sun Dec 30, 2012 9:06 pm

Re: Greyhole installed twice

Postby Barkus » Mon Dec 31, 2012 8:49 am

If you added the Greyhole repo, then it will autoupdate. By default Amahi does not use the Greyhole repo just for that reason.

To remove the other version, as root user do:

Code: Select all

yum remove hda-greyhole-0.9.26-3.x86_64
That should do it, then restart Greyhole and check the version.

Tried the above command but it was unsuccessful.

yum remove hda-greyhole-0.9.26-3.x86_64

Code: Select all

Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit Adding en_US to language list Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package hda-greyhole.x86_64 0:0.9.26-3 set to be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: hda-greyhole x86_64 0.9.26-3 @greyhole 375 k Transaction Summary ================================================================================ Remove 1 Package(s) Installed size: 375 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Error in PREUN scriptlet in rpm package hda-greyhole hda-greyhole-0.9.26-3.x86_64 was supposed to be removed but is not! Removed: hda-greyhole.x86_64 0:0.9.26-3 Complete!
uname -r; rpm -q samba hda-greyhole

Code: Select all

2.6.35.14-106.fc14.x86_64 samba-3.5.11-79.fc14.x86_64 hda-greyhole-0.9.25-1.x86_64 hda-greyhole-0.9.26-3.x86_64
However, you are right that I had added the greyhole repo, forgot about that. So I removed that (/etc/yum.repos.d/greyhole.repo), and now with the auto-updating issue fixed I went ahead and reinstalled 0.9.25-1 and that installed fine and got rid of the half-installed 0.9.26-3.

uname -r; rpm -q samba hda-greyhole

Code: Select all

2.6.35.14-106.fc14.x86_64 samba-3.5.11-79.fc14.x86_64 hda-greyhole-0.9.25-1.x86_64
So I believe that solved my issue.

Who is online

Users browsing this forum: Google Adsense [Bot] and 16 guests