Also, how can I find out if/when the raid1 sync completed? I do not
follow what the dmsetup status is saying
~$ sudo dmsetup status
nvidia_eeffhbef5: 0 6458067 linear
nvidia_eeffhbef1: 0 149838192 linear
nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1183/1193 1 AD 1 core
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-05-2009, 03:20 PM
Konrad Rzeszutek
dmsetup status not clear
> Why is the new disk showing up as `sdc' instead of `sdb' and why is
I can't comment on the naming - but in regards to the write cache - that is
the information the kernel gets from the device using SCSI commands (to be
exact it MODE_SENSE). The device has it disabled. You can fiddle with MODE_SELECT
command if you want to enable it - but keep in mind that when you have a RAID
it is advised to turn cache off. Unless your computer has a UPS connected so that
you can flush the data immediately and turn off caching.
> the write cache disabled?
>
>
> Of course similar two lines below showing up only in dmesg and not in
> messages file
>
>
> [ 2465.456628] ata4: exception Emask 0x10 SAct 0x0 SErr 0x150000
> action 0xe frozen
> [ 2465.543901] ata4: SError: { PHYRdyChg CommWake Dispar }
> [ 2465.606247] ata4: hard resetting link
>
That is OK.
>
> Also, how can I find out if/when the raid1 sync completed? I do not
> follow what the dmsetup status is saying
cat /proc/dmstatus should give you some details.
>
>
> ~$ sudo dmsetup status
> nvidia_eeffhbef5: 0 6458067 linear
> nvidia_eeffhbef1: 0 149838192 linear
> nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1183/1193 1 AD 1 core
That is just the static mapping it has setup. Where it says that disks 8:0 and 8:16
are part of the of your RAID. Do a 'ls /dev/ | grep 8' and you will see what
the 8:0, and 8:16 correspond to.
>
>
> --
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-05-2009, 03:35 PM
Asif Iqbal
dmsetup status not clear
On Thu, Mar 5, 2009 at 11:20 AM, Konrad Rzeszutek
<konrad@virtualiron.com> wrote:
>> Why is the new disk showing up as `sdc' instead of `sdb' *and why is
>
> I can't comment on the naming - but in regards to the write cache - that is
> the information the kernel gets from the device using SCSI commands (to be
> exact it MODE_SENSE). The device has it disabled. You can fiddle with MODE_SELECT
> command if you want to enable it - but keep in mind that when you have a RAID
> it is advised to turn cache off. Unless your computer has a UPS connected so that
> you can flush the data immediately and turn off caching.
>
>> the write cache disabled?
>>
>>
>> Of course similar two lines below showing up only in dmesg and not in
>> messages file
>>
>>
>> [ 2465.456628] ata4: exception Emask 0x10 SAct 0x0 SErr 0x150000
>> action 0xe frozen
>> [ 2465.543901] ata4: SError: { PHYRdyChg CommWake Dispar }
>> [ 2465.606247] ata4: hard resetting link
>>
> That is OK.
>>
>> Also, how can I find out if/when the raid1 sync completed? I do not
>> follow what the dmsetup status is saying
>
> cat /proc/dmstatus should give you some details.
~# cat /proc/dmstatus
cat: /proc/dmstatus: No such file or directory
>
>>
>>
>> ~$ sudo dmsetup status
>> nvidia_eeffhbef5: 0 6458067 linear
>> nvidia_eeffhbef1: 0 149838192 linear
>> nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1183/1193 1 AD 1 core
>
> That is just the static mapping it has setup. Where it says that disks 8:0 and 8:16
> are part of the of your RAID. Do a 'ls /dev/ | grep 8' and you will see what
> the 8:0, and 8:16 correspond to.
The dmsetup status has a little different output now
iqbala@ftp0:~$ sudo dmsetup status
nvidia_eeffhbef5: 0 6458067 linear
nvidia_eeffhbef1: 0 149838192 linear
nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1193/1193 1 AA 1 core
It was '1183/1193 1 AD 1 core' and now '1193/1193 1 AA 1 core'
What are the differences? Is there some doc where I can read more about this?
>
>>
>>
>> --
>> Asif Iqbal
>> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
>> A: Because it messes up the order in which people normally read text.
>> Q: Why is top-posting such a bad thing?
>>
>> --
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-05-2009, 04:15 PM
Konrad Rzeszutek
dmsetup status not clear
> > cat /proc/dmstatus should give you some details.
>
> ~# cat /proc/dmstatus
> cat: /proc/dmstatus: No such file or directory
Ugh. /proc/mdstat I think.
.. snip ..
> iqbala@ftp0:~$ sudo dmsetup status
> nvidia_eeffhbef5: 0 6458067 linear
> nvidia_eeffhbef1: 0 149838192 linear
> nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1193/1193 1 AA 1 core
>
> It was '1183/1193 1 AD 1 core' and now '1193/1193 1 AA 1 core'
>
> What are the differences? Is there some doc where I can read more about this?
It is divided in two groups. The first is the
type and the size (0 156301486 mirror): meaning 156301486 sectors, or:
76319MB, and the kernel module that oversears this device is 'dm-mirror'.
The next group of data is from 'mirror_status' function (from the dm-raid1 module, which
actually registers itself as 'dm-mirror'). Take a look
at drivers/md/dm-raid1.c and the above mentioned function - that should
give you an idea what is what.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-05-2009, 06:29 PM
Asif Iqbal
dmsetup status not clear
On Thu, Mar 5, 2009 at 12:15 PM, Konrad Rzeszutek
<konrad@virtualiron.com> wrote:
>> > cat /proc/dmstatus should give you some details.
>>
>> ~# cat /proc/dmstatus
>> cat: /proc/dmstatus: No such file or directory
>
> Ugh. /proc/mdstat I think.
# cat /proc/mdstat
cat: /proc/mdstat: No such file or directory
>
>
> .. snip ..
>> iqbala@ftp0:~$ sudo dmsetup status
>> nvidia_eeffhbef5: 0 6458067 linear
>> nvidia_eeffhbef1: 0 149838192 linear
>> nvidia_eeffhbef: 0 156301486 mirror 2 8:0 8:16 1193/1193 1 AA 1 core
>>
>> It was '1183/1193 1 AD 1 core' and now '1193/1193 1 AA 1 core'
>>
>> What are the differences? Is there some doc where I can read more about this?
>
> It is divided in two groups. The first is the
> type and the size (0 156301486 mirror): meaning 156301486 sectors, or:
> 76319MB, and the kernel module that oversears this device is 'dm-mirror'.
>
> The next group of data is from 'mirror_status' function (from the dm-raid1 module, which
> actually registers itself as 'dm-mirror'). Take a look
> at drivers/md/dm-raid1.c and the above mentioned function - that should
> give you an idea what is what.
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel