Persistent device names under Ubuntu Lucid LTS Server
winckler at campogeral.com.br
Fri Jan 14 01:00:39 UTC 2011
On Thu, Jan 13, 2011 at 5:07 PM, Joseph Salisbury
<joseph.salisbury at canonical.com> wrote:
> On 01/13/2011 12:32 PM, carlopmart wrote:
>> On 01/13/2011 06:14 PM, Joseph Salisbury wrote:
>>> On 01/13/2011 11:40 AM, carlopmart wrote:
>>>> Hi all,
>>>> How can I configure persistent name for an iscsi disk that i have
>>>> attached to an ubuntu lucid server??
> One option would be to use LVM2.
> Also, you could also refer to the UUID in the path:
> /dev/disk/by-uuid/UUID_FOR_ISCSI_VOLUME (Maybe eve create more
> understandable sym-links to these UUIDs).
> If you do that, you can modify your /etc/fstab file and replace the
> device name in the first column with the new persistent name. For
> example, replace /dev/sdaN with the following:
> This would be done for all the iSCSI volumes referenced in your fstab file.
> I believe you could also list the device in the fstab with
> UUID=UUID_FOR_ISCSI_VOLUME vs having the entire path. Something to test.
> Another option would be to use labels and replace the device name with:
> /dev/disk/by-label/LABLE_NAME or LABLE=LABLE_NAME.
Just my 2 cents:
I've been using file system labels for a long time now, both in Ubuntu
and CentOS. Works transparent.
More information about the ubuntu-server