LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2014, 12:59 AM   #1
sushdba
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Rep: Reputation: Disabled
messed with swapfile


I have messed with my swapfile , getting following errors.
******
1 logical volume(S) in volume group "VolGroup00" now actice0/LogVol00 rhgb qu
Unable to access resume devices (/dev/Volgroup00/LogVol01)
VFS: Cant find ext filesystem on dev dm-0.40]
mount: error mounting /dev/root on /sys/root as ext3 : invalid argument
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: mont failed: No such file or directory
kernel panic - not syncing : Attempted to kill init!
Attached Thumbnails
Click image for larger version

Name:	RACNODE1.png
Views:	8
Size:	9.3 KB
ID:	17208  
 
Old 12-26-2014, 01:16 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,729

Rep: Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123
Well unmess it, and maybe you won't get those messages.

Ridiculous post - how can we even begin to help if we (you) don't know what you did.
 
Old 12-26-2014, 01:38 AM   #3
sushdba
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I tried to increase the swap space , unsuccesfuly . I given the command swapoff /dev/Volgroup00/LogVol01 , it says invalid argumnet. So I fired another command mkfs swap /dev/Volgroup00/LogVol01 .
 
Old 12-26-2014, 03:51 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,729

Rep: Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123Reputation: 2123
Quote:
Originally Posted by sushdba View Post
I given the command swapoff /dev/Volgroup00/LogVol01 , it says invalid argumnet.
That probably means you issued the command twice - no harm.
Quote:
So I fired another command mkfs swap /dev/Volgroup00/LogVol01 .
That should have failed, and not done anything.

I'd say you aren't telling us everything. So, I can't help you.
 
Old 12-26-2014, 11:58 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,468

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
From the looks of it you also clobbered your root filesystem on LogVol00. My guess is that you accidentally ran
Code:
mkswap /dev/Volgroup00/LogVol00
As long as that LV was not actually used as swap, that should be recoverable by booting from rescue media and running fsck on that LV. It should find one of the backup super blocks.
 
1 members found this post helpful.
Old 12-27-2014, 12:01 AM   #6
sushdba
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you rknichols Sir , You are right , this is what has happened. I request you to please provide me documentation or link for this to resolve.

fsck command says: The superblock could not be read or does not describes a correct ext2 filesystem. If the device is valid and it really contain ext2 filesystem(and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternative superblock : e2fsck -b 8193 <device>
 
Old 12-27-2014, 10:47 AM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,468

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
From what Linux distribution are you running the fsck? What is the version of fsck.ext3 (should be in the first line of output when you run "fsck.ext3 /dev/Volgroup00/LogVol00")? The versions of fsck that I have all look automatically for backup super blocks.

Also, let's be sure of these VG and LV names. There is some inconsistency in your posts ("VolGroup00" vs. "Volgroup00"). What is the output when you run "lvs"?

Last edited by rknichols; 12-27-2014 at 10:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Invalid swapfile Basher52 Linux - Software 2 04-27-2011 03:36 PM
using dapper swapfile unisol Ubuntu 1 12-27-2006 06:11 AM
How do I get my swapfile to work? Mr. New Linux - Newbie 2 01-01-2005 11:37 AM
SuSe swapfile Pond247 Linux - Newbie 0 09-19-2003 02:17 PM
Swapfile Shantesh Linux - Software 2 09-11-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration