Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev + iscsi + multipathing issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
phenxor
n00b
n00b


Joined: 27 Oct 2004
Posts: 30

PostPosted: Mon Jun 14, 2010 5:01 am    Post subject: udev + iscsi + multipathing issue Reply with quote

Hi All,

I have a couple of issues on a new Gentoo VM i've setup.

Code:
dnetwww3 dev # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.34-gentoo x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3360_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 04 Jun 2010 15:00:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac acl amd64 authfile bzip2 clamav cli cracklib crypt ctype curl cxx dba dkim domainkeys dri ftp gdbm geoip gpm hash iconv imap json logrotate mhash mmx modules mp3 mudflap multilib mysqli ncurses nls nptl nptlonly ogg openmp pam pcre pear perl pppd python readline reflection session simplexml snmp soap spl sse sse2 sse3 sse4 ssl suexec sysfs tcpd theora truetype unicode vchroot vhosts virtual-users x264 xml xmlrpc xorg xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



We are running a Dell MD3000i ISCSI SAN which is connected to the gentoo virtual machine and multipathing is all set up - however after creating a partition on /dev/mapper/mpath0 I am not seeing /dev/mapper/mpath0p1.

Code:
dnetwww3 ~ # fdisk -l /dev/mapper/mpath0

WARNING: GPT (GUID Partition Table) detected on '/dev/mapper/mpath0'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/mapper/mpath0: 10674.2 GB, 10674197495808 bytes
255 heads, 63 sectors/track, 1297730 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: 0x00000000

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


Code:
dnetwww3 ~ # ls -alL /dev/mapper
total 0
drwxr-xr-x  2 root root      80 Jun 13 18:59 .
drwxr-xr-x 12 root root    3780 Jun 13 18:59 ..
crw-rw----  1 root root  10, 62 Jun 13 18:59 control
brw-------  1 root root 253,  0 Jun 13 18:59 mpath0
dnetwww3 ~ #



Any thoughts?

Thanks.
Back to top
View user's profile Send private message
phenxor
n00b
n00b


Joined: 27 Oct 2004
Posts: 30

PostPosted: Mon Jun 14, 2010 5:29 am    Post subject: Reply with quote

Solved by modifying udev multipath rule to add the bottom 3 lines:

Code:
dnetwww3 ~ # cat /etc/udev/rules.d/65-multipath.rules
#
# udev rules for multipathing.
# The persistent symlinks are created with the kpartx rules
#

# socket for uevents
RUN+="socket:/org/kernel/dm/multipath_event"

ACTION=="change", SUBSYSTEM=="block", KERNEL=="dm-*", \
PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info", \
RUN+="/sbin/kpartx -a /dev/mapper/%c"
Back to top
View user's profile Send private message
TJNII
l33t
l33t


Joined: 09 Nov 2003
Posts: 637
Location: for(;;);

PostPosted: Wed Mar 09, 2011 8:12 pm    Post subject: Reply with quote

The udev rule change fixed the partition entries not existing on boot for me.

Still having mount problems as multipathd starts after localmount, but that is covered in another thread.
_________________
Maintaining documentation on upgrades is apparently not within the power of Gentoo
Beware when you emerge -u world!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum