Opened 18 years ago

Closed 18 years ago

#87 closed defect (fixed)

LABEL= swap does not come online after mondorestore

Reported by: Bill R. Williams Owned by: Bruno Cornec
Priority: normal Milestone: 2.2.1
Component: mondo Version: 2.2.0
Severity: normal Keywords:


Versions: mondo-2.2.0-2.rhel4 mindi-1.2.0-2.rhel4 On mondoarchive the swap area defined in /etc/fstab as:

LABEL=SWAP-hda2 swap swap defaults 0 0

now gets correctly identified as a swap space (partition).

Test restore/clone: I used boot->mondorestore CD, Automatic, From CD-R and everything ran smoothly to completion of restore with result=0. mondorestore DOES correctly allocate the /dev/hda2 and looking at mondo-restore.log I see that it is doing a 'mkswap /dev/hda2'. The message in the log is: "Setting up swapspace version 1, size = ..."

However, after reboot (single user) the swap space is not active. I do a: swapon -a and it fails because it cannot find the LABEL=SWAP-hda2 device.

I discovered that I needed to do:

mkswap -L 'SWAP-hda2' /dev/hda2

to make the 'swapon -a' work with my current /etc/fstab. (It's the only command I know to label swap space.)

In previous version of mondo/mindi I had been modifying the /etc/fstab to change the swap from a LABEL=... to the standard /dev/hdX (or sdX), and that might be the best choice. However, since there is the attempt by mondo/mindi to deal with Red Hat LABELed swap areas I thought I sould at least share my findings at this version.

Change History (2)

comment:1 by Bruno Cornec, 18 years ago

Milestone: 2.2.1
Status: newassigned

comment:2 by Bruno Cornec, 18 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in rev [901] Will be in 2.2.1

Note: See TracTickets for help on using tickets.