Bug 695740 - swap partitions should be indicated by UUID
Summary: swap partitions should be indicated by UUID
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: David Lehman
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 670159 705163
TreeView+ depends on / blocked
 
Reported: 2011-04-12 14:51 UTC by Jan Stodola
Modified: 2011-12-06 10:32 UTC (History)
1 user (show)

Fixed In Version: anaconda-13.21.125-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 10:32:15 UTC
Target Upstream Version:


Attachments (Terms of Use)
screenshot of swap warning (204.00 KB, image/png)
2011-08-10 13:27 UTC, Alexander Todorov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1565 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2011-12-06 00:39:12 UTC

Description Jan Stodola 2011-04-12 14:51:20 UTC
Description of problem:
When creating a swap area on a raw partition, anaconda writes into /etc/fstab its device name:

[root@rtt4 ~]# grep swap /etc/fstab
/dev/sdb1               swap                    swap    defaults        0 0

It would be better to write UUID=.. there:

[root@rtt4 ~]# grep swap /etc/fstab
UUID=bc5dfbff-424d-46b6-b388-17c96e76f969    swap    swap    defaults     0 0


When the order of devices changes (sda <-> sdb), system boots without swap attached.


Version-Release number of selected component (if applicable):
RHEL6.1-20110406.0
anaconda-13.21.111-1.el6

How reproducible:
always

Steps to Reproduce:
1. run graphical installation
2. create custom partitioning with swap on a raw partition (for example /dev/sdb1)
3. finish the installation and check /etc/fstab
  
Actual results:
[root@rtt4 ~]# grep swap /etc/fstab
/dev/sdb1               swap                    swap    defaults        0 0

Expected results:
[root@rtt4 ~]# grep swap /etc/fstab
UUID=bc5dfbff-424d-46b6-b388-17c96e76f969     swap    swap  defaults     0 0

Comment 2 Jan Stodola 2011-04-15 10:10:44 UTC
Tested once more and this is more detailed reproducer:

1. install RHEL-5.7 on two zFCP LUNs, create a swap area on a plain partition (for example sdb2)
2. reboot into RHEL5 system, and run "blkid". The swap partition has no UUID defined:

[root@rtt5 ~]# blkid 
/dev/sdb2: LABEL="SWAP-sdb2" TYPE="swap" 
/dev/sdb1: LABEL="/" UUID="0627e41e-6ab7-44a9-aa30-6bf9a9b74dbf" TYPE="ext3" 
/dev/sda1: LABEL="/boot" UUID="2deb0960-f66d-4a65-8d0a-7b5172db94f6" TYPE="ext3"

3. start installation of RHEL-6.1
4. select custom partitioning, reuse existing partitions for / and /boot, but do not format the swap partition.
5. finish the installation, reboot system and check /etc/fstab

Comment 6 Alexander Todorov 2011-08-10 13:27:40 UTC
Created attachment 517598 [details]
screenshot of swap warning

In anaconda-13.21.126 there's a warning about swap partition not having UUID assigned.

Comment 7 errata-xmlrpc 2011-12-06 10:32:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1565.html


Note You need to log in before you can comment on or make changes to this bug.