Ubuntu filesystem error corrupt GPT label

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Ubuntu filesystem error corrupt GPT label
# 1  
Old 02-05-2012
Ubuntu filesystem error corrupt GPT label

Need help/advice urgently.Smilie

I really shot myself in the foot this time. Here is the scenario
Have a Solaris server Solaris 10 x86 Update 8.
Installed an LSI MegaRaid 9280 raid controller and attached a 16 bay JBOD box to it, created a RAID6 virtual drive with 1 hot spare.

Created a ZFS filesystem on it and loaded it up with users data about 7.6TB.
Created another identical system and rsynced the data from the first to the second.
Both of the servers are to act as fileservers exporting the directoies via NFS

Then I discovered the disk performance was horrible, did some research and discover my configuration was less the ideal. I decide to install Ubuntu 10.04LTS server on one of the machines and rebuild the RAID filesystem. This is where I shot myself in the foot.

I did zpool destroy on the ZFS system
Then installed Ubuntu
Ubuntu recognized the disk and an fdisk -l displayed the correct partitioning.

Code:
Disk /dev/sdb: 12995.5 GB, 12995497295872 bytes
255 heads, 63 sectors/track, 1579945 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x08046e04

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  GPT

I then created an ext3 filesystem on it, loaded all of the data on it and things were fine for about a week.

I started get I/O errors any time I accessed the filesystem. I tried unmounting the file system and remounting but it would not remount

Code:
root@fileserver2:~/testdisk-6.13# mount /dev/sdb1 /raid2
mount: special device /dev/sdb1 does not exist

Tried rebooting still no luck

I ran parted then and it gives this error:

Code:
root@fileserver2:~/testdisk-6.13# parted /dev/sdb
GNU Parted 2.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: /dev/sdb: unrecognised disk label
(parted) quit

I then realized that when I created the filesystem I had not run parted to create a proper partition table. Big oops.

A few questions questions

1 Why would mkfs allow me to create a filesystem on disk that was not partitioned correctly?

Why did it take a week for things to go south?

and finally is this a reasoble way to recover from my screwup:

Run parted:

Code:
mklabel gpt
rescue 0 267350

Any hints, advice or other solutions would be greatly appreciated.
# 2  
Old 02-05-2012
There's no reason you should need to use parted when you used fdisk instead. I/O errors are never supposed to happen. The problems may be unrelated.
# 3  
Old 02-06-2012
That is also the problem, I only ran fdisk -l on the Ubuntu system. On the solaris system ZFS took car of everything as I used the whole disk:


Code:
zpool create raid1  c4t0d0

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

GPT Partitions

(Don't you hate being on holiday and being the only IT person in the family?) Got a wonderful thanksgiving surprise .. dead windows-8 laptop with "important" unbacked-up data. No worries, I have my my fedora labtop and a magical SATA to USB converter. Plugged in the drive, and ... can't mount... (4 Replies)
Discussion started by: derekludwig
4 Replies

2. Solaris

Unable to mount ext4 filesystem (created from Ubuntu) in Solaris 11

Hello everyone, I am trying to mount an ext4 filesystem which I created from Ubuntu. But mount command fails saying: prakhar@Solaris:~$ sudo mount /dev/dsk/c10t0d0p1 /mnt Password: mount: /dev/dsk/c10t0d0p1 is not this fstype And I also tried this: prakhar@Solaris:~$ fstyp... (6 Replies)
Discussion started by: Prakhar Mishra
6 Replies

3. Filesystems, Disks and Memory

Original SAN to a New Solaris Server: Corrupt Label

I've seen several posts that are similar to what I'm trying to do but no dice. I have a server (SunFire V215) that went belly up. I've set up a new one. I'm getting a corrupt label: wrong magic number error. Everything I'm seeing says label the drives, but if I do I'm afraid I'll lose the data... (0 Replies)
Discussion started by: tnelson
0 Replies

4. Solaris

corrupt label - wrong magic number

I have created 1 LUN. 1)LUN 00BB 200GB /dev/rdsk/c1t3d44 /dev/rdsk/c2t28d44 /dev/rdsk/c3t19d44 /dev/rdsk/c4t12d44 2) Already added the new entry into sd.conf and rebooted. 3) Already done these: powercf –q power config 4) power display dev=all I can see the new Symmetrix device.... (1 Reply)
Discussion started by: sirius20d
1 Replies

5. UNIX for Advanced & Expert Users

Mounting SunSolaris Filesystem on Linux Ubuntu Server

Can someone please help me out here. I have SunSolaris server that has a ridiculous about of space on it. several hundred gigabytes of space. There are lots of partitions on this server that has at least 100Gs on them. I want to mount just one of these partitions on my Linux server so I can... (4 Replies)
Discussion started by: SkySmart
4 Replies

6. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

7. Solaris

Corrupt label bad geometry

Hi, I have a Sun X4200, when I try to reboot the machine it's not detecting the drive and it shows the following error when I try to rebuilt it. I am not sure whether its a bad HD or something else. Label says 983040 blocks: Drive says 983039 blocks WARNING:... (1 Reply)
Discussion started by: gunnervarma
1 Replies

8. Solaris

ultra 10 boot warning---corrupt label

Hi All, Any idea why i'm having this warning during boot: WARNING: /pci@1f,0/pci@1,1/ide@3/dad@1,0 (dad1): corrupt label - wrong magic number This happens after I added another ide HD and reinstall it from solaris 10 to solaris 8. Thanks in advance. (7 Replies)
Discussion started by: itik
7 Replies
Login or Register to Ask a Question