Skip to contentSkip to conversation

Is My Data DESTROYED?!

DISCUSSION adfas asd 6 participants 11 messages Oct 26, 2009 – Oct 28, 2009 MD RAID

lore
Share & tools
lore

adfas asd

author
#0 lore raw

You know, I was worried that my main HTPC would be overloaded, with Myth commercial flagging, transcoding, and storage server operations like ssh encryption and checksumming.

But clearly storage server operations should be carried out by the storage server. This'll be a little qbox-f mini-ITX system in the garage in case of fire or theft. So I could iSCSI the HTPC's RAID0 volume to the storage server, hopefully through an SSH tunnel, and the storage server could merrily do the rsync, checksumming, and whatever operations, while the HTPC does its proper jobs. When not in use the storage server would sleep. Sure, the storage server will be just an Atom or Geode, but as long as its operations don't take more than 24 hours it's OK.

Quoted 17 lines · adfas asd

Thanks Doug, this was very
helpful. I had seen the checksum option, but sometimes something doesn't register as useful unless there is independent confirmation.

And understand that I am not 'shooting down' anything to be obstinate; I am testing and probing for the -best- solution and systems, and hoping something good pops out. Some of the sensitive will take offense, but I suggest that all benefit when we get substantive responses such as yours.

I had tried afio and cpio in the past, but frankly could not figure it out to use. Seems like a good concept. Maybe it's been made more accessible by now, or maybe I'm not as dumb. BTW, I am a real estate developer, not a coder.

#1 lore raw
Quoted 4 lines · adfas asd

You know, I was worried that my main HTPC would be overloaded, with Myth
commercial flagging, transcoding, and storage server operations like ssh encryption and checksumming.

Quoted 8 lines

But clearly storage server operations should be carried out by the storage
server. This'll be a little qbox-f mini-ITX system in the garage in case of fire or theft. So I could iSCSI the HTPC's RAID0 volume to the storage server, hopefully through an SSH tunnel, and the storage server could merrily do the rsync, checksumming, and whatever operations, while the HTPC does its proper jobs. When not in use the storage server would sleep. Sure, the storage server will be just an Atom or Geode, but as long as its operations don't take more than 24 hours it's OK.

Issue there, you can not mount a regular filesystem twice. Which is what this plan would entail. It'd be better if you just used rsync's native ssh support to log in and copy entire directory trees of data.

The initial copy will take a while, but rsync will only copy files that are new, or have changed by default, so subsequent rsync runs won't take very long over GbE at all.

on your backup box, you can just run:
rsync -a user@mythtvbox:/mnt/raid0 /mnt/backup

which tells rsync to copy all files under 'mythtvbox's /mnt/raid0 dir recursively to /mnt/backup keeping all metadata including access times and what not. (-a means archive, this way it will know when files have changed on the remote mythtv box)

hth.

Quoted 24 lines
Quoted 12 lines · adfas asd

Thanks Doug, this was very
helpful. I had seen the checksum option, but sometimes something doesn't register as useful unless there is independent confirmation.

And understand that I am not 'shooting down' anything to be obstinate; I am testing and probing for the -best- solution and systems, and hoping something good pops out. Some of the sensitive will take offense, but I suggest that all benefit when we get substantive responses such as yours.

Quoted 5 lines

I had tried afio and cpio in the past, but frankly could not figure it out to use. Seems like a good concept. Maybe it's been made more accessible by now, or maybe I'm not as dumb. BTW, I am a real estate developer, not a coder.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thomas Fjellstrom
[email protected]
author
#2 lore raw

Thanks. But what I have in mind is serving the HTPC's array (with videos)to the storage server via iSCSI. Hopefully the array can be mounted on the HTPS and still be served to the remote storage server by iSCSI?

Quoted 47 lines · Thomas Fjellstrom
Quoted 1 line · adfas asd

You know, I was worried that my main HTPC would be

overloaded, with Myth

Quoted 1 line

commercial flagging, transcoding, and storage

server operations like ssh

Quoted 3 lines

encryption and checksumming.

But clearly storage server operations should be

carried out by the storage

Quoted 1 line

server. This'll be a little qbox-f

mini-ITX system in the garage in case

Quoted 1 line

of fire or theft. So I could iSCSI the

HTPC's RAID0 volume to the storage

Quoted 1 line

server, hopefully through an SSH tunnel, and the

storage server could

Quoted 1 line

merrily do the rsync, checksumming, and whatever

operations, while the

Quoted 1 line

HTPC does its proper jobs. When not in use

the storage server would

Quoted 1 line

sleep. Sure, the storage server will be

just an Atom or Geode, but as

Quoted 1 line

long as its operations don't take more than 24

hours it's OK.

Issue there, you can not mount a regular filesystem twice. Which is what this
plan would entail. It'd be better if you just used rsync's native ssh support
to log in and copy entire directory trees of data.

The initial copy will take a while, but rsync will only copy files that are
new, or have changed by default, so subsequent rsync runs won't take very long
over GbE at all.

on your backup box, you can just run:
rsync -a user@mythtvbox:/mnt/raid0 /mnt/backup

which tells rsync to copy all files under 'mythtvbox's /mnt/raid0 dir
recursively to /mnt/backup keeping all metadata including access times and
what not. (-a means archive, this way it will know when files have changed on
the remote mythtv box)

#3 lore raw
Quoted 4 lines · adfas asd

Thanks. But what I have in mind is serving the HTPC's array (with videos)to the storage server via iSCSI. Hopefully the array can be mounted on the HTPS and still be served to the remote storage server by iSCSI?

No. You either mount the fs locally _or_ export it via iSCSI. You can't do both simultaneously. If you want to access the files from both locations, you have to use NFS or Samba (or a distributed file system, but that's IMHO way too complicated for your setup).

Gabor

Signature · 4 lines
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------
author
#4 lore raw
Quoted 8 lines · Gabor Gombas
Quoted 1 line

Thanks. But what I have in mind is serving the

HTPC's array (with

Quoted 1 line

videos)to the storage server via iSCSI.

Hopefully the array can be

Quoted 1 line

mounted on the HTPS and still be served to the remote

storage server

Quoted 1 line

by iSCSI?

Quoted 7 lines

No. You either mount the fs locally _or_ export it via iSCSI. You can't
do both simultaneously. If you want to access the files from both
locations, you have to use NFS or Samba (or a distributed file system,
but that's IMHO way too complicated for your setup).

Oh no. Well I don't see the point of iSCSI then.

I wouldn't even consider NFS or Samba because they are ancient bloatware. I gather from a prior post that rsync has a remote ssh function. If that's not the case then I guess it has to be sshfs.

#5 lore raw
Quoted 17 lines · adfas asd
Quoted 8 lines · Gabor Gombas
Quoted 1 line

Thanks.  But what I have in mind is serving the

HTPC's array (with

Quoted 1 line

videos)to the storage server via iSCSI.

Hopefully the array can be

Quoted 1 line

mounted on the HTPS and still be served to the remote

storage server

Quoted 1 line

by iSCSI?

Quoted 7 lines

No. You either mount the fs locally _or_ export it via iSCSI. You can't
do both simultaneously. If you want to access the files from both
locations, you have to use NFS or Samba (or a distributed file system,
but that's IMHO way too complicated for your setup).

Quoted 1 line

Oh no.  Well I don't see the point of iSCSI then.

iSCSI is a block level protocol while NFS and Samba work at the file level. They all have their specific uses and advantages / disadvantages.

Quoted 2 lines

I wouldn't even consider NFS or Samba because they are ancient bloatware.  I gather from a prior post that rsync has a remote ssh function.  If that's not the case then I guess it has to be sshfs.

No NFS and Samba are not ancient bloatware. What other protocol would you use for a company file server? Rsync and SSH are not replacements for group file sharing.

Just use rsync over SSH. Simple and reliable.

Quoted 9 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Ryan Wagoner

iSCSI is a block level protocol while NFS and Samba work at the file level. They all have their specific uses and advantages / disadvantages.

Quoted 1 line

I wouldn't even consider NFS or Samba because they are ancient bloatware. I gather from a prior post that rsync has a remote ssh function. If that's not the case then I guess it has to be sshfs.

No NFS and Samba are not ancient bloatware. What other protocol would you use for a company file server? Rsync and SSH are not replacements for group file sharing.

Just use rsync over SSH. Simple and reliable.

Openafs - http://www.openafs.org

MfG,
Lars Schimmer
- --
- ------------------------------------------------------------- TU Graz, Institut für ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405 E-Mail: [email protected]
Fax: +43 316 873-5402 PGP-Key-ID: 0x4A9B1723
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkroE/UACgkQmWhuE0qbFyMUrQCdHe0IWxN48CRSsaYtdHppuj2y gTkAoImQEOR10Cl20aQMPulrPCD4Yexp
=cs7w
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to adfas asd
Quoted 2 lines · adfas asd

Thanks. But what I have in mind is serving the HTPC's array (with videos)to the storage server via iSCSI. Hopefully the array can be mounted on the HTPS and still be served to the remote storage server by iSCSI?

One more time, if you mount the backup copy on the main server it will then be subject to the same failure issues as a mirror. You want to use something like rsync to backup over network, and the function of the backup server isn't going to be to serve other than in case of emergency. You don't want to serve, to mount, to do anything which will let filesystem, OS, or user errors propagate to the backup copy.

Other than the reliability issue if you mount, there's no reason to avoid things like NFS, they are well tested but not stagnant, getting significant upgrades a few years ago and regular minor glitch fixes for corner cases. In general cutting edge and reliable is not the most probable combination. While NFS is widely used and maintained, protocols like AFS, iSCSI and sshfs are used by fewer sites, and perhaps more experienced administrators, so perhaps they are less tested, particularly in the area of less than optimal setup.

Boring and uneventful is what you want in a backup system.

Signature · 2 lines
Bill Davidsen <[email protected]>
 Unintended results are the well-earned reward for incompetence.
author
#8 lore raw

You're not understanding.

I plan for the **storage server** to mount the RAID0 volume on the HTPC (shared), so the **storage server** can do all backup and checking operations. This should be a job for the storage server, not the HTPC. The HTPC should/will perform all video duties.

And NFS/Samba are out. O-U-T, OUT. Old-and-busted. Useful like a washboard. Many years ago I vowed that I would never learn two things: automatic transmissions, and NFS. I did learn and use Samba for some years, but now it is old-and-busted. sshfs has served me well over the past year and a half, under rigorous conditions. It is limited though by CPU consumption for encryption. This is why I will investigate clustering filesystems and FUSE options.

Quoted 27 lines · Bill Davidsen

One more time, if you mount the backup copy on the main server it will then be subject to the same failure issues as a mirror. You want to use something like rsync to backup over network, and the function of the backup server isn't going to be to serve other than in case of emergency. You don't want to serve, to mount, to do anything which will let filesystem, OS, or user errors propagate to the backup copy.

Other than the reliability issue if you mount, there's no reason to avoid things like NFS, they are well tested but not stagnant, getting significant upgrades a few years ago and regular minor glitch fixes for corner cases. In general cutting edge and reliable is not the most probable combination. While NFS is widely used and maintained, protocols like AFS, iSCSI and sshfs are used by fewer sites, and perhaps more experienced administrators, so perhaps they are less tested, particularly in the area of less than optimal setup.

Boring and uneventful is what you want in a backup system.

-- Bill Davidsen <[email protected]>
Unintended results are the well-earned reward for
incompetence.

#9 lore raw
Quoted 3 lines · adfas asd

You're not understanding.

I plan for the **storage server** to mount the RAID0 volume on the HTPC (shared), so the **storage server** can do all backup and checking operations.  This should be a job for the storage server, not the HTPC.  The HTPC should/will perform all video duties.

I think you are way over complicating this. NFS would do this with a single line

On the HTPC you add to /etc/exports the following line (replace things appropriately) and start nfs
/data 192.168.1.10 (rw,async,no_root_squash)

Then on the storage server mount the nfs export
mount htpc:/data /local/path

Quoted 35 lines

And NFS/Samba are out.  O-U-T, OUT.  Old-and-busted.  Useful like a washboard.  Many years ago I vowed that I would never learn two things:  automatic transmissions, and NFS.  I did learn and use Samba for some years, but now it is old-and-busted.  sshfs has served me well over the past year and a half, under rigorous conditions.  It is limited though by CPU consumption for encryption.  This is why I will investigate clustering filesystems and FUSE options.

Quoted 20 lines · Bill Davidsen

One more time, if you mount the backup copy on the main server it will then be subject to the same failure issues as a mirror. You want to use something like rsync to backup over network, and the function of the backup server isn't going to be to serve other than in case of emergency. You don't want to serve, to mount, to do anything which will let filesystem, OS, or user errors propagate to the backup copy.

Other than the reliability issue if you mount, there's no reason to avoid things like NFS, they are well tested but not stagnant, getting significant upgrades a few years ago and regular minor glitch fixes for corner cases. In general cutting edge and reliable is not the most probable combination. While NFS is widely used and maintained, protocols like AFS, iSCSI and sshfs are used by fewer sites, and perhaps more experienced administrators, so perhaps they are less tested, particularly in the area of less than optimal setup.

Quoted 7 lines

Boring and uneventful is what you want in a backup system.

-- Bill Davidsen <[email protected]> Unintended results are the well-earned reward for incompetence.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#10 lore raw
Quoted 2 lines · Ryan Wagoner

I think you are way over complicating this. NFS would do this with a single line

Well, with sshfs no lines/thinking allowed, assuming SSH is set up properly. Just in fstab:
sshfs#bill@hex:/ /media/hex fuse user,auto,gid=6,umask=007,cache=no,ServerAliveInterval=15,reconnect,allow_other,comment=sshfs 0 0
... and any remote disk is mounted automatically on boot, served through a military-grade encrypted tunnel. I have no time to learn all the security implications of NFS and pals.

I'm just trying to help the heathens...