All of lore.kernel.org
 help / color / mirror / Atom feed
* Device Access Question
@ 2006-09-28 10:02 Herr, Manuel
  2006-09-29 10:04 ` Bernd Zeimetz
  2006-09-29 15:49 ` Edward Goggin
  0 siblings, 2 replies; 3+ messages in thread
From: Herr, Manuel @ 2006-09-28 10:02 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]

Is it correct that if an LUN is seen over 2 Paths,
1 active 1 standby i cannot fdisk the standby device?

#multipath -l
(3600601604032190097fd5fbefd22db11)
[size=11 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
\_ round-robin 0 [active]
 \_ 3:0:0:7 sdi 8:128 [active][ready]
\_ round-robin 0 [enabled]
 \_ 3:0:1:7 sdq 65:0  [active][ready]

#fdisk -l /dev/sdi
Disk /dev/sdi: 11.8 GB, 11811160064 bytes
255 heads, 63 sectors/track, 1435 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdi1               1        1435    11526606   83  Linux

#fdisk -l /dev/sdq
--> creates in /var/log/messages
Sep 28 12:01:22 saptf2 kernel: end_request: I/O error, dev sdq, sector 0
Sep 28 12:01:22 saptf2 kernel: Buffer I/O error on device sdq, logical block 0

Regards Manuel Herr

[-- Attachment #1.2: Type: text/html, Size: 2298 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Device Access Question
  2006-09-28 10:02 Device Access Question Herr, Manuel
@ 2006-09-29 10:04 ` Bernd Zeimetz
  2006-09-29 15:49 ` Edward Goggin
  1 sibling, 0 replies; 3+ messages in thread
From: Bernd Zeimetz @ 2006-09-29 10:04 UTC (permalink / raw)
  To: device-mapper development

Heya,
>
> #multipath -l
> (3600601604032190097fd5fbefd22db11)
> [size=11 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
> \_ round-robin 0 [active]
>  \_ 3:0:0:7 sdi 8:128 [active][ready]
> \_ round-robin 0 [enabled]
>  \_ 3:0:1:7 sdq 65:0  [active][ready]
>
> #fdisk -l /dev/sdi
>   

try
fdisk /dev/mapper/3600601604032190097fd5fbefd22db11
you can configure alias names in mutipath.conf if you don't like the 
weird name.

multipaths {
        multipath {
                wwid                    3600601604032190097fd5fbefd22db11
                alias                   mylunname
        }
}

you'll find a device called /dev/mapper/mylunname then.


Best regards,

Bernd

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Device Access Question
  2006-09-28 10:02 Device Access Question Herr, Manuel
  2006-09-29 10:04 ` Bernd Zeimetz
@ 2006-09-29 15:49 ` Edward Goggin
  1 sibling, 0 replies; 3+ messages in thread
From: Edward Goggin @ 2006-09-29 15:49 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 2080 bytes --]

I suggest you use the dm-multipath mapped device names instead of the
target device ones.  Otherwise, you can run into problems caused by the
fact that the cached partition table for each of the possibly multiple
target paths are not kept in synch with the partition table of the
multipath mapped device.
 
In this case, fdisk is failing because it attempts to read the partition
table (MBR block 0) of the disk and /dev/sdq is the passive path to the
disk.  This is correct behavior for Linux dm-multipath since it does not
attempt to provide multipathing for accesses to the target device paths,
e.g., /dev/sdq.
 
Also, be careful because this behavior can be intermittent since this
operation would have succeeded if this logical block was resident in the
page cache, which could happen if /dev/sdq was an active path to the
logical unit just a little while beforehand.


________________________________

	From: dm-devel-bounces@redhat.com
[mailto:dm-devel-bounces@redhat.com] On Behalf Of Herr, Manuel
	Sent: Thursday, September 28, 2006 6:03 AM
	To: dm-devel@redhat.com
	Subject: [dm-devel] Device Access Question
	
	

	Is it correct that if an LUN is seen over 2 Paths, 
	1 active 1 standby i cannot fdisk the standby device? 
	

	#multipath -l 
	(3600601604032190097fd5fbefd22db11) 
	[size=11 GB][features="1 queue_if_no_path"][hwhandler="1 emc"] 
	\_ round-robin 0 [active] 
	 \_ 3:0:0:7 sdi 8:128 [active][ready] 
	\_ round-robin 0 [enabled] 
	 \_ 3:0:1:7 sdq 65:0  [active][ready] 

	#fdisk -l /dev/sdi 
	Disk /dev/sdi: 11.8 GB, 11811160064 bytes 
	255 heads, 63 sectors/track, 1435 cylinders 
	Units = cylinders of 16065 * 512 = 8225280 bytes 

	   Device Boot      Start         End      Blocks   Id  System 
	/dev/sdi1               1        1435    11526606   83  Linux 

	#fdisk -l /dev/sdq 
	--> creates in /var/log/messages 
	Sep 28 12:01:22 saptf2 kernel: end_request: I/O error, dev sdq,
sector 0 
	Sep 28 12:01:22 saptf2 kernel: Buffer I/O error on device sdq,
logical block 0 

	Regards Manuel Herr 


[-- Attachment #1.2: Type: text/html, Size: 4551 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-29 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 10:02 Device Access Question Herr, Manuel
2006-09-29 10:04 ` Bernd Zeimetz
2006-09-29 15:49 ` Edward Goggin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.