Howdy,
Baring someone smarter than me figuring it out, I believe the USB logging under
UI6 is broken and cannot be enabled via the web interface. There are obvious typos in the scripts related to it, mistakes in terms of how the USB stick setup functions format the stick and incompatibilities with how the USB stick test/mount functions work.
For the brave who know how to use SSH, below are the commands to enable USB logging.
I AM NOT RESPONSIBLE IF YOU DAMAGE/BRICK YOUR VERA!
NOTES- This requires root ssh access to your vera. This is VERY DANGEROUS, even when you know what you are doing.
- You need to double check the device name of your stick (Step 3). If it's not /dev/sda, something is WRONG and you should reboot.
- Some commands can really brick your Vera (with 0% chance of recovery), so be exact and copy/paste and triple check before hitting ENTER!!!!
- The '#' below is not to be typed -- just indicates you type what follows at the '#' command prompt (in fact, if you type it, the command will not work/execute).
- The steps below will completely erase the USB stick, so make sure there is nothing you need on it
UPDATE Unfortunately, it turns out that this may not be worth the hassle. One presumed reason to have a USB stick for logging is to have longer logs from further back in time. But due to bugs in the scripts that manage the log, the limited support for larger logs when a USB stick is present doesn't work. Which means your log files are limited to about 5MB in size, regardless of where they live (internal flash or USB). Between all the obvious stuff broken for USB logging in UI6 and the nearly unfixable problems with USB logging in UI7, MCV clearly does not take USB logging at all seriously. It is so broken is so many places, some quite unfixable by end users, that its clear they have not bothered to test or look into any of this in a long, long time....
WARNING: For UI6 Systems ONLYThis is for fixing the USB logging under UI6. It appears that it is not fixing problems with UI7 and I do not have a UI7 system to test with.
Step By Step- Install USB stick and reboot Vera (especially if you've tried to enable USB Logging).
NOTE: You should have only ONE storage device plugged into the USB ports!! Having more than one will cause problems.
NOTE: Reboot it even if you think you know better -- seriously.
- Be 100% Sure Vera is NOT already using the stick for logging (even if it doesn't look like it is). Easiest way is to login and issue the command
# df -h
And see if /dev/sda1 is mounted on /tmp/log/cmh. If you don't see it, you're likely OK.
- Be 100% Sure your USB stick is /dev/sda. Use the command:
# dmesg | grep sda
and be sure you see a line like
sd 0:0:0:0: [sda] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
(actual numbers and size will vary, but the key is the '[sda]' part.
- Load USB support (usually not necessary, but harmless)
# /usr/bin/UsbStick.sh add_support
- Partition the USB stick (wipes everything and starts over)
NOTE: VERY DANGEROUS - BE SUPER CAREFUL AND TRIPLE CHECK BEFORE HITTING ENTER!!!!!!
Be especially aware of the quotes and number of commas (two in a row)
# echo ",,83" | sfdisk /dev/sda
- Format the partition (note: Case of "MiOS" **IS** important)
NOTE: VERY DANGEROUS - BE SUPER CAREFUL AND TRIPLE CHECK BEFORE HITTING ENTER!!!!!!
# mkfs.ext3 -m 0 -L MiOS /dev/sda1
NOTE: This can take a few minutes for larger sticks
- Execute this command to write the necessary mount commands into /etc/config/fstab
# /usr/bin/UsbStick.sh write_default_config
This modifies the /etc/config/fstab mount file.
- Reboot the Vera
- Verify logging should be enabled:
- You can go to Setup->Logs and it should show enabled
- You can ssh into Vera, execute "df -h" (no quotes) and see an entry for /dev/sda1
And you're done! Next time Vera rotates it's logs, they'll be written to the USB device.
NOTE: Heed the warnings about NEVER, EVER removing the USB stick while Vera is running!!