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

Richard Freeman wrote:
> full redundancy on everything but swap (I could run swap on my RAID-5
> lvm partitions, but you take a performance hit there - and I don't care
> about a possible crash so much as the loss of lots of data).
> 

Ok, here is a question.  I am using encrypted swap, with a script that
creates a loopback off of my swap partition on each boot.

The problem is that if a drive fails and I reboot, the device name for
the drives will change.  My mkswap could potentially wipe out the wrong
partition in that case.

Now, I know that won't happen currently because my swap partitions have
higher partition numbers than any of my data partitions.  However, I'd
prefer to test for this possible condition.

Is there any way to get a unique identifier for a drive - such as a
UUID?  I see hdparm -i returns a serial number (which I'd need to parse
out), but it doesn't work for SATA drives.  Any ideas?  Then I could
test the drive's unique ID before I start wiping out partitions...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGoPOrG4/rWKZmVWkRAuraAJ4ulJpnWFYjW/0ISPXZGk4tKGAbpQCfbVUf
mFNEmoEx/KItJYnJzjXQs4Y=
=xv13
-----END PGP SIGNATURE-----

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to