SCIENTIFIC-LINUX-USERS Archives

December 2013

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Mon, 9 Dec 2013 20:20:21 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
On 12/09/2013 12:43 PM, Jeff Siddall wrote:
> On 12/09/2013 03:22 PM, ToddAndMargo wrote:
>> How would you mount this thing by label?  What is its label any
>> way?  Plus, the backup drives rotate (several drive).  I presume
>> I can not add the same label to each backup drive?
>
> For years this type of thing drove me nuts also.  LVM is your friend
> here (and in may other places also).  fstab is as simple as:
>
> /dev/VolGroup00/LogVol00 / ext4    defaults        1 1
>
> Of course you can be much more creative and use volume group and logical
> volume names that suit you.
>
> If you happen to have non-LVM partitions (boot for example) UUID can
> solve those too:
>
> UUID=2ed29516-67a5-46dd-9e13-ea82624822fc /boot         ext4    defaults
>         1 2
>
> If you need to find the UUID run blkid.  Took me a while to figure that
> out!
>

$ blkid
/dev/sdb1: UUID="cbc0edfb-8b07-4c3f-8db0-f4274075f239" TYPE="crypto_LUKS"
/dev/sda1: UUID="30e21302-cabb-42d0-9ba2-da72463853a5" TYPE="ext4"
/dev/sda2: UUID="948a228f-13ec-462e-9e9e-fa9b4c4bd2e0" TYPE="crypto_LUKS"
/dev/sda3: UUID="857c8618-2461-4dfc-b5bb-69949a804c6d" TYPE="crypto_LUKS"
/dev/mapper/luks-948a228f-13ec-462e-9e9e-fa9b4c4bd2e0: 
UUID="45e927e7-45d2-4363-bad1-fb91ea9dc992" TYPE="ext4"
/dev/mapper/luks-857c8618-2461-4dfc-b5bb-69949a804c6d: 
UUID="e863f1db-c86a-4e12-a2ee-d2528b52656c" TYPE="swap"
/dev/mapper/lin-bak: LABEL="lin-bak" 
UUID="ec7f0cec-e672-4ca3-8736-8b7e23b5ffc9" TYPE="ext4"


> But really, LVM is the best thing since sliced bread.  For example when
> you run backups (you do, right?)

I am obsessive.  That is what caused all this. The rotating
removable drives are for backup.  And there are several backup
sets on each removable drive.  Two other types of backup too.

> then you absolutely want to be running
> them against a snapshot rather than a live FS and LVM makes this easy.


Never really cared for LVM.  Always used the direct partition approach.


>
> Jeff
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2