<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot Create Volume Group with SAM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403697#M201331</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I cannot comment on why SAM failed as I never use SAM to work on LVM components. &lt;BR /&gt;&lt;BR /&gt;For the initial command line failure, if you don't specify a PE size, then it will be defaulted to 4MB. VGRA is written as a table in the first Physical Extent of the PV. If table resulted by the combination of your max PE and PE size doesn't fit in 4MB, then you see this error. So, you will need to either increase the PE size or decrease the max PEs to accommodate the VGRA in that one extent.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Tue, 19 Oct 2004 17:35:16 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-10-19T17:35:16Z</dc:date>
    <item>
      <title>Cannot Create Volume Group with SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403696#M201330</link>
      <description>I have two servers(HostA and HostB) connected to EVA5000, I presented some LUNs(200GB) of EVA5000 to these two servers, and I successfully created a VG on one 200G with SAM 3 weeks ago. Now, when I tried to create more VGs on those 200GB LUNs, but failed this time :(&lt;BR /&gt;&lt;BR /&gt;When I used SAM, I got the following error message:&lt;BR /&gt;"No device files for the selected device were found in /dev"&lt;BR /&gt;And here's the detail I got it from SAM log:&lt;BR /&gt;----- Tue Oct 19 17:06:37 2004: Adding the disk at hardware path 255/255/0/0.1&lt;BR /&gt;      with LVM.&lt;BR /&gt;    * Creating the device files for the disk at 255/255/0/0.1, using the sdisk&lt;BR /&gt;      driver.&lt;BR /&gt;    * Creating device files.&lt;BR /&gt;    * Creating the device file /dev/rdsk/disk_query.&lt;BR /&gt;    * Creating a specific device file.&lt;BR /&gt;    * Using libIO calls to make device file (name,hw_path,mode,options):&lt;BR /&gt;      (/dev/rdsk/disk_query, 255/255/0/0.1, 0, )&lt;BR /&gt;    * Creating the device file /dev/rdsk/disk_query.&lt;BR /&gt;    * Creating a specific device file.&lt;BR /&gt;    * Creating the device files for the disk at 255/255/0/0.1, using the sdisk&lt;BR /&gt;      driver.&lt;BR /&gt;    * Creating device files.&lt;BR /&gt;    * Creating the device file /dev/rdsk/disk_query.&lt;BR /&gt;    * Creating a specific device file.&lt;BR /&gt;    * Using libIO calls to make device file (name,hw_path,mode,options):&lt;BR /&gt;      (/dev/rdsk/disk_query, 255/255/0/0.1, 0, )&lt;BR /&gt;    * Successfully created /dev/rdsk/disk_query.&lt;BR /&gt;    * Creating the device file /dev/dsk/disk_query.&lt;BR /&gt;    * Creating a specific device file.&lt;BR /&gt;    * Using libIO calls to make device file (name,hw_path,mode,options):&lt;BR /&gt;      (/dev/dsk/disk_query, 255/255/0/0.1, 1, )&lt;BR /&gt;    * Successfully created /dev/dsk/disk_query.&lt;BR /&gt;    * Creating the device file /dev/dsk/disk_query.&lt;BR /&gt;    * Creating a specific device file.&lt;BR /&gt;    * Using libIO calls to make device file (name,hw_path,mode,options):&lt;BR /&gt;      (/dev/dsk/disk_query, 255/255/0/0.1, 0, )&lt;BR /&gt;    * Successfully created /dev/dsk/disk_query.&lt;BR /&gt;    * Creating volume group vg02.&lt;BR /&gt;    * Performing task "Installing device files for a specific hardware path.":&lt;BR /&gt;      Installing device files for hardware path 255/255/0/0.1 .&lt;BR /&gt;    * Executing the following command:&lt;BR /&gt;          /sbin/insf -eH 255/255/0/0.1&lt;BR /&gt;    * Command completed with exit status 0.&lt;BR /&gt;ERROR No device files for the selected device were found in /dev.&lt;BR /&gt;&lt;BR /&gt;But I am sure I can see all LUNs from server side:&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnC disk&lt;BR /&gt;Class     I  H/W Path       Driver   S/W State   H/W Type     Description&lt;BR /&gt;==========================================================================&lt;BR /&gt;disk      0  0/0/3/0.0.0.0  sdisk    CLAIMED     DEVICE       TEAC    DV-28E-C&lt;BR /&gt;                           /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0&lt;BR /&gt;disk      1  0/1/1/0.0.0    sdisk    CLAIMED     DEVICE       HP 73.4GST373453LC&lt;BR /&gt;                           /dev/dsk/c2t0d0   /dev/rdsk/c2t0d0&lt;BR /&gt;disk      2  0/1/1/0.1.0    sdisk    CLAIMED     DEVICE       HP 73.4GST373453LC&lt;BR /&gt;                           /dev/dsk/c2t1d0   /dev/rdsk/c2t1d0&lt;BR /&gt;disk      3  255/255/0/0.0  sdisk    CLAIMED     DEVICE       HSV110 (C)COMPAQ&lt;BR /&gt;                           /dev/dsk/c12t0d0   /dev/rdsk/c12t0d0&lt;BR /&gt;disk      5  255/255/0/0.1  sdisk    CLAIMED     DEVICE       HSV110 (C)COMPAQ&lt;BR /&gt;                           /dev/dsk/c12t0d1   /dev/rdsk/c12t0d1&lt;BR /&gt;disk      6  255/255/2/0.0  sdisk    CLAIMED     DEVICE       HSV110 (C)COMPAQ&lt;BR /&gt;                           /dev/dsk/c18t0d0   /dev/rdsk/c18t0d0&lt;BR /&gt;&lt;BR /&gt;( NOTE: now, I already had VG on "/dev/dsk/c12t0d0", but can't create VG on "/dev/dsk/c12t0d1" or '/dev/dsk/c18t0d0" )&lt;BR /&gt;&lt;BR /&gt;And I don't have problem to receate the device file with "insf" and check diskinfo:&lt;BR /&gt;&lt;BR /&gt;# insf -eH 255/255/0/0.1&lt;BR /&gt;insf: Installing special files for sdisk instance 5 address 255/255/0/0.1&lt;BR /&gt;&lt;BR /&gt;# diskinfo /dev/rdsk/c12t0d1&lt;BR /&gt;SCSI describe of /dev/rdsk/c12t0d1:&lt;BR /&gt;             vendor: COMPAQ&lt;BR /&gt;         product id: HSV110 (C)COMPAQ&lt;BR /&gt;               type: direct access&lt;BR /&gt;               size: 209715200 Kbytes&lt;BR /&gt;   bytes per sector: 512&lt;BR /&gt;# diskinfo /dev/rdsk/c18t0d0&lt;BR /&gt;SCSI describe of /dev/rdsk/c18t0d0:&lt;BR /&gt;             vendor: COMPAQ&lt;BR /&gt;         product id: HSV110 (C)COMPAQ&lt;BR /&gt;               type: direct access&lt;BR /&gt;               size: 104857600 Kbytes&lt;BR /&gt;   bytes per sector: 512&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And I've applied the latest SAM patch to the system, I don't think SAM's bug for EVA makes the problem here.&lt;BR /&gt;&lt;BR /&gt;Then, I tried to use command line to create VG instead of using SAM:&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/rdsk/c12t0d1&lt;BR /&gt;Physical volume "/dev/rdsk/c12t0d1" has been successfully created.&lt;BR /&gt;# mkdir /dev/vg02&lt;BR /&gt;# mknod /dev/vg02/group c 64 0x020000&lt;BR /&gt;# vgcreate /dev/vg02 /dev/dsk/c12t0d1&lt;BR /&gt;Increased the number of physical extents per physical volume to 51199.&lt;BR /&gt;vgcreate: Volume group "/dev/vg02" could not be created:&lt;BR /&gt;VGRA for the disk is too big for the specified parameters. Increase the&lt;BR /&gt;extent size or decrease max_PVs/max_LVs and try again.&lt;BR /&gt;&lt;BR /&gt;# vgcreate -e 65533 -l 4 -p 4 -s 8 /dev/vg02 /dev/dsk/c12t0d1&lt;BR /&gt;Volume group "/dev/vg02" has been successfully created.&lt;BR /&gt;Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.conf&lt;BR /&gt;&lt;BR /&gt;So, it seems we cannot use SAM for this case...&lt;BR /&gt;Any comment on this ?&lt;BR /&gt;Thanks !</description>
      <pubDate>Tue, 19 Oct 2004 17:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403696#M201330</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2004-10-19T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create Volume Group with SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403697#M201331</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I cannot comment on why SAM failed as I never use SAM to work on LVM components. &lt;BR /&gt;&lt;BR /&gt;For the initial command line failure, if you don't specify a PE size, then it will be defaulted to 4MB. VGRA is written as a table in the first Physical Extent of the PV. If table resulted by the combination of your max PE and PE size doesn't fit in 4MB, then you see this error. So, you will need to either increase the PE size or decrease the max PEs to accommodate the VGRA in that one extent.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 19 Oct 2004 17:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403697#M201331</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-19T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create Volume Group with SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403698#M201332</link>
      <description>SAM did not fail. Patching will not help.&lt;BR /&gt;&lt;BR /&gt;An underlying command in, vgcreate failed because the parameters sent to it were not correct.&lt;BR /&gt;&lt;BR /&gt;Your vgcreate command contained customizations required to successfully create the volume group.&lt;BR /&gt;&lt;BR /&gt;SAM wasn't programmed to cover every eventuality, though I think if you looked at the options for vgcreate in SAM you might find a way to get it to issue the vgcreate command that you eventually issued.&lt;BR /&gt;&lt;BR /&gt;A lesson can be learned here. LVM work is best done on the command line. The main reason is if you ever have to go into lv maintenance mode or single user mode sam wont be there to help. You'll need to know the commands yourself.&lt;BR /&gt;&lt;BR /&gt;To quote Bill Hassel, Real sysadmins's don't use GUI's. Though the first time I heard the remark, I got upset, I later learned the truth.&lt;BR /&gt;&lt;BR /&gt;I try and do everything I can not from the command line. About the only thing I do with SAM is test it when building a system so its working for my backup. That and set up EMS which I've never bothered to learn how to do any other way than SAM.&lt;BR /&gt;&lt;BR /&gt;Its a great investment of your time to learn how to do LVM from the commmand line. This is not the first time you are going to find thats the best way to go. I'd recommend doing before you have to learn it in a crisis.&lt;BR /&gt;&lt;BR /&gt;Almost every sysadmin has had a failure or mistake and been forced to do disk work in single user or lv maintenance mode. &lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 19 Oct 2004 19:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403698#M201332</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-19T19:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create Volume Group with SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403699#M201333</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Thanks for your comments about command line. Yes, I know a sysadm should use command line instead of GUI, I get used to do everything via different way.&lt;BR /&gt;&lt;BR /&gt;Now, the problem is that SAM has the option to let me input those parameters, like Max PE, Max LE, and PE size, but I still had the same problem when I used those parameters ( exactly the same as those I used in command line ), I got the same error.&lt;BR /&gt;That's why I raise this question.&lt;BR /&gt;Thanks !</description>
      <pubDate>Wed, 20 Oct 2004 12:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403699#M201333</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2004-10-20T12:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Create Volume Group with SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403700#M201334</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Run '/usr/sam/bin/samlog_viewer' and see what commands SAM ran. Or you can 'view' /var/sam/log/samlog to search for yourself.&lt;BR /&gt;You may get clues there.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 20 Oct 2004 13:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-create-volume-group-with-sam/m-p/3403700#M201334</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-20T13:31:57Z</dc:date>
    </item>
  </channel>
</rss>

