Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm facing a problem on Boot on San installation, Os is installed, now I'm trying to define mapper device for others lun/disk with alias for multipath references Code: # ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6

    pvcreate /dev/mapper/disk_bin : device not found

    Hi,

    I'm facing a problem on Boot on San installation, Os is installed, now I'm trying to define mapper device for others lun/disk with alias for multipath references

    Code:
    # pvcreate /dev/dm-14 /dev/mapper/disk_bin_rac
      Device /dev/dm-14 created
      Device /dev/mapper/disk_bin_rac not found (or ignored by filtering).


    i've certainly forgot smthing... but where?

    my multipath.conf :
    Code:
    # cat /etc/multipath.conf
    defaults {
            user_friendly_names yes
            rr_min_io               100
            selector          "round-robin 0"
            path_grouping_policy multibus
            features "1 queue_if_no_path"
            path_checker readsector0
            failback immediate
            rr_weight               priorities
            no_path_retry           5
            getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
     
    }
     
    devnode_blacklist {
            devnode "sda[0-9]*"
            devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
            devnode "^hd[a-z]"
            devnode "^cciss!c[0-9]d[0-9]*"
    }
     
    devices {
            device {
            vendor "NETAPP"
            product "LUN"
            prio_callout "/sbin/mpath_prio_netapp /dev/%n"
            }
    }
     
    multipath {
                   wwid                    360a98000572d575a50346165535a7478
                   alias                   disk_boot1
     
    }
     
    multipath {
                   wwid                    360a98000572d575a5034623869694b2d
                   alias                   disk_boot2
     
    }
     
    multipath {
                    wwid                    360a98000572d575a5034623869694b44
                    alias                   disk_bin_rac
    }
    my lvm.conf :

    Code:
    # cat /etc/lvm/lvm.conf |egrep -v "#|^$"
    devices {
        dir = "/dev"
        scan = [ "/dev" ]
        preferred_names = [ ]
        filter = [ "a/.*/" ]
        cache_dir = "/etc/lvm/cache"
        cache_file_prefix = ""
        write_cache_state = 1
        sysfs_scan = 1
        md_component_detection = 1
        md_chunk_alignment = 1
        data_alignment = 0
        ignore_suspended_devices = 0
    }
    log {
        verbose = 0
        syslog = 1
        overwrite = 0
        level = 0
        indent = 1
        command_names = 0
        prefix = "  "
    }
    backup {
        backup = 1
        backup_dir = "/etc/lvm/backup"
        archive = 1
        archive_dir = "/etc/lvm/archive"
        retain_min = 10
        retain_days = 30
    }
    shell {
        history_size = 100
    }
    global {
        umask = 077
        test = 0
        units = "h"
        activation = 1
        proc = "/proc"
        locking_type = 1
        fallback_to_clustered_locking = 1
        fallback_to_local_locking = 1
        locking_dir = "/var/lock/lvm"
    }
    activation {
        missing_stripe_filler = "error"
        reserved_stack = 256
        reserved_memory = 8192
        process_priority = -18
        mirror_region_size = 512
        readahead = "auto"
        mirror_log_fault_policy = "allocate"
        mirror_device_fault_policy = "remove"
    }
    dmeventd {
        mirror_library = "libdevmapper-event-lvm2mirror.so"
        snapshot_library = "libdevmapper-event-lvm2snapshot.so"
    }

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    What are you trying to do?

    The multipath daemon will look at the systems HDD's (as defined by filters in multipath.conf) and create a /dev/mapper device for each *unique* HDD.

    A) What are the multipath devices?

    Code:
    multipath -ll
    B) What are are the mapper devices?

    Code:
    ls -alh /dev/mapper

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    6
    Hi,

    Thanks for your answer. I'vef ound my error :

    i've deleted theses values (which concerned boot disk)

    Code:
    multipath {
                   wwid                    360a98000572d575a50346165535a7478
                   alias                   disk_boot1
     
    }
     
    multipath {
                   wwid                    360a98000572d575a5034623869694b2d
                   alias                   disk_boot2
     
    }
    and add
    Code:
    multipaths {
    before multipath definition...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...