LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-01-2015, 12:44 PM   #1
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Rep: Reputation: Disabled
Corrupted XFS


Hello!
I'm worried about a problem that occurred twice and on different servers. We use Oracle Linux and partitions are in XFS, such a partition burst disk space and the corrupted partition. I can not mount the partition at all. Can anyone tell me why this happens?

In dmesg the error appears below.
[ 2.458820] sdf: unknown partition table
[ 2.459096] sd 2:0:5:0: [sdf] Cache data unavailable
[ 2.459099] sd 2:0:5:0: [sdf] Assuming drive cache: write through
[ 2.459262] sd 2:0:5:0: [sdf] Attached SCSI disk
[952902.649458] XFS (sdf): bad magic number
[952902.649531] XFS (sdf): SB validate failed
[953241.403987] XFS (sdf): bad magic number
[953241.404041] XFS (sdf): SB validate failed
 
Old 04-01-2015, 09:07 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
It means your MBR is corrupted. Do you use msdos or EFI partitions?
 
Old 04-06-2015, 09:10 AM   #3
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
This occurred when the disc burst space, this disk is used to store the Oracle archives.
The partition is XFS and this disk is a storage and the server is a virtual machine (vmware).
 
Old 04-06-2015, 07:05 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,155

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Have a look at the XFS FAQ for the discussion on Write Cache.
I don't use XFS so am not sure if this is still relevant.
 
Old 04-07-2015, 02:34 PM   #5
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank syg00, I'll read and post here to discover the cause of the problem.
 
Old 04-10-2015, 12:28 PM   #6
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Read the FAQ and did further research to try to understand the "write cache" could corrupt the FS, if the disk runs out of space. I found nothing enlightening.
Is the "write cache" is responsible for this bug?
 
Old 04-10-2015, 02:18 PM   #7
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Guys, it's not possible that a write cache screws up the partitions - not supposed to write outside the partitionn's boundaries.
How is the storage (partition?) mounted in the VM and what kind of VM is it?
 
Old 04-10-2015, 02:36 PM   #8
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
The partition is mounted as XFS, with default options in fstab. The VM is a Oracle Linux Server 3.8.13-68.el7uek.x86_64 by vmware.

##fstab
/dev/sdf /u05 xfs defaults 0 0
 
Old 04-10-2015, 03:28 PM   #9
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
But how is the partition mounted into the VM?
How do you pass (on the host) the partition to the VM?
 
Old 04-10-2015, 08:38 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
The question is more a three part quiz. Is the hardware, filesystem or use bad?

May try a repair. http://linux.die.net/man/8/xfs_repair

XFS has been around a very long time, becoming the standard in servers maybe.

Look at this maybe for some ideas?? http://serverfault.com/questions/406...of-sparse-file
 
1 members found this post helpful.
Old 04-13-2015, 07:21 AM   #11
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
pearlseattle, did not understand your question, you want to know how the disk is shown in VM?

jefro, thanks for the indication of the links, I will analyze.
 
Old 04-15-2015, 01:19 PM   #12
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
What I understood is that you're forwarding a real HDD partition to a VM and that the VM is using it to store Oracle archlogs.

I'll take a step back.
The mix of what I understood and what my assumptions are is:
  1. you've got a server (later referred to as "host")
  2. the host has one or more HDDs
  3. one of these HDDs has some partitions, and one of those is formatted with XFS
  4. on the host you're running at least 1 Virtual Machine
  5. that VM is running Oracle
  6. you're passing the XFS partition of the HDD of the host to the VM
  7. the VM mounts the partition and uses it to store Oracle archlogs
  8. from time to time this specific paritition cannot be mounted in the VM

Questions:
  • Is the above correct and if not, what is wrong?
  • If correct, when you run the <script? whatever?> to start the VM, which parameters do you give to the hypervisor to tell it that the XFS partition of the host has to be forwarded and made available to the VM?
 
Old 04-27-2015, 11:34 AM   #13
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
1. you've got a server (later referred to as "host")
2. the host has one or more HDDs
3. one of these HDDs has some partitions, and one of those is formatted with XFS
4. on the host you're running at least 1 Virtual Machine
5. that VM is running Oracle
6. you're passing the XFS partition of the HDD of the host to the VM
7. the VM mounts the partition and uses it to store Oracle archlogs
So far is correct.

8. It happened only once, the disk became full, thus the disk partition corrupted
 
Old 04-27-2015, 03:39 PM   #14
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Quote:
8. It happened only once, the disk became full, thus the disk partition corrupted
But the partition is really not supposed to become corrupted if the disk becomes full... .
 
Old 04-28-2015, 02:47 PM   #15
andersonalvesl
LQ Newbie
 
Registered: Apr 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
So just to XFS partitions? In ext partitions that does not happen ...
 
  


Reply



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
corrupted or not corrupted filesystem? pan64 Linux - General 9 01-03-2015 01:57 PM
xfs corrupted after power failure katmai90210 Linux - Software 1 10-16-2013 04:18 PM
Data corrupted on xfs raid 5 ex iomega storcenter pro ix4-200r Remoz Linux - Server 0 04-05-2011 08:32 AM
Ubuntu 9.x install corrupted NTFS partition; repair corrupted TrueCrypt partition halfer Linux - General 1 06-30-2009 02:59 PM
kdebase not recognizing XFree86-xfs package as xfs mikeyt_333 Linux - Software 1 08-17-2004 01:50 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:24 PM.

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
Open Source Consulting | Domain Registration