Re: Brocken Raid & LUKS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/23/2013 07:13 PM, Stone wrote:
> Am 24.02.2013 00:49, schrieb Phil Turmel:

>>>> 1) The partition doesn't go far enough to the end of the disk,
>> For this, repartition /dev/sdc to start at sector 2048 and end at
>> 3907029118.  Then re-create the array, open luks, and do "fsck -n" and
>> show the results.
> roger that.
> i would do this:
> parted /dev/sdc
> unit s
> resize 1 2048 3907029118
> parted /dev/sdc unit s print -> to check my new settings
> recreate the md2 device with chunk 512 and the order we find out.
> open luks
> check it with fsck -n and report you my (errors) result.

Do not use "resize".  (And it doesn't exist in current versions of
parted anyways.)  Use rm then mkpart.

Otherwise, Yes.

>>>> 2) The partition starts too far into the disk (move start sector to 34
>>>> like sdb and sde).
>>>>
>>>> For this, repartition /dev/sdc to start at 34 and end at 3907029118.
>>>> This makes it match sdb and sde.  Then re-create the array, open luks,
>>>> and do "fsck -n" and show the results.
> this is the next step if you say step one is the wrong one.
> parted /dev/sdc
> unit s
> resize 1 34 3907029118
> parted /dev/sdc1 unit s print -> to check my new settings
> recreate the md2 device with chunk 512 and the order we find out.
> open luks
> check it with fsck -n and report you again my (errors) result.

Same here.  Delete the partition with rm, then create it at the new
location and size.

Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux