LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   read swap header failed invalid arguement Fedora 12 (https://www.linuxquestions.org/questions/linux-newbie-8/read-swap-header-failed-invalid-arguement-fedora-12-a-828393/)

rmknox 08-25-2010 09:46 AM

read swap header failed invalid arguement Fedora 12
 
When I boot, after startup and before I log on, an error icon appears. I click - it shows a summary of the
material that normally rolls by on a unix startup. One item is checked. it says
Code:

Enabling /etc/fstab swaps: swapon: /dev/mapping/vg_knox-lv_swap:
read swap header failed: invalid arguement

I have 1 disk - it has 2 partitions - one an 83 type with a file system in it, holds the kernel, mounts at /boot.

The second partition is an 8e type contains a volume group logically split between lv_root and lv_swap and physically located on sda2.

As I understand it, the system is having trouble processing the commands for lv_swap.

I am tempted to mess with these commands, but don't have enough know how to do so and am short on the time required to learn enough to master this subject.

Can someone help?

Dick

Fedora 12

syg00 08-25-2010 10:00 AM

Doesn't sound too serious - presumably you can login o.k.

Lets' see the output of "swapon -s".

rmknox 08-25-2010 11:14 AM

here is swapon -s
Code:

Filename                                Type                Size        Used        Priority
correct - not too serious because I'm not doing anyting right now that would require swapping.

regrding verified backup - i have one but am having some trouble doing another - it is the subject of another thread

while you're at it it would be nice if you told me the recognized way to do a full disk backup - I dont see a way to do it with tar because lvm has taken control of main partition - did one with clonezilla which I doubt is the "official" way

thanks

dick

syg00 08-26-2010 04:44 AM

Just do a mkswap on that lv (as root); then "swapon". Then try the "swapon -s" again to confirm.
Reboot just to be sure.

*Edit*: forgot to mention; F13 uses UUID in fstab, don't know about F12. The mkswap will change the UUID - make sure you check fstab before the reboot.

Hmmm - "recognised", ... "official" ...
Wrong person to ask. Do what works for you. I like things that protect me like dvdisaster and fsarchiver.

rmknox 08-27-2010 09:25 AM

syg00 - worked like a charm - thanks (looks like the thanks icon is gone)

Ill look at fsarchiver - I want to copy my fedora 12 system to a new smaller drive - system is using a small fraction of current drive

am stuck trying to do it with fdisk and tar

used fdisk to make 2nd drive have same partitions - copied sda1 (kernel) no sweat since it has a file system -- I just used tar pipe tar.

but sda2 is a different story since it contins lvm combination of a lv (lv_root) with a file system and a lv wiothout a filesystem (lv_swap). Have not figured out how to mount it so that tar can get to the lv_root.

any suggestions?

syg00 08-27-2010 05:31 PM

If I have access to both disks I don't even both with tar - just "cp -a ...".
KISS.

As for the lv issue, just make sure they (and the vg) aren't the same name as any already known to LVM - then they should be discovered automagically. Else try the {pv,vg,lv}scan suite to see what gets found.

Seems jeremy is trying (yet another) reputation/thanks system. Try hovering over the "scales" ...


All times are GMT -5. The time now is 02:42 PM.