Author Topic: Vera extroot  (Read 3097 times)

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #30 on: January 17, 2019, 02:32:49 pm »
Not
Hi there

I have had Vera email alerts on various devices which have been working well for the last couple of years. Lately they have been very delayed ie by hours and sometimes even doubling up.

Any suggestions?

Not sure how it relates to this thread. You might want to start a new topic. It sounds like the mios servers are having issues.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #31 on: January 22, 2019, 10:06:05 pm »
I edited the first post so as to have the latest version and eliminated all the other versions of the script so there is no confusion.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline calinutz

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Vera extroot
« Reply #32 on: February 06, 2019, 08:17:22 am »
Will this work with a powered usb hub, that hosts the ssd drive and a rfxtrx433.

A step by step tutorial to achieve this would be greatly appreciated.

Thank you.
Cal.

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #33 on: February 06, 2019, 10:46:45 am »
The USB hub and other devices make no difference to the process. The tutorial is very simple:

Upload the file on the vera and execute it.
If you struggle with this see this thread. http://forum.micasaverde.com/index.php/topic,119206.45.html post 57 from a member who also just learned how to access the vera file system and execute programs on it.
« Last Edit: February 06, 2019, 10:59:39 am by rafale77 »
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline calinutz

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Vera extroot
« Reply #34 on: February 07, 2019, 12:42:33 pm »
Thank you very much rafale77 for pointing me in the right direction. i've followed the tut linked above, but i think i'm doing something something wrong, as i end up with the storage space in the mnt/sda2 instead of the rootfs.

I'm on FW. 1.7.4001 if it matters.

Code: [Select]
Filesystem                Size      Used Available Use% Mounted on
rootfs                    8.6M      5.2M      3.5M  60% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M    372.0K    124.4M   0% /tmp
/dev/mtdblock6            8.6M      5.2M      3.5M  60% /overlay
overlayfs:/overlay        8.6M      5.2M      3.5M  60% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               487.8M      2.6M    455.6M   1% /tmp/log/cmh
/dev/sda2                13.5G     79.5M     12.7G   1% /mnt/sda2
/dev/mtdblock10          50.0M     12.1M     37.9M  24% /storage
/dev/mtdblock10          50.0M     12.1M     37.9M  24% /etc/cmh-firmware
/dev/mtdblock10          50.0M     12.1M     37.9M  24% /etc/cmh-backup
/dev/mtdblock9           10.0M     10.0M         0 100% /mios
« Last Edit: February 08, 2019, 02:38:26 am by calinutz »

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #35 on: February 08, 2019, 06:44:19 am »
It looks like the drive was setup properly but the vera failed to pivot it's rootfs partition to the usb drive.
There is variability it seems depending on the hardware one uses in terms of how fast the drive is ready and mounted during the startup.
Just to be sure, can you try to do a "nano /etc/config/fstab" and paste what you see on the screen? (Type ctrl X to exit afterwards). I want to make sure the fstab is correct.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline calinutz

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Vera extroot
« Reply #36 on: February 08, 2019, 08:17:37 am »
well, it is a usb thumb drive that i'm trying to use, does it take longer to mount it than it would take to mount a ssd ? i thought it was just the data read/write speed that was different.

here's my fstab:

Code: [Select]
config global
        option anon_swap '0'
        option anon_mount '1'
        option auto_swap '1'
        option auto_mount '1'
        option delay_root '5'
        option check_fs '0'

config mount
        option target '/tmp/log/cmh'
        option device '/dev/sda1'
        option fstype 'ext3'
        option options 'rw,noatime,nodiratime,errors=continue,data=ordered'
        option enabled_fdisk '1'
        option enabled_mkfs '1'
        option enabled_fsck '1'
        option label 'MiOS'
        option fssize '512'
                               [ Read 45 lines ]

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #37 on: February 08, 2019, 08:48:27 am »
Well your fstab did not get modified at all so no wonder it won't pivot. It does not look like you ran the script.

I also strongly recommend against using a USB thumb drive. These are low endurance NAND flash which will fail very quickly if written on frequently and have no mechanism for wear leveling. It would be worse than using the onboard flash on the vera.

Are you sure you ran the script? "./extroot.sh" uploading the file on the vera?
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline calinutz

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Vera extroot
« Reply #38 on: February 08, 2019, 10:22:48 am »
a ssd would definitely require more power than a thumb drive, and it's a bit of a struggle to get a new cable to the vera to power the usb hub. i'll have to figure that out somehow, without drilling any walls/ceilings/floors.
anyways, i've ordered a ssd and it's on it's way, but it will take a few days to receive it, so i'm just trying to keep busy in the meanwhile.

here's the last part of the output when i run the script:

Code: [Select]
../www/cmh/G550_delete.txt
./www/upnp/
./www/upnp/vera.xml
./www/favicon.ico
./www/luaupnp.xml
./www/wizard/
./.ssh/
./.ssh/known_hosts
./dataMine/
./dataMine/database/
./.zigbee_fw_upgraded
./storage/
./typescript
./mios_constants.sh
cfg124d78
cfg134d78
cfg144d78
/dev/mtdblock5: UUID="7da747e6-4ed89c8d-0dc86410-f064d4b6" VERSION="1024.0" TYPE="squashfs"
/dev/mtdblock6: TYPE="jffs2"
/dev/mtdblock9: UUID="770098d3-12cfc857-8a9e7bf0-5b1a00de" VERSION="1024.0" TYPE="squashfs"
/dev/sda1: UUID="bbe2c7cb-1ac6-4a08-bb49-290b175154da" LABEL="MiOS" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext3"
/dev/sda2: UUID="bbdf7d47-b7cc-454f-b730-f7c25a55c3f1" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"
root@MiOS_50100775:/storage#


and it's still the same (not pivoted).


-later edit-
now this is odd...
i haven't done anything else but running the script again, and this time it worked:
Code: [Select]
/storage$ df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   13.5G     86.3M     12.7G   1% /
/dev/root                10.0M     10.0M         0 100% /rom
tmpfs                   124.8M      1.6M    123.1M   1% /tmp
/dev/sda2                13.5G     86.3M     12.7G   1% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               487.8M     16.0M    442.2M   4% /mnt/sda1
/dev/mtdblock10          50.0M      2.2M     47.8M   4% /storage
/dev/mtdblock10          50.0M      2.2M     47.8M   4% /etc/cmh-firmware
/dev/mtdblock10          50.0M      2.2M     47.8M   4% /etc/cmh-backup
/dev/mtdblock9           10.0M     10.0M         0 100% /mios
« Last Edit: February 08, 2019, 10:29:15 am by calinutz »

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #39 on: February 08, 2019, 11:25:47 am »
It did! Congratulations!
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Online Catman

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +8/-0
Re: Vera extroot
« Reply #40 on: February 08, 2019, 03:11:06 pm »
A 2.5" SSD drive should run quite happily from the Vera's USB port

C

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #41 on: February 08, 2019, 10:37:44 pm »
A 2.5" SSD drive should run quite happily from the Vera's USB port

C

Yes these usually do not consume enough power to be a problem. There is a spike current when you plug some in which may cause the vera to reboot though (SSD draws too much current for a short time causing the CPU not to have enough power so it shuts off). So what you want to do is to have it plugged in before you start the vera. If like me, for testing you have to plug and unplug the SSD frequently then use a powered hub. That's how I went around the problem.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline korttoma

  • Hero Member
  • *****
  • Posts: 719
  • Karma: +26/-5
Re: Vera extroot
« Reply #42 on: February 09, 2019, 01:34:54 am »
Anyone tried this extroot on a Veralite?

@rafale77 is the script compatible with the Veralite?

I have a USB SATA adapter on the way, just need to pick up an SSD drive.
- Tomas

Offline rafale77

  • Community Beta
  • Hero Member
  • ******
  • Posts: 1681
  • Karma: +91/-27
  • HA ≠ IoT as a blue sky is cloudless.
Re: Vera extroot
« Reply #43 on: February 09, 2019, 01:48:26 am »
The script will be slightly different because of the older OS. I will get you one when you'll be ready to test it out.
openLuup (78 devices, 141 scenes, 19 apps) master to VeraPlus (142 zwave nodes, 8 Zigbee nodes, 221 devices,  20 scenes , 2 apps) +  Hubitat (15 Zigbee nodes) + Home-Assistant (API Integrations). Bridged to Siri and Alexa. Homewave. VeraPlus ExtRooted and mios server independent.

Offline calinutz

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: Vera extroot
« Reply #44 on: February 10, 2019, 06:22:41 am »
A 2.5" SSD drive should run quite happily from the Vera's USB port

C

I already have a rfxtrx433e on the USB port, so that would be:

rfxtrx433e - 45 mA
ssd drive - 307 mA
TOTAL------352 mA

the standard USB 2.0 output is 500mA, so it shoult be ok with a 352mA consumption.
anyways, that's from the tech spec sheets. i'll see how it goes in real world and report back.

rafale77 and Catman thank you so much for this. Vera's Achilles' heel is the storage. Putting aside it is so small that i't almost useless, that's what usually goes wrong and renders the unit broken beyond repair; the storage getting corrupted, or reaching the end of read/write cycles. So this extroot trick is pure gold.