<?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: Mount disk in new volume group without erasing data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093368#M553402</link>
    <description>Something else :&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/dsk/c3t10d0 &lt;BR /&gt;pvcreate: "/dev/dsk/c3t10d0": not a character device.&lt;BR /&gt;&lt;BR /&gt;With pvcreate you must use a character device, that is /dev/rdsk/c3t10d0. But if you want to vgimport it, there is no need to issue a pvcreate.&lt;BR /&gt;&lt;BR /&gt;Eric</description>
    <pubDate>Tue, 19 Feb 2008 16:05:25 GMT</pubDate>
    <dc:creator>Eric SAUBIGNAC</dc:creator>
    <dc:date>2008-02-19T16:05:25Z</dc:date>
    <item>
      <title>Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093363#M553397</link>
      <description>Hi. How does one create a volume group and mount a hard disk to it without erasing the data on the disk?&lt;BR /&gt;&lt;BR /&gt;Have tried the following:&lt;BR /&gt;&lt;BR /&gt;1. Using SAM ------------------------&lt;BR /&gt;Use "Create Volume Group" with options:&lt;BR /&gt;Selected disk: XXXXX&lt;BR /&gt;Use hardware path: 10/1/3/0.10.0&lt;BR /&gt;Volume group name: vg03&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;FAILS: "The command used to create volume groups, /sbin/vgcreate has failed. The stderr output is shown below. The volume group has not been created.&lt;BR /&gt;vgcreate: Volume group "dev/vg03" could not be created: The path does not specify a valid physical volume"&lt;BR /&gt;&lt;BR /&gt;The following directory was created:&lt;BR /&gt;# ll /dev/vg03&lt;BR /&gt;total 0&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x020000 Feb 19 15:37 group&lt;BR /&gt;&lt;BR /&gt;2.Using command line-------------&lt;BR /&gt;(without -f option to avoid erasing)&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/dsk/c3t10d0 &lt;BR /&gt;pvcreate: "/dev/dsk/c3t10d0": not a character device.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Dag</description>
      <pubDate>Tue, 19 Feb 2008 15:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093363#M553397</guid>
      <dc:creator>Dag A.</dc:creator>
      <dc:date>2008-02-19T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093364#M553398</link>
      <description>Will this be the only disk in the VG?  If so, you should just import the disk into the VG.&lt;BR /&gt;&lt;BR /&gt;Have a look at the 'vgimport' command.</description>
      <pubDate>Tue, 19 Feb 2008 15:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093364#M553398</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-02-19T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093365#M553399</link>
      <description>The easiest way is to use vgimport. &lt;BR /&gt;&lt;BR /&gt;This is assuming that there is already LVM info on the disk.&lt;BR /&gt;&lt;BR /&gt;If you use pvcreate then it will erase the LVM header info on the disk.&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgnew&lt;BR /&gt;mknod /dev/vgnew/group c 64 0x0Y0000 ( y is an unused minor number ( ls -ld /dev/vg*/group to find )&lt;BR /&gt;&lt;BR /&gt;vgimport /dev/vgnew /dev/dsk/c3t10d0&lt;BR /&gt;&lt;BR /&gt;If you exported this from somewhere and created a map file then you can also get your lvnames back.  If not everything is called lvol1, lvol2, lvol3 etc..  You can change these names later by simply renaming the block and char names to a name of your choosing.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2008 15:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093365#M553399</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-02-19T15:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093366#M553400</link>
      <description>What data structure is on your disk?&lt;BR /&gt;How was it used before?&lt;BR /&gt;Was it configured as a volume group?&lt;BR /&gt;&lt;BR /&gt;"pvcreate" will delete your data!&lt;BR /&gt;&lt;BR /&gt;If this disk was its own volume group you need to use vgimport.</description>
      <pubDate>Tue, 19 Feb 2008 15:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093366#M553400</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-19T15:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093367#M553401</link>
      <description>Bonsoir,&lt;BR /&gt;&lt;BR /&gt;What do you mean by "without erasing the data on the disk?" &lt;BR /&gt;&lt;BR /&gt;Do you mean that there is a filesystem on it that has been created without LVM ? It is not possible, in a new LVM structure, to keep existing datas that have no LVM structure.&lt;BR /&gt;&lt;BR /&gt;Do you mean that this disk as an LVM structure and comes from an other HP-UX box ? So consider "vgimport" in place of vgcreate : it will keep existing datas&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 19 Feb 2008 16:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093367#M553401</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-19T16:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093368#M553402</link>
      <description>Something else :&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/dsk/c3t10d0 &lt;BR /&gt;pvcreate: "/dev/dsk/c3t10d0": not a character device.&lt;BR /&gt;&lt;BR /&gt;With pvcreate you must use a character device, that is /dev/rdsk/c3t10d0. But if you want to vgimport it, there is no need to issue a pvcreate.&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 19 Feb 2008 16:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093368#M553402</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-19T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093369#M553403</link>
      <description>I do not know the contents of the disk.&lt;BR /&gt;&lt;BR /&gt;The man page for pvcreate says that it will not overwrite the data unless the -f option is used:&lt;BR /&gt;      "If pv_path contains a file system and the -f option is not specified,&lt;BR /&gt;      pvcreate asks for confirmation.  The request for confirmation avoids&lt;BR /&gt;      accidentally deleting a file system."&lt;BR /&gt;&lt;BR /&gt;The idea was to see if pvcreate did find any file system.&lt;BR /&gt;&lt;BR /&gt;Another thought: Is there a maximum disk size that HP-UX 10.20 can handle (the disk is 73GB)</description>
      <pubDate>Tue, 19 Feb 2008 16:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093369#M553403</guid>
      <dc:creator>Dag A.</dc:creator>
      <dc:date>2008-02-19T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093370#M553404</link>
      <description>If pvcreate (without -f option) finds information on the disk it will do nothing.&lt;BR /&gt;&lt;BR /&gt;If you force the action (with -f) your data will be deleted.&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;vgscan -v -p&lt;BR /&gt;&lt;BR /&gt;and check the results.</description>
      <pubDate>Tue, 19 Feb 2008 16:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093370#M553404</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-19T16:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093371#M553405</link>
      <description>To control if you have a valide FS on this disk you can try : fstyp /dev/rdsk/c3t10d0&lt;BR /&gt;&lt;BR /&gt;To control wheter or not this disk belongs to a volume group, try pvcreate without -f :&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c3t10d0&lt;BR /&gt;pvcreate: The physical volume already belongs to a volume group&lt;BR /&gt;&lt;BR /&gt;If you want to analyse disk contents you can use dd. For example :&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rdsk/c3t10d0 of=/var/tmp/DiskDump bs=1024k count=100&lt;BR /&gt;&lt;BR /&gt;It will dump 100 Mo from the disk that you will be able to analyze, for example with od&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 19 Feb 2008 16:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093371#M553405</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-19T16:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093372#M553406</link>
      <description>Hi, thanks for your answers.&lt;BR /&gt;Have looked som more into this:&lt;BR /&gt;&lt;BR /&gt;The machine is a dual boot system.&lt;BR /&gt;In configuration A disk 5 (SCSI addr. 5)is used. The other disks appear as "Unused" in SAM.&lt;BR /&gt;In configuration B disks 6 and 8 are used, other disks appear as "Unused".&lt;BR /&gt;The disk in question is disk 10, I have not been able to find out what it contains&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------&lt;BR /&gt;Results of vgscan:&lt;BR /&gt;&lt;BR /&gt;# vgscan -v -p&lt;BR /&gt;vgscan: Warning: couldn't query physical volume "/dev/dsk/c3t2d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to &lt;BR /&gt;this volume group&lt;BR /&gt;--&amp;gt; There is no disk with SCSI address 2 (checked with ioscan)&lt;BR /&gt;&lt;BR /&gt;vgscan: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;vgscan: The physical volume "/dev/dsk/c2t5d0" is already recorded in the "/etc/l&lt;BR /&gt;vmtab" file.&lt;BR /&gt;&lt;BR /&gt;Couldn't stat physical volume "/dev/dsk/c0t0d0":&lt;BR /&gt;Invalid argument&lt;BR /&gt;--&amp;gt; This is the CD-ROM&lt;BR /&gt;&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c2t5d0&lt;BR /&gt;--&amp;gt; This is the system disk&lt;BR /&gt;&lt;BR /&gt;Following Physical Volumes belong to one Volume Group.&lt;BR /&gt;Unable to match these Physical Volumes to a Volume Group.&lt;BR /&gt;Use the vgimport command to complete the process.&lt;BR /&gt;/dev/dsk/c2t6d0&lt;BR /&gt;--&amp;gt; This is the system disk in Configuration B&lt;BR /&gt;&lt;BR /&gt;Following Physical Volumes belong to one Volume Group.&lt;BR /&gt;Unable to match these Physical Volumes to a Volume Group.&lt;BR /&gt;Use the vgimport command to complete the process.&lt;BR /&gt;/dev/dsk/c3t8d0&lt;BR /&gt;--&amp;gt; This disk is used in Configuration B&lt;BR /&gt;&lt;BR /&gt;Following Physical Volumes belong to one Volume Group.&lt;BR /&gt;Unable to match these Physical Volumes to a Volume Group.&lt;BR /&gt;Use the vgimport command to complete the process.&lt;BR /&gt;/dev/dsk/c3t10d0&lt;BR /&gt;--&amp;gt; This is the unknown disk&lt;BR /&gt;&lt;BR /&gt;The Volume Group /dev/vg01/group was not matched with any Physical Volumes.&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;&lt;BR /&gt;Results from fstyp: Seems that this does not work? Does not find file system on any of the disks.&lt;BR /&gt;&lt;BR /&gt;# fstyp /dev/dsk/c2t5d0 &lt;BR /&gt;unknown_fstyp (no matches)&lt;BR /&gt;# fstyp /dev/dsk/c2t6d0 &lt;BR /&gt;unknown_fstyp (no matches)&lt;BR /&gt;# fstyp /dev/dsk/c3t8d0 &lt;BR /&gt;unknown_fstyp (no matches)&lt;BR /&gt;# fstyp /dev/dsk/c3t10d0 &lt;BR /&gt;unknown_fstyp (no matches)&lt;BR /&gt;&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;# more /etc/lvmtab &lt;BR /&gt;^CÃ¨^B/dev/vg00&lt;BR /&gt;wÃ¹%^P&amp;lt;âº&amp;gt;/dev/vg01&lt;BR /&gt;wÃ¹%^PC'Ã j^A/dev/dsk/c3t2d0&lt;BR /&gt;&lt;BR /&gt;==&amp;gt; Seems that there was a disk on SCSI address 2, which was removed without deleting the volume group.&lt;BR /&gt;So this is not the volume group for disk 10, although vgscan claims that disk 10 belongs to a volume group.&lt;BR /&gt;&lt;BR /&gt;------------------&lt;BR /&gt;&amp;gt;Create new volume group:&lt;BR /&gt;&lt;BR /&gt;# mknod /dev/vg02/group c 64 0x030000&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Test vgimport (-p option to preview actions)&lt;BR /&gt;&lt;BR /&gt;# vgimport -v -p /dev/vg02 /dev/dsk/c3t10d0&lt;BR /&gt;Beginning the import process on Volume Group "/dev/vg02".&lt;BR /&gt;vgimport: Quorum not present, or some physical volume(s) are missing.&lt;BR /&gt;Volume group "/dev/vg02" has been successfully created.&lt;BR /&gt;Warning: A backup of this volume group may not exist on this machine.&lt;BR /&gt;Please remember to take a backup using the vgcfgbackup command after activating the volume group.&lt;BR /&gt;&lt;BR /&gt;--&amp;gt;Should I run this command without the -p option? And what should be the next step in order to mount the disk without destroying the data (if any) on it?</description>
      <pubDate>Wed, 20 Feb 2008 09:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093372#M553406</guid>
      <dc:creator>Dag A.</dc:creator>
      <dc:date>2008-02-20T09:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093373#M553407</link>
      <description>vgimport the disk, activate with vgchange (-q n), have a look at the LVOLs and try to mount them.&lt;BR /&gt;Looks like the disk was a member of a mirror set.</description>
      <pubDate>Wed, 20 Feb 2008 09:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093373#M553407</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-02-20T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093374#M553408</link>
      <description>Bonjour,&lt;BR /&gt;&lt;BR /&gt;--&amp;gt;Should I run this command without the -p option? And what should be the next step in order to mount the disk without destroying the data (if any) on it?&lt;BR /&gt;&lt;BR /&gt;You can vgimport this disk but you clearly miss some other disk(s) : "vgimport: Quorum not present, or some physical volume(s) are missing"&lt;BR /&gt;&lt;BR /&gt;But before may be you should switch to the other environment and control whether or not this disk is recorder in an existing VG ?&lt;BR /&gt;&lt;BR /&gt;Anyway if you decide to import, remember that at least one disk is missing. May be it is only a mirror disk and it should not be a problem, but may be not ... in this case some LVs will miss or be corrupted.&lt;BR /&gt;&lt;BR /&gt;So after importing the VG, activate it in read-only (vgchange -a r) to investigate what is exactly on this disk and mount FS with read-only option.&lt;BR /&gt;&lt;BR /&gt;Once you are sure of what is that disk, what resides on it, you can activate and use it normally.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Erci</description>
      <pubDate>Wed, 20 Feb 2008 09:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093374#M553408</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-20T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093375#M553409</link>
      <description>Oups, as Torsten has underlined it you must specify quorum option since you miss disk : vgchange -a r -q n</description>
      <pubDate>Wed, 20 Feb 2008 09:45:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093375#M553409</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-20T09:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mount disk in new volume group without erasing data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093376#M553410</link>
      <description>closed</description>
      <pubDate>Wed, 14 Apr 2010 13:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-disk-in-new-volume-group-without-erasing-data/m-p/5093376#M553410</guid>
      <dc:creator>Dag A.</dc:creator>
      <dc:date>2010-04-14T13:52:48Z</dc:date>
    </item>
  </channel>
</rss>

