Connect your Raspberry Pi to a NAS using iSCSI

9596
52
548
01.03.2022
Gary Explains

Gary Explains

25941031
268000
435
16.02.2018
US
Описание видео:

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

Кадры из видео
Connect your Raspberry Pi to a NAS using iSCSI
Connect your Raspberry Pi to a NAS using iSCSI
Connect your Raspberry Pi to a NAS using iSCSI
Connect your Raspberry Pi to a NAS using iSCSI
Тэги из видео
Комментарии пользователей:
Suhas Kashyap
2022-07-17 09:03:20

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?

Tom Legrady
2022-07-11 00:08:00

Love the background!

Nicola Dellino
2022-05-06 22:38:45

Very nice video, TNX.

WizardNumberNext
2022-03-28 21:24:24

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)

Beauregard Slim
2022-03-17 15:40:27

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.

Robbie B.
2022-03-17 08:25:19

That’s cherry pie in the thumbnail…

Adrian Teri
2022-03-08 10:09:25

@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...

Philip Thatcher
2022-03-06 09:33:25

Was anybody else shouting 'lsblk" at the screen?

Karen
2022-03-04 05:35:08

Q: can iscsi abuse cloud storage?

alok j.
2022-03-03 12:23:38

Sir speed test g latest. Many new phones are out now with new soc

Allwarappan Sundararaj
2022-03-03 03:48:51

I love this Gary.. thank you.

Dan Stocks
2022-03-02 22:41:56

Well explained. Easy when you know how.(I didn't before!)

Modzilla
2022-03-02 10:26:46

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! :)

or4n
2022-03-02 08:55:15

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.

Leigh Taylor
2022-03-02 00:13:20

Genius.

School for Hackers
2022-03-01 19:11:10

Excellent as always. Thanks -

Vinny Tube
2022-03-01 18:55:01

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.

Jeff Sadowski
2022-03-01 18:37:12

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.

Daniel Helgenberger
2022-03-01 18:33:30

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

Что ищут прямо сейчас
кандидоз лечение размеры рся vis pupa Koresh толпа реакция enemyimaginedragons китайские куры roblox video elvis pupa ASMR chewing gum роблокс магазин ПЧЕЛИ роблокс тайм санитайзер своими руками Roblox магнат магазин Карлик ERUDIS_PLAY kenshi воин как сделать улей улий улик пчелы делают мед гуф гуф
Похожие видео
25.06.2021
You need a NAS RIGHT NOW!! (How I run my Hybrid-Cloud YouTube business)

You need a NAS RIGHT NOW!! (How I run my Hybrid-Cloud YouTube business)

26.03.2021
Raspberry Pi vs ASUSTOR NAS Head-to-Head Part 1 - Hardware

Raspberry Pi vs ASUSTOR NAS Head-to-Head Part 1 - Hardware

14.02.2020
#312 Boot a Raspberry Pi4 with an SSD to make it reliable and fast

#312 Boot a Raspberry Pi4 with an SSD to make it reliable and fast

14.01.2021
Raspberry Pi versus AWS // How to host your website on the RPi4

Raspberry Pi versus AWS // How to host your website on the RPi4

02.04.2021
Raspberry Pi vs ASUSTOR NAS Head-to-Head Part 2 - the VERDICT!

Raspberry Pi vs ASUSTOR NAS Head-to-Head Part 2 - the VERDICT!

25.02.2021
Hardware RAID for the fastest Raspberry Pi CM4 NAS!

Hardware RAID for the fastest Raspberry Pi CM4 NAS!

27.01.2022
#UltimateHomeServer: Setting Up Netboot on your Raspberry Pi

#UltimateHomeServer: Setting Up Netboot on your Raspberry Pi

21.12.2021
Raspberry Pi vs ASUSTOR NAS – Round II

Raspberry Pi vs ASUSTOR NAS – Round II

14.04.2022
Arduino vs Pico - Which is the Best Microcontroller For You?

Arduino vs Pico - Which is the Best Microcontroller For You?

30.11.2021
4 Pis on a mini ITX board! The Turing Pi 2

4 Pis on a mini ITX board! The Turing Pi 2

02.10.2021
how to build a Raspberry Pi NAS (it’s AWESOME!!)

how to build a Raspberry Pi NAS (it’s AWESOME!!)

18.03.2021
NTFS vs FAT32 vs exFAT - Everything You Need To Know

NTFS vs FAT32 vs exFAT - Everything You Need To Know

11.12.2021
Your Old PC is Your New Server

Your Old PC is Your New Server

17.11.2021
The $5,000 Raspberry Pi server (Radxa Taco)

The $5,000 Raspberry Pi server (Radxa Taco)

09.02.2022
Simple Raspberry Pi setup without a Computer. Raspberry Pi Beta Bootloader.

Simple Raspberry Pi setup without a Computer. Raspberry Pi Beta Bootloader.

26.07.2022
Connect an SD Card to your Raspberry Pi Pico Microcontroller Board using SPI

Connect an SD Card to your Raspberry Pi Pico Microcontroller Board using SPI