{"id":378,"date":"2023-05-09T14:52:01","date_gmt":"2023-05-09T12:52:01","guid":{"rendered":"https:\/\/ptdb.ch\/?p=378"},"modified":"2023-05-09T14:52:01","modified_gmt":"2023-05-09T12:52:01","slug":"oracle-prkf-1125-multiple-values-specified-for-the-single-value-option-diskstring-dev-sd-dev-nvme0","status":"publish","type":"post","link":"https:\/\/ptdb.ch\/?p=378","title":{"rendered":"ORACLE: PRKF-1125 : multiple values specified for the single value option &#8220;diskstring&#8221;: \/dev\/sd*,\/dev\/nvme0*"},"content":{"rendered":"<p>Have you ever tried to modify the ASM diskstring with the srvctl utility. I mean, not changing the diskstring, but adding a new one to it. Due to the documentation, the asm_diskstring parameter specifies a comma delimited list of strings that limits the set of disks that an Oracle ASM instance discovers.<\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/ostmg\/init-params-asm-instance.html\">https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/ostmg\/init-params-asm-instance.html<\/a><\/p>\n<p>So &#8230; if it works for the parameter file, why shouldn&#8217;t it work with the srvctl utility. The simple thing I want to do, is to change the ASM diskstring from \/dev\/sd* to \/dev\/sd* , \/dev\/nvme0*.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 oracleasm]$ srvctl config asm\nASM home: &lt;CRS home&gt;\nPassword file: +DATA\/orapwasm\nBackup of Password file:\nASM listener: LISTENER\nSpfile: +DATA\/ASM\/ASMPARAMETERFILE\/registry.253.1135337751\nASM diskgroup discovery string: \/dev\/sd*\n&#x5B;grid@ocm199 oracleasm]$\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n&#x5B;grid@ocm199 oracleasm]$ srvctl modify asm -diskstring &quot;\/dev\/sd* , \/dev\/nvme0*&quot;\nPRKF-1125 : multiple values specified for the single value option &quot;diskstring&quot;: \/dev\/sd*,\/dev\/nvme0*\n\n&#x5B;grid@ocm199 oracleasm]$ srvctl modify asm -diskstring '\/dev\/sd*','\/dev\/nvme0*'\nPRKF-1125 : multiple values specified for the single value option &quot;diskstring&quot;: \/dev\/sd*,\/dev\/nvme0*\n\n<\/pre>\n<p>It doesn&#8217;t matter how I specify the diskstring, I always do get the error: PRKF-1125 : multiple values specified for the single value option &#8220;diskstring&#8221;: \/dev\/sd*,\/dev\/nvme0*<\/p>\n<p>The second option to change the ASM diskstring, is the asmcmd utiliy. The asmcmd utility comes with the commands dsget (diskstring get) and dsset (diskstring set).<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nASMCMD&gt; help dsget\ndsget\n        Retrieves the discovery diskstring value that is\n        used by the Oracle ASM Instance and its clients\n\nSynopsis\n        dsget &#x5B; --normal | --profile &#x5B; -f ] | --parameter ]\n\nDescription\n        The options for the dsget command are described below.\n\n        --normal        - Retrieves the discovery string from the Grid Plug\n                          and Play (GPnP) profile and the one that is set in\n                          the Oracle ASM instance. It returns one row each for\n                          the profile and parameter setting. This is the\n                          default setting.\n\n        --parameter     - Retrieves the ASM_DISKSTRING parameter setting of\n                          the Oracle ASM instance.\n\n        --profile       - Retrieves the discovery string from the GPnP\n                          profile.\n\n        -f              - If -f is specified, retrieves the discovery string\n                          from the local GPnP profile.  This parameter\n                          can only be specified if --profile is specified.\n\nExamples\n        The following example uses dsget to retrieve the current discovery\n        diskstring value from the GPnP profile and the ASM_DISKSTRING parameter.\n\n        ASMCMD &#x5B;+] &gt; dsget\n        profile: \/devices\/disk*\n        parameter: \/devices\/disk*\n\nSee Also\n       dsset\n\nASMCMD&gt; help dsset\ndsset\n        Sets the discovery diskstring value that is used by the Oracle ASM\n        instance and its clients.  The specified diskstring must be valid for\n        existing mounted disk groups. The updated value takes effect\n        immediately.\n\nSynopsis\n        dsset &#x5B; --normal | --parameter | --profile &#x5B; -f ] ] &lt;diskstring&gt;\n\nDescription\n        The options for the dsset command are described below.\n\n        --normal                - Sets the discovery string in the Grid Plug\n                                  and Play (GPnP) profile and in the Oracle\n                                  ASM instance.  The update occurs after the\n                                  Oracle ASM instance has successfully\n                                  validated that the specified discovery\n                                  string has discovered all the necessary disk\n                                  groups and voting files. Note that this\n                                  command fails if the instance is not using\n                                  a server parameter file (SPFILE).  This is\n                                  the default setting.\n\n        --profile               - Specifies the discovery diskstring that is\n                                  pushed to the GPnP profile without any\n                                  validation by the Oracle ASM instance,\n                                  ensuring that the instance can discover\n                                  all the required disk groups.  The update\n                                  is guaranteed to be propagated to all the\n                                  nodes that are part of the cluster\n\n        -f                      - If -f is specified, the specified\n                                  diskstring is pushed to the local GPnP\n                                  profile without any synchronization with\n                                  other nodes in the cluster. Note that this\n                                  command option updates only the local profile\n                                  file. This option should only be used in the\n                                  case of recovery. The command fails if the\n                                  Oracle Clusterware stack is running.  This\n                                  option can be specified only if --profile is\n                                  specified.\n        --parameter             - Specifies that the diskstring is updated in\n                                  memory after validating that the discovery\n                                  diskstring discovers all the current mounted\n                                  disk groups and voting files. The diskstring\n                                  is not persistently recorded in either the\n                                  SPFILE or the GPnP profile.\n        diskstring              - Specifies the value for the discovery\n                                  diskstring\n\nExamples\n        The following example uses dsset to set the current value of the\n        discovery diskstring in the GPnP profile.\n\n        ASMCMD &#x5B;+] &gt; dsset \/devices\/disk*\n\nSee Also\n       dsget\n\nASMCMD&gt;\n\n<\/pre>\n<p>OK. Let&#8217;s try them out.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n&#x5B;grid@ocm199 oracleasm]$ asmcmd dsget\nparameter:\/dev\/sd*\nprofile:\/dev\/sd*\n&#x5B;grid@ocm199 oracleasm]$\n&#x5B;grid@ocm199 oracleasm]$ asmcmd dsset '\/dev\/sd*','\/dev\/nvme0*'\n&#x5B;grid@ocm199 oracleasm]$\n&#x5B;grid@ocm199 oracleasm]$ asmcmd dsget\nparameter:\/dev\/sd*, \/dev\/nvme0*\nprofile:\/dev\/sd*,\/dev\/nvme0*\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@ocm199 oracleasm]$ srvctl config asm\nASM home: &lt;CRS home&gt;\nPassword file: +DATA\/orapwasm\nBackup of Password file:\nASM listener: LISTENER\nSpfile: +DATA\/ASM\/ASMPARAMETERFILE\/registry.253.1135337751\nASM diskgroup discovery string: \/dev\/sd*,\/dev\/nvme0*\n\n<\/pre>\n<p>Cool. It worked. \ud83d\ude42<\/p>\n<h3>Conclusion<\/h3>\n<p>In Oracle you will find ofter different ways to reach your goal. My workaround this time was to switch from the srvctl to the asmcmd utility.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever tried to modify the ASM diskstring with the srvctl utility. I mean, not changing the diskstring, but adding a new one to it. Due to the documentation, the asm_diskstring parameter specifies a comma delimited list of strings that limits the set of disks that an Oracle ASM instance discovers. https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/ostmg\/init-params-asm-instance.html So &#8230; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[2,4],"tags":[14,18],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-db","category-oracle","tag-asm","tag-oracle","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ORACLE: PRKF-1125 : multiple values specified for the single value option &quot;diskstring&quot;: \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ptdb.ch\/?p=378\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ORACLE: PRKF-1125 : multiple values specified for the single value option &quot;diskstring&quot;: \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB\" \/>\n<meta property=\"og:description\" content=\"Have you ever tried to modify the ASM diskstring with the srvctl utility. I mean, not changing the diskstring, but adding a new one to it. Due to the documentation, the asm_diskstring parameter specifies a comma delimited list of strings that limits the set of disks that an Oracle ASM instance discovers. https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/ostmg\/init-params-asm-instance.html So &#8230; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ptdb.ch\/?p=378\" \/>\n<meta property=\"og:site_name\" content=\"ptdb - Platinum DB\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-09T12:52:01+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ptdb.ch\/?p=378\",\"url\":\"https:\/\/ptdb.ch\/?p=378\",\"name\":\"ORACLE: PRKF-1125 : multiple values specified for the single value option \\\"diskstring\\\": \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB\",\"isPartOf\":{\"@id\":\"https:\/\/ptdb.ch\/#website\"},\"datePublished\":\"2023-05-09T12:52:01+00:00\",\"author\":{\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\"},\"breadcrumb\":{\"@id\":\"https:\/\/ptdb.ch\/?p=378#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ptdb.ch\/?p=378\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ptdb.ch\/?p=378#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ptdb.ch\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ORACLE: PRKF-1125 : multiple values specified for the single value option &#8220;diskstring&#8221;: \/dev\/sd*,\/dev\/nvme0*\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ptdb.ch\/#website\",\"url\":\"https:\/\/ptdb.ch\/\",\"name\":\"ptdb - Platinum DB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ptdb.ch\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ptdb.ch\"],\"url\":\"https:\/\/ptdb.ch\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ORACLE: PRKF-1125 : multiple values specified for the single value option \"diskstring\": \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ptdb.ch\/?p=378","og_locale":"en_US","og_type":"article","og_title":"ORACLE: PRKF-1125 : multiple values specified for the single value option \"diskstring\": \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB","og_description":"Have you ever tried to modify the ASM diskstring with the srvctl utility. I mean, not changing the diskstring, but adding a new one to it. Due to the documentation, the asm_diskstring parameter specifies a comma delimited list of strings that limits the set of disks that an Oracle ASM instance discovers. https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/21\/ostmg\/init-params-asm-instance.html So &#8230; [&hellip;]","og_url":"https:\/\/ptdb.ch\/?p=378","og_site_name":"ptdb - Platinum DB","article_published_time":"2023-05-09T12:52:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ptdb.ch\/?p=378","url":"https:\/\/ptdb.ch\/?p=378","name":"ORACLE: PRKF-1125 : multiple values specified for the single value option \"diskstring\": \/dev\/sd*,\/dev\/nvme0* - ptdb - Platinum DB","isPartOf":{"@id":"https:\/\/ptdb.ch\/#website"},"datePublished":"2023-05-09T12:52:01+00:00","author":{"@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b"},"breadcrumb":{"@id":"https:\/\/ptdb.ch\/?p=378#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ptdb.ch\/?p=378"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ptdb.ch\/?p=378#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ptdb.ch\/"},{"@type":"ListItem","position":2,"name":"ORACLE: PRKF-1125 : multiple values specified for the single value option &#8220;diskstring&#8221;: \/dev\/sd*,\/dev\/nvme0*"}]},{"@type":"WebSite","@id":"https:\/\/ptdb.ch\/#website","url":"https:\/\/ptdb.ch\/","name":"ptdb - Platinum DB","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ptdb.ch\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/ptdb.ch"],"url":"https:\/\/ptdb.ch\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":0,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}