pi-gen icon indicating copy to clipboard operation
pi-gen copied to clipboard

SSD not being used

Open DatLinuxGuy opened this issue 5 years ago • 13 comments

I have set up the PI with the ETH2 image. I had the 1tb SSD plugged in and waited for the setup etc. But it doesn't look have used the SSD in anyway. How can get it switched it over?

DatLinuxGuy avatar Jun 25 '20 17:06 DatLinuxGuy

I think I get the same issue, my sd card is full and for some reason I cannot mount the ssd on my linux machine, it error out

wighawag avatar Jun 27 '20 08:06 wighawag

I also could not see it mounted on the pi. how do we get the log of the setup process ?

wighawag avatar Jun 27 '20 08:06 wighawag

Hi,

Yes I'm afraid there is a bug with the disk formatting.

Can you try this image?

http://www.ethraspbian.com/downloads/ubuntu-20.04-preinstalled-server-arm64+raspi-eth2-onyx.img.zip

Note: This is only for Onyx (Prysm new testnet)

diglos avatar Jun 27 '20 08:06 diglos

I actually reflashed the same old image (using eth 1.0) with the only difference that I formated teh disk using ext4

this time I can see the disk mounted on the pi but only the swap file is present and I cannot access the dashboard on http://your_raspberrypi_IP:3000 and cannot see geth in the list of processes running.

So I guess I am hitting another error

wighawag avatar Jun 27 '20 10:06 wighawag

hmm after a while (maybe an hour) the dashboard get available but it fails with

Templating init failed
Bad Gateway

wighawag avatar Jun 27 '20 11:06 wighawag

hey @diglos thanks for making these images. I am running the Onyx image you linked earlier and the node is synced. Is there any documentation on how to continue setting up a validator client? (Could I continue with './prysm.sh validator accounts create' and follow prysmlabs instruction?) - Edit: For other beginners; Yes, one can run the command validator accounts create to create validator keypairs. Waiting for deposit to be observed by the beacon node now

RP4-8gb avatar Jun 27 '20 15:06 RP4-8gb

@diglos I tried the onyx image but while the ssd has a swap folder, I cannot connect to the dashboard and do not see geth or prism running

wighawag avatar Jun 27 '20 20:06 wighawag

ok after flashing again it worked. what is the indicator that tell you whether My node is synced on onyx. Is that the "slots behind" being equal to zero ?

wighawag avatar Jun 28 '20 08:06 wighawag

hey @diglos thanks for making these images. I am running the Onyx image you linked earlier and the node is synced. Is there any documentation on how to continue setting up a validator client? (Could I continue with './prysm.sh validator accounts create' and follow prysmlabs instruction?) - Edit: For other beginners; Yes, one can run the command validator accounts create to create validator keypairs. Waiting for deposit to be observed by the beacon node now

Please, see:

https://www.reddit.com/r/ethereum/comments/hhvi2r/ethereum_on_arm_new_eth20_raspberry_pi_4_image/

diglos avatar Jun 29 '20 11:06 diglos

ok after flashing again it worked. what is the indicator that tell you whether My node is synced on onyx. Is that the "slots behind" being equal to zero ?

Hi, you can see the beacon-chain progress through the console by running:

sudo tail -f /var/log/syslog

Look for "Processing block ..." strings, it has a counter.

diglos avatar Jun 29 '20 11:06 diglos

I had a similar issue. Here is what I had and how I solved it:

My external SSD disk can be seen with lsblk and fdisk -l but it is not being used nor is it mounted. Should I format/partition it first? If so, how should I do it in command line?

Here are some of those outputs

$ sudo lsblk -e7
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk
└─sda2        8:2    0 931.4G  0 part
mmcblk0     179:0    0  59.6G  0 disk
├─mmcblk0p1 179:1    0   256M  0 part /boot/firmware
└─mmcblk0p2 179:2    0  59.4G  0 part /
zram0       252:0    0    50M  0 disk
zram1       252:1    0   1.9G  0 disk [SWAP]
zram2       252:2    0   3.8G  0 disk /tmp
$ sudo fdisk -l
Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Crucial X8 SSD
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: FD8C7011-6A9B-40D1-8C38-668EE2A74A99

Device      Start        End    Sectors   Size Type
/dev/sda2  264192 1953523711 1953259520 931.4G Microsoft basic data

EDIT: Using parted, I was able to remove the existing partition on the external SSD, add a new partition as ext4, flash the SD card again with the provided image, restart the raspberry pi with the original image and it worked. /dev/sda1 is now mounted on /home. This might have been because the original partition on my external SSD was on number 2. In any case, thanks for your work.

remyroy avatar Oct 07 '20 19:10 remyroy

Same problem here, I used this image:

ubuntu-20.04-preinstalled-server-arm64+raspi-eth2.img.zip

Geth does not starts automatically, I had to launch it with:

sudo systemctl start geth && sudo systemctl enable geth

Once launced it does not saves data to the SSD drive but to the microSD card Is there any way to modify the config file in order to make it save to the SSD?

Or should I try with this image instead? http://www.ethraspbian.com/downloads/ubuntu-20.04-preinstalled-server-arm64+raspi-eth2-onyx.img.zip

Thanks for the support and for your amazing repo

DiegoDDT avatar Dec 15 '20 09:12 DiegoDDT

i am not sure my node runs properly:

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-1034-raspi aarch64)

  • Documentation: https://help.ubuntu.com
  • Management: https://landscape.canonical.com
  • Support: https://ubuntu.com/advantage

System information as of Thu May 6 09:10:55 UTC 2021

System load: 0.0 Temperature: 45.3 C Usage of /: 10.2% of 28.95GB Processes: 137 Memory usage: 7% Users logged in: 1 Swap usage: 0% IPv4 address for eth0: 192.168.0.157

  • Pure upstream Kubernetes 1.21, smallest, simplest cluster ops!

    https://microk8s.io/

9 updates can be applied immediately. To see these additional updates run: apt list --upgradable

Last login: Thu May 6 08:14:59 2021 from 192.168.0.139 ethereum@ethnode-4c4e87048:~$ sudo tail -f /var/log/syslog [sudo] password for ethereum: May 6 08:12:49 ethnode-4c4e87048 systemd[2126]: Reached target Sockets. May 6 08:12:49 ethnode-4c4e87048 systemd[2126]: Reached target Basic System. May 6 08:12:49 ethnode-4c4e87048 systemd[2126]: Reached target Main User Target. May 6 08:12:49 ethnode-4c4e87048 systemd[2126]: Startup finished in 823ms. May 6 08:12:49 ethnode-4c4e87048 systemd[1]: Started User Manager for UID 1001. May 6 08:12:49 ethnode-4c4e87048 systemd[1]: Started Session 1 of user ethereum. May 6 08:14:58 ethnode-4c4e87048 systemd[1]: Started Session 3 of user ethereum. May 6 08:17:01 ethnode-4c4e87048 CRON[2234]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) May 6 09:10:39 ethnode-4c4e87048 systemd[1]: session-3.scope: Succeeded. May 6 09:10:55 ethnode-4c4e87048 systemd[1]: Started Session 5 of user ethereum.

can someone confirm it's syncing as planned? where can i see when its fully synced

Thank You

image

brwab avatar May 06 '21 09:05 brwab