DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: David Christensen <dpchrist@holgerdanske.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS is written to a device with no partition table. Is it possible to add a partition table?
Date: Tue, 19 Apr 2016 21:14:24 -0700	[thread overview]
Message-ID: <57170220.20601@holgerdanske.com> (raw)
In-Reply-To: <CANJQ5C5qMZbamuJ+_CQn9gWW+orPuiZAN+y61jgW6QiYtUt+4A@mail.gmail.com>

On 04/19/2016 12:08 PM, Joe Hillenbrand wrote:
...
> I have a 12TB hardware RAID5 external hard drive array.

4 @ 4 TB HDD's?  What is the make/ model of external hard drive array? 
What is the make/ model of the drives?  What is/ are the interface(s) to 
your computer?


> I had initially planned to only ever encrypt data to the device, but now I
> need about half encrypted and half not.

2 @ 4 TB => 4 TB RAID1 and 2 @ 4 TB => 4 TB RAID1 encrypted?


> The device is `/dev/sdd`. It mounts as `fatty`.
>
> There is no partition table.
...
> As you can see LUKS starts at the first byte of the device.
>
> There is a btrfs filesystem on the LUKS device and I resized it down to 4TB.
...
> I can't really move the data anywhere, because it's too big and would
> require buying more hardware.
> Is it possible to add a partition table without losing the data?

A few years back I tried to be a cowboy and rearrange my large data 
without buying additional hardware.  I lost data.  I then bought enough 
hardware to implement daily backups with dual redundant copies:

1. I like large desktop HDD's for backups. If you use 8 TB HDD's for 
backups, 2 @ 4 TB RAID1's should fit onto one backup drive.

2. Mobile docks both protect the drives and make it easy to move the 
drives around (e.g. off-site rotation):

	https://www.startech.com/HDD/Mobile-Racks/Black-Serial-ATA-Drive-Drawer-with-Shock-Absorbers-Professional-Series~DRW115SATBK


I realize that's a big investment -- 420+ USD per drive plus rack.  My 3 
@ 3 TB drives with racks cost me ~800 USD.  It was worth it.


David

      parent reply	other threads:[~2016-04-20  4:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-19 19:08 [dm-crypt] LUKS is written to a device with no partition table. Is it possible to add a partition table? Joe Hillenbrand
2016-04-19 20:06 ` Arno Wagner
2016-04-19 20:20   ` Ralf Ramsauer
2016-04-19 21:15     ` Michael Kjörling
2016-04-19 20:14 ` Ralf Ramsauer
2016-04-19 21:02 ` Joe Hillenbrand
2016-04-20  2:28   ` f-dm-c
2016-04-20 19:26   ` Joe Hillenbrand
2016-04-20 19:43     ` Joe Hillenbrand
2016-04-20 19:54       ` Joe Hillenbrand
2016-04-21  2:54         ` David Christensen
2016-04-21  9:02         ` Arno Wagner
2016-04-20  4:14 ` David Christensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57170220.20601@holgerdanske.com \
    --to=dpchrist@holgerdanske.com \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox