<?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: Messed up volume groups! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538940#M649092</link>
    <description>Thanks for the quick reply. I pvremove'd and went through mys teps again with 'mknod /dev/vgraid/group c 64 0x040000' and still get the same error. I don't quite get what you meant when you said when ll /dev/*/group allows me to. This is the output of that -- the vg00 is on local drive. &lt;BR /&gt;&lt;BR /&gt;# ll /dev/*/group&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000000 Apr 18 09:44 /dev/vg00/group&lt;BR /&gt;crw-r-----   1 root       sys         64 0x040000 Jun 11 08:54 /dev/vgraid/group&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong now?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Melissa</description>
    <pubDate>Mon, 11 Jun 2001 14:01:43 GMT</pubDate>
    <dc:creator>Melissa Murphy</dc:creator>
    <dc:date>2001-06-11T14:01:43Z</dc:date>
    <item>
      <title>Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538938#M649090</link>
      <description>Well, I think I really made a mess of this one! I've been trying to set up volume groups on a RAID system between two HP machines. The first one is all working out and I was able to create volume groups and such. The second machine points to the alternate path and that is where I'm having problems. I actually got to where it would have been alright, but I botched it from there. I did:&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/rdsk/c4t0d1&lt;BR /&gt;# mkdir /dev/vgraid&lt;BR /&gt;# mknod /dev/vgraid/group c 64 0x040100&lt;BR /&gt;# vgcreate /dev/vgraid /dev/dsk/c4t0d1&lt;BR /&gt;# lvcreate /dev/vgraid -L 68361&lt;BR /&gt;&lt;BR /&gt;That threw back an lvol1 at me. Let me tell you right now that this is pretty much my first experience with anything unix. At that point I wanted to redo it and rename it, and for some reason felt inclined to rm the vgraid directory (but later learned about vgremove, etc). I just kept digging myself deeper tweaking with the nodes, I guess and now it's just a mess.&lt;BR /&gt;&lt;BR /&gt;This is what I get now whenever I try to do anything:&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/rdsk/c4t0d1&lt;BR /&gt;Physical volume "/dev/rdsk/c4t0d1" has been successfully created.&lt;BR /&gt;# mkdir /dev/vgraid&lt;BR /&gt;# mknod /dev/vgraid/group c 64 0x040100&lt;BR /&gt;# vgcreate /dev/vgraid /dev/dsk/c4t0d1&lt;BR /&gt;Increased the number of physical extents per physical volume to 17346.&lt;BR /&gt;vgcreate: Volume group "/dev/vgraid" could not be created:&lt;BR /&gt;A volume group is already using this major and minor number.&lt;BR /&gt;Please check the minor number of the "group" device file.&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;I'm assuming by not removing my volume group properly that I most likely left some remnant of the group somewhere that I can't find. I've been reading through man pages and the forums here, but I'm having trouble finding how I can clean this up when I don't even know the path of the volume group that is using the minor number. Is there a way to clean this up, or will I end up having to wipe the disk and start fresh?&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Melissa Murphy</description>
      <pubDate>Mon, 11 Jun 2001 13:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538938#M649090</guid>
      <dc:creator>Melissa Murphy</dc:creator>
      <dc:date>2001-06-11T13:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538939#M649091</link>
      <description>mknod /dev/vgraid/group c 64 0x040100 &lt;BR /&gt;is your problem&lt;BR /&gt;&lt;BR /&gt;use 0x040000 &lt;BR /&gt;once ll /dev/*/group allows you.&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 11 Jun 2001 13:49:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538939#M649091</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-11T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538940#M649092</link>
      <description>Thanks for the quick reply. I pvremove'd and went through mys teps again with 'mknod /dev/vgraid/group c 64 0x040000' and still get the same error. I don't quite get what you meant when you said when ll /dev/*/group allows me to. This is the output of that -- the vg00 is on local drive. &lt;BR /&gt;&lt;BR /&gt;# ll /dev/*/group&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000000 Apr 18 09:44 /dev/vg00/group&lt;BR /&gt;crw-r-----   1 root       sys         64 0x040000 Jun 11 08:54 /dev/vgraid/group&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong now?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Melissa</description>
      <pubDate>Mon, 11 Jun 2001 14:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538940#M649092</guid>
      <dc:creator>Melissa Murphy</dc:creator>
      <dc:date>2001-06-11T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538941#M649093</link>
      <description>Hi Melissa:&lt;BR /&gt;&lt;BR /&gt;The volume group must be unique.  When you do a 'mknod', for example, to make vg01, you would specify:&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vg01/group c 64 0xXY0000 &lt;BR /&gt;&lt;BR /&gt;...where XY=01 for volume group 01.  That is, the first two digits of the group file denote the volume group number.&lt;BR /&gt;&lt;BR /&gt;To unravel what you have done, do this:&lt;BR /&gt;&lt;BR /&gt;# lvremove /dev/vgXX/lvolX #...for all...&lt;BR /&gt;# vgreduce /dev/vgXX /dev/dsk/cXtYdZ #...all but the *last* physical disk!&lt;BR /&gt;# vgremove /dev/vgXX #...now remove the last...&lt;BR /&gt;# rm /dev/vgXX/group&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 11 Jun 2001 14:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538941#M649093</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-06-11T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538942#M649094</link>
      <description>After doing the ll /dev/*/group&lt;BR /&gt;you are looking for a unique index number for the vg... yours are unique.. you have a zero and a 4.  (you could have chosen 1, 2, 3 ..., but not 0)&lt;BR /&gt;I assume you are getting the device file for the disk from ioscan -fnkCdisk&lt;BR /&gt;&lt;BR /&gt;Make sure the disk/lun is the one you want:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/dsk/c4t0d1 of=/dev/null&lt;BR /&gt;&lt;BR /&gt;then you will have to &lt;BR /&gt;# pvcreate /dev/rdsk/c4t0d1 &lt;BR /&gt;(or -f to save typing (force overwrite))&lt;BR /&gt;Physical volume "/dev/rdsk/c4t0d1" has been successfully created. &lt;BR /&gt;good!!&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vgraid &lt;BR /&gt;already done&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vgraid/group c 64 0x040000&lt;BR /&gt;already done&lt;BR /&gt;&lt;BR /&gt;# vgcreate /dev/vgraid /dev/dsk/c4t0d1 &lt;BR /&gt;Should create a volume group&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab to verify&lt;BR /&gt;&lt;BR /&gt;vgdisplay /dev/vgraid&lt;BR /&gt;&lt;BR /&gt;also&lt;BR /&gt;&lt;BR /&gt;Then &lt;BR /&gt;create your lvols.&lt;BR /&gt;&lt;BR /&gt;lvcreate -L 1000 vgraid&lt;BR /&gt;(lvol size 1000MB in vgraid)&lt;BR /&gt;Lvol created message&lt;BR /&gt;&lt;BR /&gt;newfs -F vxfs /dev/vgraid/rlvol1&lt;BR /&gt;mkdir /mount&lt;BR /&gt;mount /dev/vgraid/lvol1 /mount&lt;BR /&gt;bdf&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 11 Jun 2001 14:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538942#M649094</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-11T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538943#M649095</link>
      <description>Thanks, but I think I've done too much messing around for that to work anymore. :( There is no volume group that I can see to remove. I have nothing to put in the XX spot of vgXX. All I have is a vg00 that was there when I got here and is working. The volume groups that I created previously have been removed, but not the proper way. There's no logical volumes that I can remove properly either. I can't find them anywhere, but I gues there's still traces of them left over. In my /dev directory now there's only a vg00 directory and a vgraid with the group node that I just created, but there are no working volume groups that are associated with vgraid. How would I unravel this now that I can't see the groups?&lt;BR /&gt;&lt;BR /&gt;Melissa</description>
      <pubDate>Mon, 11 Jun 2001 14:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538943#M649095</guid>
      <dc:creator>Melissa Murphy</dc:creator>
      <dc:date>2001-06-11T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538944#M649096</link>
      <description>To remove vgs in future,&lt;BR /&gt;vgexport vgname&lt;BR /&gt;&lt;BR /&gt;If you don't want your vgraid any more, &lt;BR /&gt;vgimport /dev/vgraid /dev/rdsk/c4t0d1&lt;BR /&gt;vgexport vgraid&lt;BR /&gt;cd /etc/lvmconf/&lt;BR /&gt;rm the vgraid.conf&lt;BR /&gt;files&lt;BR /&gt;&lt;BR /&gt;sam can do all this for you!&lt;BR /&gt;/usr/sbin/sam&lt;BR /&gt;Don't jump into the deep end just yet!&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 11 Jun 2001 14:17:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538944#M649096</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-11T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538945#M649097</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;Thanks -- I think I'm starting to get it. Yes, I found the c4t0d1 through ioscan. I'm writing down mostly everything I've been doing and random notes, and I have here that 0x040000 is associated with c4t0d0 and 0x040100 was with c4t0d1 before I changed anything. I'm not really sure what these are (still have a lot to learn), but will I mess anything up by choosing 0x040000 like you suggested?&lt;BR /&gt;&lt;BR /&gt;Also, everything is okay through pvcreate, mkdir and mknod, but when it gets to vgcreate, I still get that another group is using the minor number. If I were to choose a number other than 4 would this work now?&lt;BR /&gt;&lt;BR /&gt;I was having problems with sam doing this. I have a 100GB array with hardware path 10/8.8.0.255.0.0.0 and a 67GB on 10/8.8.0.255.0.0.1 and sam would only see the large one when I wanted it on the smaller. I tried playing with the alternate path and everything, but could only create a volume group on the 100GB disk. That could have been just me not really knowing how to use sam, but I could never make it see the smaller one.&lt;BR /&gt;&lt;BR /&gt;I'll keep at it ... :)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Melissa</description>
      <pubDate>Mon, 11 Jun 2001 14:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538945#M649097</guid>
      <dc:creator>Melissa Murphy</dc:creator>
      <dc:date>2001-06-11T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538946#M649098</link>
      <description>Hi Melissa&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I was going through what is happenning , just a thought infact if you would have used SAM to create the voulme group inplace of  doing it through the command line may be you woul have avoided the total issue since SAM wou;ld not have let you create using the same minor no as used by the disk drives and may be would not have got into this at all. Though creating volume groups through SAM has its own shortcomings.&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 11 Jun 2001 14:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538946#M649098</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-06-11T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538947#M649099</link>
      <description>Hi Melissa:&lt;BR /&gt;&lt;BR /&gt;A common standard for volume group names is to name them "vgXX" where XX is a 2-digit number.  This number is the same one that is applied to 'mknod' as I noted above, and must be unique.&lt;BR /&gt;&lt;BR /&gt;You can name your volume group anything you want, however.  To find out what volume group numbers are used, do:&lt;BR /&gt;&lt;BR /&gt;# ls -l /dev/*/group&lt;BR /&gt;&lt;BR /&gt;and look at the first two digits after "0x".  Thus, if you see "0x040000" you know that this is volume group "04".&lt;BR /&gt;&lt;BR /&gt;To quickly see what physical disks are associated with what volume groups you can do:&lt;BR /&gt;&lt;BR /&gt;# strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;A very good overview of LVM tasks, and standards, can be found in "HP-UX System Administration Tasks":&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 11 Jun 2001 14:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538947#M649099</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-06-11T14:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538948#M649100</link>
      <description>Excellent! :)&lt;BR /&gt;&lt;BR /&gt;Well, it's working out now. I used 0x010000 instead of 0x040000 and now it's okay. Why would this be? I understand why it is nice and neat to use 01 because it's the first volume group, but is there an obvious reason as to why 04 wouldn't even work out? &lt;BR /&gt;&lt;BR /&gt;Anyhow, thanks a ton, guys! Getting to learn this sort of stuff is something I'd really like to pursue, and I guess if I have any questions, I know where to come! :)&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Melissa</description>
      <pubDate>Mon, 11 Jun 2001 14:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538948#M649100</guid>
      <dc:creator>Melissa Murphy</dc:creator>
      <dc:date>2001-06-11T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Messed up volume groups!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538949#M649101</link>
      <description>Hi Melissa (again):&lt;BR /&gt;&lt;BR /&gt;In answer to your last question...any number "would" work as long as the minor number for the group file is *unique*.  In your case, you had a left-over group file "0x040000" [minor number = 04].&lt;BR /&gt;&lt;BR /&gt;It's simply good practice [standard], and ***it makes scripting LVM building (and destruction) easier***, if you define your volume groups as "vgNN" where NN = 00, 01, etc. and maintain the same numerical relationship between your volume groups and your group files (as built with 'mknod'.  Similare principals apply for logical volume nomenclature.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 11 Jun 2001 15:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/messed-up-volume-groups/m-p/2538949#M649101</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-06-11T15:08:35Z</dc:date>
    </item>
  </channel>
</rss>

