Options

Claimrules

dave330idave330i Member Posts: 2,091 ■■■■■■■■■■
Had to write some custom claimrules today because Powerpath & RDM didn't like to play with each other. Didn't think I would ever use claimrules in real life when I was studying it for the DCA. Had to write it for 12 different LUNs so it took a while, but overall wasn't too bad.
2018 Certification Goals: Maybe VMware Sales Cert
"Simplify, then add lightness" -Colin Chapman

Comments

  • Options
    EssendonEssendon Member Posts: 4,546 ■■■■■■■■■■
    Care to share what you wrote?
    NSX, NSX, more NSX..

    Blog >> http://virtual10.com
  • Options
    blargoeblargoe Member Posts: 4,174 ■■■■■■■■■□
    Yeah, please share. I never thought I would actually see a real world application for this :)
    IT guy since 12/00

    Recent: 11/2019 - RHCSA (RHEL 7); 2/2019 - Updated VCP to 6.5 (just a few days before VMware discontinued the re-cert policy...)
    Working on: RHCE/Ansible
    Future: Probably continued Red Hat Immersion, Possibly VCAP Design, or maybe a completely different path. Depends on job demands...
  • Options
    dave330idave330i Member Posts: 2,091 ■■■■■■■■■■
    It was pretty basic. Claimrule works like ACL in that if there's 2 rules against the same object, the lower number rule in invoked, while higher number rule is ignored. Powerpath rules started at 350, so I set mine in 200s:

    esxcli storage core claimrule add -r 2xx -t location -L xx -P NMP
    esxcli storage core claimrule load
    esxcli storage core claiming unclaim -t location -L xx
    esxcli storage core claimrule run
    2018 Certification Goals: Maybe VMware Sales Cert
    "Simplify, then add lightness" -Colin Chapman
Sign In or Register to comment.