linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: o1bigtenor <o1bigtenor@gmail.com>
To: Phil Turmel <philip@turmel.org>
Cc: Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: Advice requested
Date: Tue, 3 Nov 2015 07:36:45 -0600	[thread overview]
Message-ID: <CAPpdf58x1eKXTKbvisQGV9KUsMRzEacSifaLLzQkX53YM5c6jg@mail.gmail.com> (raw)
In-Reply-To: <5638B208.1050502@turmel.org>

On Tue, Nov 3, 2015 at 7:09 AM, Phil Turmel <philip@turmel.org> wrote:
> On 11/03/2015 07:45 AM, o1bigtenor wrote:
>
>> Command (? for help): p
>> Disk /dev/md0: 3907037184 sectors, 1.8 TiB
>> Logical sector size: 512 bytes
>> Disk identifier (GUID): 1EB47793-0CDF-4E16-AE84-33EC825AC448
>> Partition table holds up to 128 entries
>> First usable sector is 34, last usable sector is 3907037150
>> Partitions will be aligned on 2048-sector boundaries
>> Total free space is 2014 sectors (1007.0 KiB)
>>
>> Number  Start (sector)    End (sector)  Size       Code  Name
>>    1            2048      3907037150   1.8 TiB     8300  Linux filesystem
>>
>> Command (? for help): w
>>
>> Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
>> PARTITIONS!!
>>
>> Do you want to proceed? (Y/N): Y
>> OK; writing new GUID partition table (GPT) to /dev/md0.
>> The operation has completed successfully.
>> root@debianbase:/# dmesg |tail
>> [35958.237305] JBD2: Error -5 detected when updating journal
>> superblock for sdh1-8.
>> [35958.265302] sd 16:0:0:1: [sdh] Synchronize Cache(10) failed:
>> Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
>> [42828.763827] md: md0 stopped.
>> [42828.764985] md: bind<sdb1>
>> [42828.765270] md: bind<sdf1>
>> [42828.786394] md: raid10 personality registered for level 10
>> [42828.787258] md/raid10:md0: active with 2 out of 4 devices
>> [42828.787316] md0: detected capacity change from 0 to 2000403038208
>> [42828.859574]  md0:
>> [84855.526621]  md0: p1
>> root@debianbase:/# blkid
>
>> /dev/md0: PTUUID="1eb47793-0cdf-4e16-ae84-33ec825ac448" PTTYPE="gpt"
>> /dev/md0p1: UUID="49552036-b46f-4956-ade9-3541a3dd7f0a" TYPE="ext4"
>> PARTLABEL="Linux filesystem"
>> PARTUUID="2d6ef378-b27a-4de6-a42f-9c0a7e191a00"
>
>> root@debianbase:/# fsck -n /dev/md0p1
>> fsck from util-linux 2.26.2
>> e2fsck 1.42.13 (17-May-2015)
>> The filesystem size (according to the superblock) is 488379392 blocks
>> The physical size of the device is 488379387 blocks
>> Either the superblock or the partition table is likely to be corrupt!
>> Abort? no
>
> You are five sectors short.
>
>> /dev/md0p1 contains a file system with errors, check forced.
>> Pass 1: Checking inodes, blocks, and sizes
>> Pass 2: Checking directory structure
>> Pass 3: Checking directory connectivity
>> Pass 4: Checking reference counts
>> Pass 5: Checking group summary information
>> /dev/md0p1: 618365/122101760 files (0.2% non-contiguous),
>> 78222096/488379392 blocks
>
> You will need to convert the partition table to dos -- gpt stores a
> backup partition table at the end, occupying space that the ext4
> filesystem is claiming.
>
> Use gdisk to do this:
>
> gdisk /dev/md0
>
> select 'r' for recovery options, the 'g' for MBR conversion.  Then w to
> write and exit.
>
> Then use fdisk to fix the partition:
>
> fdisk /dev/md0
>
> select 'd' then '1' to delete the partition.
>
> select 'n' then 'p' for primary, then '1', then 2048, then accept the
> suggested end sector (should be larger than in gdisk).
>
> 'w' to write and exit
>
> probably need "partprobe /dev/md0" for the kernel to get the new size.
>
> Then do a real fsck (without -n):
>
> fsck -y /dev/md0p1


root@debianbase:/# gdisk /dev/md0
GPT fdisk (gdisk) version 1.0.0

Partition table scan:
 MBR: protective
 BSD: not present
 APM: not present
 GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): r

Recovery/transformation command (? for help): g

MBR command (? for help): w

Converted 1 partitions. Finalize and exit? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
root@debianbase:/# fdisk /dev/md0

Welcome to fdisk (util-linux 2.26.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Selected partition 1
Partition 1 has been deleted.

Command (m for help): n
Partition type
  p   primary (0 primary, 0 extended, 4 free)
  e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-3907037183, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-3907037183, default
3907037183):

Created a new partition 1 of type 'Linux' and of size 1.8 TiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

root@debianbase:/# partprobe /dev/md0
root@debianbase:/# partprobe /dev/md0p1
root@debianbase:/# fsck -y /dev/md0p1
fsck from util-linux 2.26.2
e2fsck 1.42.13 (17-May-2015)
/dev/md0p1 has been mounted 90 times without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md0p1: 618365/122101760 files (0.2% non-contiguous),
78222096/488379392 blocks




>
> Then mount and backup.

Mondo seems to be an interesting backup tool.

Would you have any suggestions?

(In the past I was backing up to 25 GB Bluray disks. Was in the
process of setting up a NAS box (with ECC and NAS level drives)
to be backup using rsync (I think).

I don't want any more of these 2 months without being able to get
business done times if I can help it!!!

>
>> I think that I am right close to being able to backup the files.
>
> Yes.
>
>> Any suggestions for what to do after the files are backed up - - -
>>
>> Should I (after making backup copies) rebuild the array
>>
>> 1. just treat the disks as if they were empty
>> 2. some other process
>
> Just add the other drives back into the array in one step, then let them
> recover.
>
> mdadm /dev/md0 --add /dev/sdc1 --add /dev/sde1
>
> {Use the current names if those aren't correct at this time.}
>
> Although I wouldn't set up a new system quite like this, there's nothing
> wrong with this layout.  It'll be fine like this until the day you want
> more space.  A new bigger array would be an appropriate time to redesign.

Would you have any suggestions as to how to setup a different array?

(My NAS box is old server hardware where I am using hardware raid.)

Thanking you very much for your generous assistance.
(copied all of the commands so that anyone accessing the information for
their own use might have some ideas of what to do - - - hopefully also
achieving a successful result!

Dee

  reply	other threads:[~2015-11-03 13:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 11:55 Advice requested o1bigtenor
2015-11-01 20:55 ` Phil Turmel
     [not found]   ` <CAPpdf5_PUpR7GhBHUaQfWb8Q+7FZenxXgFqbaN3f3r0r6NQNDA@mail.gmail.com>
2015-11-02 15:41     ` Phil Turmel
     [not found]       ` <CAPpdf59MFX1oVwLC-bmQBaQp9K_9-+h0v64OGMnV1-k=eCzO0w@mail.gmail.com>
     [not found]         ` <5637BCE4.8000006@turmel.org>
2015-11-02 23:49           ` o1bigtenor
2015-11-03  0:11             ` Phil Turmel
2015-11-03  0:44               ` o1bigtenor
2015-11-03  0:57                 ` Phil Turmel
2015-11-03  1:02                   ` o1bigtenor
2015-11-03  1:55                     ` Phil Turmel
2015-11-03  4:03                       ` o1bigtenor
2015-11-03  4:09                         ` Phil Turmel
2015-11-03  4:28                           ` o1bigtenor
2015-11-03  4:47                             ` Phil Turmel
2015-11-03 12:45                               ` o1bigtenor
2015-11-03 13:09                                 ` Phil Turmel
2015-11-03 13:36                                   ` o1bigtenor [this message]
2015-11-03 15:49                                     ` Adam Goryachev
2015-11-03 16:08                                     ` Phil Turmel
     [not found]                                       ` <CAPpdf59o0kf1-mgB29AcgH2cpdwBrhazf3NeQUYNa6m9+c6C+A@mail.gmail.com>
2015-11-04  4:05                                         ` o1bigtenor
2015-11-04  4:31                                           ` Brad Campbell
2015-11-03 18:02       ` Phil Turmel
2015-11-03 19:06         ` o1bigtenor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPpdf58x1eKXTKbvisQGV9KUsMRzEacSifaLLzQkX53YM5c6jg@mail.gmail.com \
    --to=o1bigtenor@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=philip@turmel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).