tips_and_tricks
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tips_and_tricks [2018/02/20 17:39] – created jrseti | tips_and_tricks [2023/10/28 18:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===Tips and Tricks=== | + | ====Tips and Tricks==== |
| - | ====USB disks go stale==== | + | ==USB disks go stale== |
| - | oSometimes USB disks go stale after a time of non use. The trick it to tell the disks not to do that. Write a little script and run it as root: | + | |
| - | for i in / | + | Sometimes USB disks go stale after a time of non use. This was happening a lot on churn1, but also on other computers occasionally. The trick it to tell the disks not to do that. Write a little script and run it as root: |
| + | for i in / | ||
| for foo in / | for foo in / | ||
| + | | ||
| + | ==Samba== | ||
| + | |||
| + | Restart: "sudo / | ||
| + | |||
| + | Conf file: "/ | ||
| + | |||
| + | Example disk config: | ||
| + | |||
| + | [bigdisk1] | ||
| + | path = /bigdisk1 | ||
| + | valid users = sonata | ||
| + | read only = no | ||
| + | | ||
| + | [bigdisk2] | ||
| + | path = /bigdisk2 | ||
| + | valid users = sonata | ||
| + | read only = no | ||
| + | | ||
| + | [bigdisk3] | ||
| + | path = /bigdisk3 | ||
| + | valid users = sonata | ||
| + | read only = no | ||
| + | | ||
| + | [sonata20160730-20180110] | ||
| + | path = / | ||
| + | valid users = sonata | ||
| + | read only = yes | ||
| + | |||
| + | ==List samba disks== | ||
| + | |||
| + | smbtree | ||
| + | |||
| + | example: | ||
| + | |||
| + | root@bserve1:/ | ||
| + | Enter root's password: | ||
| + | WORKGROUP | ||
| + | \\BSERVE1 | ||
| + | \\BSERVE1\IPC$ | ||
| + | \\BSERVE1\sonata20160730-20180110 | ||
| + | \\BSERVE1\bigdisk3 | ||
| + | \\BSERVE1\bigdisk2 | ||
| + | \\BSERVE1\bigdisk1 | ||
| + | \\BSERVE1\print$ | ||
| + | |||
| + | |||
| + | ==STORE1== | ||
| + | |||
| + | Early August Daniel set up the 90TB RAID5 disk system. | ||
| + | |||
| + | /etc/fstab entry: | ||
| + | // | ||
| + | | ||
| + | The / | ||
| + | |||
| + | [store1] | ||
| + | comment = store1' | ||
| + | path = /datax | ||
| + | guest ok = yes | ||
| + | writeable = yes | ||
| + | write list = sonata, root | ||
| + | valid users = sonata | ||
| + | read only = no | ||
| + | create mode = 0777 | ||
| + | force create mode = 0777 | ||
| + | directory mask = 0777 | ||
| + | force directory mode = 0777 | ||
tips_and_tricks.1519148385.txt.gz · Last modified: 2023/10/28 18:36 (external edit)