One way to expand the storage on your Raspberry Pi is to connect it to a NAS over protocols like SMB, or NFS. Those are file sharing protocols. However the Raspberry Pi (and Linux) also support block level access to remote storage, using iSCSI. Here is a tutorial on how to connect your Pi to a NAS using iSCSI. HOWTO: 🤍github.com/garyexplains/examples/blob/master/how-to-connect-a-Raspberry-Pi-NAS-over-iSCSI.md How to Partition and Format a Disk in Linux: 🤍🤍youtube.com/watch?v=JCFlsslBvX8 Synology DS420j Review, Hands-on, and Setup Guide: 🤍🤍youtube.com/watch?v=7h5VsljvqkQ Synology NAS - Free Yourself From the Cloud: 🤍🤍youtube.com/watch?v=gIs9ypI-_kM Let Me Explain T-shirt: 🤍teespring.com/gary-explains-let-me-explain-2 Twitter: 🤍twitter.com/garyexplains Instagram: 🤍🤍instagram.com/garyexplains/ #garyexplains
Hi, I already followed those instructions wrt initator name edits. My R pi hung and is not restarting. This happened just when I was filling up the '.sh' file. I am not sure if it was because of editing the isci/initiatorname. Anyone else encounter this?
Love the background!
Very nice video, TNX.
Why greping using single pattern?
Why not grep 'scsi\|sd'
I use grep 'scsi\|sd\|ata' to show everything concerning drives
Not using basics of grep leads to nie being able to use sed and awk
I use sed on daily basis, usually to shorten my one-liners (which quickly becomes litany or rather prayer to not mess up)
iSCSI is great stuff for certain applications, but you need to be sure that the network connection is rock solid or you may end up with corruption. The underlying subsystems are intended for use with locally attached drives and are much less forgiving than network file protocols like SMB or NFS.
That’s cherry pie in the thumbnail…
@Gary Explains a better way to mount after boot-up by using a youtube.com/results?search_query=%23systemd #systemd service that ensures the network is already up? Credit to @ Chris Titus Tech (CTT) for the idea.... Apologies for any inappropriate fields and/or errors ...
## example systemd file
[Unit]
Description=Mount iSCSI drives on boot-up
Wants=network-online.target/ network-online.target
After=network-online.target/ network-online.target
[Mount]
What=/dev/sda1
Where=/iscsimnt
Type=ext4
Options=defaults,rw,noatime
[Install]
WantedBy=mutli-user.target/ mutli-user.target
You may want to change the file permissions for the /iscsimnt as it's owned by only root...
Was anybody else shouting 'lsblk" at the screen?
Q: can iscsi abuse cloud storage?
Sir speed test g latest. Many new phones are out now with new soc
I love this Gary.. thank you.
Well explained. Easy when you know how.(I didn't before!)
Hey there,
you did a small mistake: the initiatorname on the pi should not be changed! It's the name of the pi and not the targets name. The pi needs to have a unique iqn. I don't know DSM but if you have a look into the UI it should now show the client with the same iqn as the target. As stated before that might be problematic.
Other than that, great video, thank you very much! :)
Shouldn't that InitiatorName be unique so you can distinguish between different initiators? Now what would happen if you had multiple initiators with same name?
Also don't think you can specify multiple InitiatorNames in case you have multiple targets.
Genius.
Excellent as always. Thanks -
Actually Gary, you can put an fstab entry in there and then add "_netdev,x-systemd.requires=iscsi.service" to the mount options. At least assuming you are using Raspbian, as I am, and my system is using systemd. This is even better since the sleep either wastes time, or isn't long enough and then it won't work.
Otherwise great video. Only suggestion might be to give some suggestions how this could be useful. I can see some uses for sure, but a lot of people might be asking why do this over just using the Synology. But then again not everybody might run lots of Pi boards running different services and wanting to co-locate the data onto a single NAS/SAN.
Wow!! Very useful video not just for iscsi not just for the pi. I wanted to do something similar for nfs mounts and your info near the end helps me with that too. I'll experiment with iscsi on other devices. I'll setup an iscsi server on another linux device.
The reason it hangs on ip6 is you are using link local address space (fe80::). Though I do not recommend using those, they will work if you specify the interface for the address, IE. fe80::1%eth0