ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    iscsi target Path configuration

    IT Discussion
    iscsi linux lvm device mapper san lun
    3
    7
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • momurdaM
      momurda
      last edited by scottalanmiller

      Is there any real difference setting up iscsi targets using /dev/mapper/device as the iscsi target Path vs using /dev/vg/lv in the Path of ietd.conf. I have tried both and both work and point to the same device. I think one is just link to the other.
      Is there any reason to not use either one?

      1 Reply Last reply Reply Quote 2
      • scottalanmillerS
        scottalanmiller
        last edited by

        Mapper is there to be theoretically more flexible. Both should be symlinks to the same dm device.

        thwrT 1 Reply Last reply Reply Quote 2
        • thwrT
          thwr @scottalanmiller
          last edited by thwr

          @scottalanmiller said in iscsi target Path configuration:

          Mapper is there to be theoretically more flexible. Both should be symlinks to the same dm device.

          @mormuda: Just verifiy if /dev/vg/* is a symlink with something like

          Like SAM said, they are supposed to be symlinks

          I would use them anyway, because they are there for a purpose. Maybe the kernel device mapper gets replaced some day. In this case, LVM would point to the new "location". It may be not foreseeable as of today, but things like that already happened in the past.

          Erm, just saw this:
          http://unix.stackexchange.com/questions/53656/why-are-there-symlinks-in-dev-lvm

          For convenience, udev creates a symlink in /dev/mapper with the device mapper name associated with it. And if that device mapper device also happens to be a LVM logical volume, then the LVM subsystem also adds a /dev/vg/lv symlink to it.

          So it's exactly the other way around. Could you please check that with

          ls -lsa /dev/mapper/*
          

          Some of the links there should point to /dev/vg/...

          1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller
            last edited by

            Last system I checked LVM and mapper were equal symlinks pointing to the same thing. I checked it because I was documenting on CentOS.

            thwrT 1 Reply Last reply Reply Quote 0
            • thwrT
              thwr @scottalanmiller
              last edited by thwr

              @scottalanmiller said in iscsi target Path configuration:

              Last system I checked LVM and mapper were equal symlinks pointing to the same thing. I checked it because I was documenting on CentOS.

              Still interesting. Device mapper is just that, a mapper pointing to LVM (and LUKS) devices for example. So your mapper and LVM are both pointing to something "physical" like md devices or sd*?

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • momurdaM
                momurda
                last edited by

                Im just posting some stuff about iscsi as i test this new storage server i built.
                I built an iscsi target initially with the type=fileio rather than blockio
                During tests(moving vm disks between storage systems) i noticed incredibly slow write speeds. Hit a max of 20MB/sec with a 4 disk Raid10 software array, and was sad.

                So then i thought about changing it to type=blockio in the target declaration file.
                doing that doubled my write speeds to 40-45MB/sec. I think ive got an explanation why, but some here would know for sure.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @thwr
                  last edited by

                  @thwr said in iscsi target Path configuration:

                  @scottalanmiller said in iscsi target Path configuration:

                  Last system I checked LVM and mapper were equal symlinks pointing to the same thing. I checked it because I was documenting on CentOS.

                  Still interesting. Device mapper is just that, a mapper pointing to LVM (and LUKS) devices for example. So your mapper and LVM are both pointing to something "physical" like md devices or sd*?

                  Both pointing to the dm device, which is another layer of mapping.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post