|
|
(17 intermediate revisions by the same user not shown) |
Line 3: |
Line 3: |
| | | |
| = General Linux/HDA Commands = | | = General Linux/HDA Commands = |
− | Fedora | + | Fedora (root user) |
| <table border="1"> | | <table border="1"> |
| <tr> | | <tr> |
Line 10: |
Line 10: |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td>service httpd start</td> | + | <td>systemctl restart httpd.service</td> |
| <td>restart web server</td> | | <td>restart web server</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td>yum -y update</td> | + | <td>dnf -y update</td> |
− | <td>automatically update fedora</td> | + | <td>automatically update Fedora</td> |
− | </tr>
| |
− | <tr>
| |
− | <td>rpm -Uvh http://dl.getdropbox.com/u/364883/Amahi/hda-platform-*.*-*.noarch.rpm</td>
| |
− | <td>updates HDA</td>
| |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 26: |
Line 22: |
| </tr> | | </tr> |
| </table><br /> | | </table><br /> |
− | * Ubuntu
| + | Ubuntu (precede with sudo) |
| <table border="1"> | | <table border="1"> |
| <tr> | | <tr> |
Line 33: |
Line 29: |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td>service apache2 start</td> | + | <td>service apache2 restart</td> |
| <td>restart web server</td> | | <td>restart web server</td> |
| </tr> | | </tr> |
Line 43: |
Line 39: |
| | | |
| = HDA Script Commands = | | = HDA Script Commands = |
| + | |
| + | '''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory. |
| + | |
| <table border="1"> | | <table border="1"> |
| <tr> | | <tr> |
Line 58: |
Line 57: |
| </table> | | </table> |
| | | |
− | '''NOTE:''' Must be run from the '''''/var/hda/platform/html/script''''' directory.
| |
| | | |
| + | '''NOTE:''' Can be run from anywhere (located in '''/usr/bin'''). |
| | | |
| <table border="1"> | | <table border="1"> |
Line 80: |
Line 79: |
| </tr> | | </tr> |
| <tr> | | <tr> |
− | <td>hda-create-db-and-user</td> | + | <td>[[Application_Install_Scripts#hda-create-db-and-user utility script|hda-create-db-and-user]]</td> |
− | <td>create MySql user and database</td> | + | <td>create MariaDB user and database</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td>hda-new-install</td> | | <td>hda-new-install</td> |
− | <td>manual install for Amahi</td> | + | <td>DEPRECATED</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 103: |
Line 102: |
| </tr> | | </tr> |
| <tr><td>hda-install</td> | | <tr><td>hda-install</td> |
− | <td>deprecated - use amahi-installer</tr> | + | <td>Amahi 7 or greater ONLY</tr> |
| <tr><td>hda-install-file</td> | | <tr><td>hda-install-file</td> |
| <td>SYSTEM USE ONLY</td> | | <td>SYSTEM USE ONLY</td> |
Line 125: |
Line 124: |
| | | |
| </table> | | </table> |
− |
| |
− | '''NOTE:''' Can be run from anywhere (located in '''/usr/bin''').
| |
| | | |
| = Miscellaneous = | | = Miscellaneous = |
Line 141: |
Line 138: |
| <td>nscd -i hosts</td> | | <td>nscd -i hosts</td> |
| <td>Clear DNS cache on HDA</td> | | <td>Clear DNS cache on HDA</td> |
| + | </tr> |
| + | <tr> |
| + | <td>[[Application_Install_Scripts#The amahi-download utility script|amahi-download]]</td> |
| + | <td>similar to wget, but uses SHA1</td> |
| </tr> | | </tr> |
| </table><br /> | | </table><br /> |
− |
| |
− | = Greyhole (0.9.2)=
| |
− |
| |
− | '''NOTE:''' This is the official version installed by default in Amahi 6, Fedora 14.
| |
− |
| |
− | Use just "greyhole" in a Terminal to get the list, since those could change in the future. Currently, they are:<br>
| |
− |
| |
− | Usage: greyhole [ACTION] [OPTIONS]
| |
− |
| |
− | Where ACTION is one of:
| |
− | -?, --help Display this help and exit.
| |
− | -D, --daemon Start the daemon.
| |
− | -f, --fsck Schedule a fsck.
| |
− | -C, --cancel-fsck Cancel all scheduled fsck.
| |
− | -l, --balance Balance available space on storage pool devices.
| |
− | -s, --stats Display storage pool statistics.
| |
− | -S, --status Display what the Greyhole daemon is currently doing.
| |
− | -q, --view-queue Display the current work queue.
| |
− | -a, --empty-attic Empty the attic.
| |
− | -b, --debug=filename Debug past file operations.
| |
− | -p, --prerotate Pre-rotate task (for logrotate).
| |
− | -P, --postrotate Post-rotate task (for logrotate).
| |
− | -t, --thaw[=path] Thaw a frozen directory. Greyhole will start working on
| |
− | files inside <path>. If you don't supply an option, the list
| |
− | of frozen directories will be displayed.
| |
− | -w, --wait-for[=path] Tell Greyhole that the missing drive at <path> will return
| |
− | soon, and that it shouldn't re-create additional file copies
| |
− | to replace it. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− | -g, --gone[=path] Tell Greyhole that the missing drive at <path> is gone for
| |
− | good. Greyhole will start replacing the missing file copies
| |
− | instantly. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− | -n, --going[=path] Tell Greyhole that you want to remove a drive. Greyhole will
| |
− | then make sure you don't loose any files, and that the
| |
− | correct number of file copies are created to replace the
| |
− | missing drive. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− |
| |
− | For --fsck, the available OPTIONS are:
| |
− | -e, --email-report Send an email when fsck completes, to report on what was
| |
− | checked, and any error that was found.
| |
− | -y, --dont-walk-graveyard
| |
− | Speed up fsck by skipping the scan of the graveyard
| |
− | directories. Scanning the graveyards is only required to
| |
− | re-create symbolic links that might be missing from your
| |
− | shared directories.
| |
− | -c, --if-conf-changed Only fsck if greyhole.conf or smb.conf paths changed since
| |
− | the last fsck.
| |
− | Used in the daily cron to prevent unneccesary fsck runs.
| |
− | -d, --dir=path Only scan a specific directory, and all sub-directories.
| |
− | The specified directory should be a Samba share, a
| |
− | sub-directory of a Samba share, a share directory
| |
− | on a storage pool volume, or a sub-directory of
| |
− | of a share on a storage pool volume.
| |
− | -o, --find-orphaned-files
| |
− | Scan for orphaned files in the storage pool volumes
| |
− | while running the fsck and create tombstones for
| |
− | the found files.
| |
− |
| |
− | = Greyhole (0.9.31)=
| |
− |
| |
− | '''NOTE:''' Upgrade to the latest version is not automatic and must be performed manually. See [[Greyhole_updating|Updating Greyhole]] for guidance.
| |
− |
| |
− | Usage: greyhole [ACTION] [OPTIONS]
| |
− |
| |
− | Where ACTION is one of:
| |
− | -?, --help Display this help and exit.
| |
− | -D, --daemon Start the daemon.
| |
− | -P, --pause Pause the daemon.
| |
− | -R, --resume Resume a paused daemon.
| |
− | -f, --fsck Schedule a fsck.
| |
− | -C, --cancel-fsck Cancel any ongoing or scheduled fsck operations.
| |
− | -l, --balance Balance available space on storage pool drives.
| |
− | -B, --cancel-balance Cancel any ongoing or scheduled balance operations.
| |
− | -s, --stats Display storage pool statistics.
| |
− | -i, --iostat I/O statistices for your storage pool drives.
| |
− | -L, --logs Display new greyhole.log entries as they are logged.
| |
− | -S, --status Display what the Greyhole daemon is currently doing.
| |
− | -q, --view-queue Display the current work queue.
| |
− | -a, --empty-trash Empty the trash.
| |
− | -b, --debug=filename Debug past file operations.
| |
− | -t, --thaw[=path] Thaw a frozen directory. Greyhole will start working on
| |
− | files inside <path>. If you don't supply an option, the list
| |
− | of frozen directories will be displayed.
| |
− | -w, --wait-for[=path] Tell Greyhole that the missing drive at <path> will return
| |
− | soon, and that it shouldn't re-create additional file copies
| |
− | to replace it. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− | -g, --gone[=path] Tell Greyhole that the missing drive at <path> is gone for
| |
− | good. Greyhole will start replacing the missing file copies
| |
− | instantly. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− | -n, --going[=path] Tell Greyhole that you want to remove a drive. Greyhole will
| |
− | then make sure you don't loose any files, and that the
| |
− | correct number of file copies are created to replace the
| |
− | missing drive. If you don't supply an option, the available
| |
− | options (paths) will be displayed.
| |
− | -r, --replace[=path] Tell Greyhole that you replaced the drive at <path>.
| |
− | -X, --fix-symlinks Try to find a good file copy to point to for all broken
| |
− | symlinks found on your shares.
| |
− | -p, --delete-metadata<=path>
| |
− | Delete all metadata files for <path>, which should be a
| |
− | share name, followed by the path to a file that is gone
| |
− | from your storage pool.
| |
− | -U, --remove-share<=share_name>
| |
− | Move the files currently inside the specified share from the
| |
− | storage pool into the shared folder (landing zone),
| |
− | effectively removing the share from Greyhole's storage pool.
| |
− |
| |
− | For --stats and --view-queue, the available OPTIONS are:
| |
− | -j, --json Output the result as JSON, instead of human-readable text.
| |
− |
| |
− | For --fsck, the available OPTIONS are:
| |
− | -e, --email-report Send an email when fsck completes, to report on what was
| |
− | checked, and any error that was found.
| |
− | -y, --dont-walk-metadata-store
| |
− | Speed up fsck by skipping the scan of the metadata store
| |
− | directories. Scanning the metadata stores is only required to
| |
− | re-create symbolic links that might be missing from your
| |
− | shared directories.
| |
− | -c, --if-conf-changed Only fsck if greyhole.conf or smb.conf paths changed since
| |
− | the last fsck.
| |
− | Used in the daily cron to prevent unneccesary fsck runs.
| |
− | -d, --dir=path Only scan a specific directory, and all sub-directories.
| |
− | The specified directory should be a Samba share, a
| |
− | sub-directory of a Samba share, or any directory on a
| |
− | storage pool drive.
| |
− | -o, --find-orphaned-files
| |
− | Scan for files with no metadata in the storage pool drives.
| |
− | This will allow you to include existing files on a drive
| |
− | in your storage pool without having to copy them manually.
| |
− | -k, --checksums Read ALL files in your storage pool, and check that
| |
− | file copies are identical. This will identify any problem
| |
− | you might have with your file-systems.
| |
− | NOTE: this can take a LONG time to complete, since it will read
| |
− | everything from all your drives!
| |
− | -m, --delete-orphaned-metadata
| |
− | When fsck find metadata files with no file copies, delete those
| |
− | metadata files. If the file copies re-appear later, you'll need
| |
− | to run fsck with --find-orphaned-files to have them reappear in
| |
− | your shares.
| |