Not stopping iscsid: iscsi sessions still active[WARNING]

来源:互联网 发布:男士商务单肩包 知乎 编辑:程序博客网 时间:2024/06/06 06:27

  今天是2014-02-11,在安装rac的时候,不知道什么原因在一个节点无法挂载磁盘:

如下:

root@Rac-one udev]# service iscsid restart
Not stopping iscsid: iscsi sessions still active[WARNING]
Starting iscsid:
[root@Rac-one udev]# rpm -qa | grep iscsi
iscsi-initiator-utils-6.2.0.873-2.0.1.el6.x86_64
[root@Rac-one udev]# service iscsi stop
Stopping iscsi: [  OK  ]
[root@Rac-one udev]# service iscsi start
Starting iscsi: [  OK  ]
[root@Rac-one udev]# service iscsi status
iSCSI Transport Class version 2.0-870
version 6.2.0-873.2.el6
Target: iqn.2006-01.com.openfiler:tsn.11f5bacd230d
        Current Portal: 192.168.2.11:3260,1
        Persistent Portal: 192.168.2.11:3260,1
                **********
                Interface:
                **********
                Iface Name: default
                Iface Transport: tcp
                Iface Initiatorname: iqn.1988-12.com.oracle:5f0e774c032
                Iface IPaddress: 192.168.2.111
                Iface HWaddress: <empty>
                Iface Netdev: <empty>
                SID: 2
                iSCSI Connection State: LOGGED IN
                iSCSI Session State: LOGGED_IN
                Internal iscsid Session State: NO CHANGE
                *********
                Timeouts:
                *********
                Recovery Timeout: 120
                Target Reset Timeout: 30
                LUN Reset Timeout: 30
                Abort Timeout: 15
                *****
                CHAP:
                *****
                username: <empty>
                password: ********
                username_in: <empty>
                password_in: ********
                ************************
                Negotiated iSCSI params:
                ************************
                HeaderDigest: None
                DataDigest: None
                MaxRecvDataSegmentLength: 262144
                MaxXmitDataSegmentLength: 131072
                FirstBurstLength: 262144
                MaxBurstLength: 262144
                ImmediateData: No
                InitialR2T: Yes
                MaxOutstandingR2T: 1
                ************************
                Attached SCSI devices:
                ************************
                Host Number: 4  State: running
                scsi4 Channel 00 Id 0 Lun: 0
                        Attached scsi disk sdb          State: running
                scsi4 Channel 00 Id 0 Lun: 1
                        Attached scsi disk sdc          State: running
                scsi4 Channel 00 Id 0 Lun: 2
                        Attached scsi disk sdd          State: running
                scsi4 Channel 00 Id 0 Lun: 3
                        Attached scsi disk sde          State: running
                scsi4 Channel 00 Id 0 Lun: 4
                        Attached scsi disk sdf          State: running
[root@Rac-one udev]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 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: 0x000756f8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        3917    31353856   8e  Linux LVM

Disk /dev/mapper/vg_racone-LogVol01: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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


Disk /dev/mapper/vg_racone-LogVol00: 1610 MB, 1610612736 bytes
255 heads, 63 sectors/track, 195 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

可是在存储界面可以看到两个节点都已经挂载上了:

尝试重新更新会话:

[root@Rac-one log]# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.11f5bacd230d -p 192.168.2.11 -R
Rescanning session [sid: 3, target: iqn.2006-01.com.openfiler:tsn.11f5bacd230d, portal: 192.168.2.11,3260]
[root@Rac-one log]# iscsiadm -m session
tcp: [3] 192.168.2.11:3260,1 iqn.2006-01.com.openfiler:tsn.11f5bacd230d
[root@Rac-one log]# iscsiadm -m session
tcp: [3] 192.168.2.11:3260,1 iqn.2006-01.com.openfiler:tsn.11f5bacd230d
[root@Rac-one log]#
[root@Rac-one log]#
[root@Rac-one log]#
[root@Rac-one log]#
[root@Rac-one log]#
[root@Rac-one log]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 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: 0x000756f8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        3917    31353856   8e  Linux LVM

Disk /dev/mapper/vg_racone-LogVol01: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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


Disk /dev/mapper/vg_racone-LogVol00: 1610 MB, 1610612736 bytes
255 heads, 63 sectors/track, 195 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

[root@Rac-one log]#
[root@Rac-one log]#

查看日志如下:

Feb 11 19:16:00 rac-one pulseaudio[2602]: alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write!
Feb 11 19:16:00 rac-one pulseaudio[2602]: alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_intel8x0'. Please report this issue to the ALSA developers.
Feb 11 19:16:00 rac-one pulseaudio[2602]: alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Feb 11 19:16:00 rac-one rtkit-daemon[2604]: Sucessfully made thread 2613 of process 2602 (/usr/bin/pulseaudio) owned by '42' RT at priority 5.
Feb 11 19:41:43 rac-one kernel: connection1:0: detected conn error (1020)
Feb 11 19:41:44 rac-one iscsid: Connection1:0 to [target: iqn.2006-01.com.openfiler:tsn.11f5bacd230d, portal: 192.168.2.11,3260] through [iface: default] is shutdown.
Feb 11 19:41:57 rac-one kernel: scsi4 : iSCSI Initiator over TCP/IP
Feb 11 19:41:57 rac-one kernel: scsi 4:0:0:0: Direct-Access     OPNFILER VIRTUAL-DISK     0    PQ: 0 ANSI: 4
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:0: [sdb] 33161216 512-byte logical blocks: (16.9 GB/15.8 GiB)
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:0: [sdb] Write Protect is off
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:0: Attached scsi generic sg2 type 0
Feb 11 19:41:57 rac-one kernel: scsi 4:0:0:1: Direct-Access     OPNFILER VIRTUAL-DISK     0    PQ: 0 ANSI: 4
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:1: Attached scsi generic sg3 type 0
Feb 11 19:41:57 rac-one kernel: scsi 4:0:0:2: Direct-Access     OPNFILER VIRTUAL-DISK     0    PQ: 0 ANSI: 4
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:2: Attached scsi generic sg4 type 0
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:1: [sdc] 16842752 512-byte logical blocks: (8.62 GB/8.03 GiB)
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:2: [sdd] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:1: [sdc] Write Protect is off
Feb 11 19:41:57 rac-one kernel: scsi 4:0:0:3: Direct-Access     OPNFILER VIRTUAL-DISK     0    PQ: 0 ANSI: 4
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:3: Attached scsi generic sg5 type 0
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:2: [sdd] Write Protect is off
Feb 11 19:41:57 rac-one kernel: scsi 4:0:0:4: Direct-Access     OPNFILER VIRTUAL-DISK     0    PQ: 0 ANSI: 4
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:1: [sdc] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:4: Attached scsi generic sg6 type 0
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:2: [sdd] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:3: [sde] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
Feb 11 19:41:57 rac-one kernel: sdb: unknown partition table
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:3: [sde] Write Protect is off
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:4: [sdf] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB)
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:4: [sdf] Write Protect is off
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:3: [sde] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:4: [sdf] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 11 19:41:57 rac-one kernel: sdc: unknown partition table
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:0: [sdb] Attached SCSI disk
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:1: [sdc] Attached SCSI disk
Feb 11 19:41:57 rac-one kernel: sdd: unknown partition table
Feb 11 19:41:57 rac-one kernel: sde: unknown partition table
Feb 11 19:41:57 rac-one kernel: sdf: unknown partition table
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:3: [sde] Attached SCSI disk
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:4: [sdf] Attached SCSI disk
Feb 11 19:41:57 rac-one kernel: sd 4:0:0:2: [sdd] Attached SCSI disk
Feb 11 19:41:57 rac-one iscsid: Could not set session2 priority. READ/WRITE throughout and latency could be affected.

 

解决办法:

[root@Rac-one ~]#  /sbin/start_udev
Starting udev: [  OK  ]
[root@Rac-one ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 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: 0x000756f8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        3917    31353856   8e  Linux LVM

Disk /dev/mapper/vg_racone-LogVol01: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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


Disk /dev/mapper/vg_racone-LogVol00: 1610 MB, 1610612736 bytes
255 heads, 63 sectors/track, 195 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


Disk /dev/sdb: 17.0 GB, 16978542592 bytes
64 heads, 32 sectors/track, 16192 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdc: 8623 MB, 8623489024 bytes
64 heads, 32 sectors/track, 8224 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdd: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sde: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdf: 1073 MB, 1073741824 bytes
34 heads, 61 sectors/track, 1011 cylinders
Units = cylinders of 2074 * 512 = 1061888 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

 

 

0 0