10.04 LiveCD (USB-ified with usb-creator) decided to use an existing HDD partition for swap.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I'm not entirely sure where the culprit is... but the behaviour is entirely unacceptable.
Background: Fixing a RAID5 system that has had a disk go bad/out of sync. It wasn't booting, there was some filesystem corruption.
All five drives were partitioned into two partitions, and RAID set up over both: md0 = /dev/sd?1 and md1 = /dev/sd?2
(All partitions were marked linux-raid-
Made a bootable USB (10.04 Desktop edition, usb-creator) so I could swap out the CD drive for a big HDD and dump a quick backup onto it. (System has only 6 SATA ports and 5 were taken by the array).
Booted. Launched terminal. Installed mdadm via aptitude. Fired up Firefox for reference.
Tried to assemble the array. (mdadm --assemble /dev/md1 /dev/sd?2)
Got "device or resource is busy" error on /dev/sde2 from mdadm.
Ran "fuser" to see what was using it. Turns out it was the kernel, for swap.
!!! RAGE !!!
((Then swapoff -a and frantic recovery attempts since one drive was already bad. :( We'll see if I get an okay backup off this or not.))
I have NO idea why linux decided to do this. Will update with more info as I get it.
Random additional thoughts:
- the contents of the raid: md0 = boot; md1 = LVM group with root (XFS) and swap volumes.
- maybe a UUID collision? once I'm done dumping files I'll look at that sort of thing.
- It was rather difficult to avoid profanity in typing up this bug report.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-
Regression: No
Reproducible: No
ProcVersionSign
Uname: Linux 2.6.32-23-generic x86_64
NonfreeKernelMo
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: dan 1990 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfc220000 irq 17'
Mixer name : 'Conexant CX20561 (Hermosa)'
Components : 'HDA:14f15051,
Controls : 14
Simple ctrls : 7
Card29.Amixer.info:
Card hw:29 'ThinkPadEC'
Mixer name : 'ThinkPad EC 7VHT12WW-1.01'
Components : ''
Controls : 1
Simple ctrls : 1
Card29.
Simple mixer control 'Console',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Date: Sun Jul 18 15:43:01 2010
EcryptfsInUse: Yes
Frequency: This has only happened once.
HibernationDevice: RESUME=
MachineType: LENOVO 2081CTO
PccardctlIdent:
Socket 0:
no product info available
PccardctlStatus:
Socket 0:
no card
ProcCmdLine: root=UUID=
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
RelatedPackageV
SourcePackage: linux
WpaSupplicantLog:
dmi.bios.date: 04/22/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 6FET66WW (2.16 )
dmi.board.name: 2081CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 2081CTO
dmi.product.
dmi.sys.vendor: LENOVO
N.b: the system I submitted the bug from is NOT the one that had the corruption/swap issue -- that one is churning away with what I hope is a semi-intact backup.