<?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: problem creating new lvol in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980525#M616307</link>
    <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;Use command # swapon -f &lt;DEVICENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rajesh&lt;/DEVICENAME&gt;</description>
    <pubDate>Wed, 24 May 2006 05:59:33 GMT</pubDate>
    <dc:creator>Rajesh SB</dc:creator>
    <dc:date>2006-05-24T05:59:33Z</dc:date>
    <item>
      <title>problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980521#M616303</link>
      <description>I created a new lvol to extend the swapspace.&lt;BR /&gt;When trying to activate it says there is already a filesystem on the lvol :&lt;BR /&gt;&lt;BR /&gt;[nlxmar04:/]# lvcreate vg00                 &lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully created with&lt;BR /&gt;character device "/dev/vg00/rlvol17".&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;[nlxmar04:/]# lvextend -l 1 /dev/vg00/lvol17 &lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;[nlxmar04:/]# lvextend -m 1 /dev/vg00/lvol17 /dev/dsk/c2t1d0&lt;BR /&gt;The newly allocated mirrors are now being synchronized. This operation will &lt;BR /&gt;take some time. Please wait ....&lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;[nlxmar04:/]# lvextend -L 4000 /dev/vg00/lvol17 /dev/dsk/c2t0d0 /dev/dsk/c2t1d0&lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;[nlxmar04:/]# swapon -a&lt;BR /&gt;Enabling device paging on /dev/vg00/lvol17.&lt;BR /&gt;swapon: Device /dev/vg00/lvol17 contains a file system.&lt;BR /&gt;        The system will page in the space after the end of the file system.&lt;BR /&gt;        Add `end' to the options field in /etc/fstab to turn off this warning.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what happened ?&lt;BR /&gt;I get this on 8 different servers.&lt;BR /&gt;OS HP-ux 11.11</description>
      <pubDate>Wed, 24 May 2006 05:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980521#M616303</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T05:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980522#M616304</link>
      <description>First thing is if you are creating a lvol for swap it must be contiguous and bad block relocation whould be disabled so&lt;BR /&gt;lvcreate -L 4000 -n swapvol2 -C y -r n /dev/vg00&lt;BR /&gt;Then&lt;BR /&gt;lvextend -m 1 /dev/vg00/swapvol2 /dev/dsk/c2t1d0&lt;BR /&gt;&lt;BR /&gt;Then add entry in /etc/fstab&lt;BR /&gt;/dev/vg00/swapvol2 swap swap defaults 0 0&lt;BR /&gt;&lt;BR /&gt;then swapon -a&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 05:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980522#M616304</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980523#M616305</link>
      <description>a swap device has to be at least strict/contiguous policy set.&lt;BR /&gt;&lt;BR /&gt;see "man lvcreate" for more information.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 May 2006 05:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980523#M616305</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-05-24T05:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980524#M616306</link>
      <description>Hi Beekmans,&lt;BR /&gt;&lt;BR /&gt;If you are make swap on lvol containing filesystem use option.&lt;BR /&gt;&lt;BR /&gt;# swapon -fa /dev/vg00/vlol17&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rajesh</description>
      <pubDate>Wed, 24 May 2006 05:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980524#M616306</guid>
      <dc:creator>Rajesh SB</dc:creator>
      <dc:date>2006-05-24T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980525#M616307</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;Use command # swapon -f &lt;DEVICENAME&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rajesh&lt;/DEVICENAME&gt;</description>
      <pubDate>Wed, 24 May 2006 05:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980525#M616307</guid>
      <dc:creator>Rajesh SB</dc:creator>
      <dc:date>2006-05-24T05:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980526#M616308</link>
      <description>Yes as correctly pointed out above the policy should be strict contiguous - [ In my previous note strict is missing so do add as below ]&lt;BR /&gt;lvcreate -L 4000 -n swapvol2 -s y -C y -r n /dev/vg00&lt;BR /&gt;and if you have PV groups then add the 2 disks in the 2 different PV groups and use&lt;BR /&gt;lvcreate -L 4000 -n swapvol2 -s g -C y -r n /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 06:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980526#M616308</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T06:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980527#M616309</link>
      <description>Hello Ninad,&lt;BR /&gt; did it your way but stil get the same error :&lt;BR /&gt;&lt;BR /&gt;[nlxmar04:/]# lvcreate -L 4000 -m 1 -s y -C y -r n /dev/vg00                                &lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully created with&lt;BR /&gt;character device "/dev/vg00/rlvol17".&lt;BR /&gt;Logical volume "/dev/vg00/lvol17" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;&lt;BR /&gt;added antry in fstab:&lt;BR /&gt;/dev/vg00/lvol17        ...     swap defaults 0 0&lt;BR /&gt;&lt;BR /&gt;[nlxmar04:/]# swapon -a&lt;BR /&gt;Enabling device paging on /dev/vg00/lvol17.&lt;BR /&gt;swapon: Device /dev/vg00/lvol17 contains a file system.&lt;BR /&gt;        The system will page in the space after the end of the file system.&lt;BR /&gt;        Add `end' to the options field in /etc/fstab to turn off this warning.</description>
      <pubDate>Wed, 24 May 2006 06:15:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980527#M616309</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T06:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980528#M616310</link>
      <description>Rajesh,&lt;BR /&gt; with "swapon -fa &lt;LVOL&gt; " it only uses the part of the lvol that is "empty".&lt;BR /&gt; I tried this already on an other system:&lt;BR /&gt;[nlxmar03:root:/]# swapinfo -t                                                                  &lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     4194304 1084664 3109640   26%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev      950272    3680  946592    0% 3145728       -    1  /dev/vg00/lvol17&lt;BR /&gt;reserve       - 1690224 -1690224&lt;BR /&gt;memory  3131132 2648244  482888   85%&lt;BR /&gt;total   8275708 5426812 2848896   66%       -       0    -&lt;BR /&gt;[nlxmar03:root:/]# lvdisplay /dev/vg00/lvol17&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol17&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/syncd           &lt;BR /&gt;Mirror copies               1            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            4000            &lt;BR /&gt;Current LE                  250       &lt;BR /&gt;Allocated PE                500         &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   on           &lt;BR /&gt;Allocation                  strict                    &lt;BR /&gt;IO Timeout (Seconds)        default &lt;BR /&gt;&lt;BR /&gt;So that does not solve my problem&lt;/LVOL&gt;</description>
      <pubDate>Wed, 24 May 2006 06:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980528#M616310</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980529#M616311</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you sure you created the volume with the command I gave, because in the lvdisplay its showing bac block on and Allocation is not showing as contiguous.&lt;BR /&gt;I think the previous swapon -a command added the swap device, and not sure how it allowed to create lvol17 again if the volume was activated as swap.&lt;BR /&gt;I think you need to reboot the server after removing the the entry for this swap device from /etc/fstab.&lt;BR /&gt;Then delete the volume and create it with the command I mentioned. Check the volume if it is showing strict/contiguous allocation and bad block allocation off&lt;BR /&gt;Then add entry in /etc/fstab and then use swapon -a&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 06:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980529#M616311</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T06:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980530#M616312</link>
      <description>Ninad,&lt;BR /&gt; in my reply to Rajesh I was talking about another server, and there badblock allocation is on.&lt;BR /&gt;I created the lvol with the command you gave ( see reply to you )but the swapdevice is not added becuase ir says there is already a filesystem on it. I tried to force it on another ser with the same problem and than it is added , but only for a part.&lt;BR /&gt;Strange is after deleting the lvol and recreating it your way , it still says there is a filesystem on it.</description>
      <pubDate>Wed, 24 May 2006 06:54:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980530#M616312</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T06:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980531#M616313</link>
      <description>Strange.&lt;BR /&gt;What does fstyp -v /dev/vg00/lvol17 show ?&lt;BR /&gt;You said you created a new lvol and did not create a filesystem using newfs - is that right ? &lt;BR /&gt;Then its really strange.&lt;BR /&gt;Try fstyp to see if really a filesystem is there.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 07:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980531#M616313</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T07:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980532#M616314</link>
      <description>[nlxmar04:/]# fstyp -v /dev/vg00/lvol17    &lt;BR /&gt;vxfs&lt;BR /&gt;version: 4&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 1024&lt;BR /&gt;f_blocks: 1048576&lt;BR /&gt;f_bfree: 1047214&lt;BR /&gt;f_bavail: 981764&lt;BR /&gt;f_files: 261832&lt;BR /&gt;f_ffree: 261800&lt;BR /&gt;f_favail: 261800&lt;BR /&gt;f_fsid: 1073741841&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 7&lt;BR /&gt;f_size: 1048576&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[nlxmar04:/]# lvdisplay  /dev/vg00/lvol17  &lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol17&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/syncd           &lt;BR /&gt;Mirror copies               1            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            4000            &lt;BR /&gt;Current LE                  250       &lt;BR /&gt;Allocated PE                500         &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   off          &lt;BR /&gt;Allocation                  strict/contiguous         &lt;BR /&gt;IO Timeout (Seconds)        default  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No I did not use newfs</description>
      <pubDate>Wed, 24 May 2006 07:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980532#M616314</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T07:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980533#M616315</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check for filesystem on /dev/vg00/lvol17 with:&lt;BR /&gt;&lt;BR /&gt;fstyp /dev/vg00/lvol17&lt;BR /&gt;&lt;BR /&gt;also check if there is an /dev/vg00/lvol17 entry in the lvmtab file in add at the swap line.&lt;BR /&gt;&lt;BR /&gt;then try with this procedure:&lt;BR /&gt;&lt;BR /&gt;# lvcreate -C y -L &lt;SIZE_MB&gt; -n lvswap2 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;# lvchange -r n /dev/vg00/lvswap2 (bad block off)&lt;BR /&gt;&lt;BR /&gt;# lvchange -c n -M n /dev/vg00/lvswap2                    (Mirror Write cache off)&lt;BR /&gt;&lt;BR /&gt;# lvlnboot -d /dev/vg00/lvswap2                         &lt;BR /&gt;&lt;BR /&gt;# vi /etc/fstab   add:&lt;BR /&gt;/dev/vg00/lvswap2 ... swap pri=1 0 0&lt;BR /&gt;&lt;/SIZE_MB&gt;</description>
      <pubDate>Wed, 24 May 2006 07:26:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980533#M616315</guid>
      <dc:creator>Enrico P.</dc:creator>
      <dc:date>2006-05-24T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980534#M616316</link>
      <description>OK.&lt;BR /&gt;Now try mounting the filesystem to a temporary directory - see if there are any contents you wish to have. &lt;BR /&gt;If yes copy the stuff somewhere else and unmount , &lt;BR /&gt;If not unmount the filesystem&lt;BR /&gt;do a &lt;BR /&gt;prealloc /tmp/testfile 10000000&lt;BR /&gt;This will create a file with nulls of the size 10MB&lt;BR /&gt;The zero out the filesystem metadata from the lvol17&lt;BR /&gt;dd if=/tmp/testfile of=/dev/vg00/lvol17&lt;BR /&gt;Now try swapon -a , I think this should work&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 24 May 2006 07:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980534#M616316</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-24T07:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980535#M616317</link>
      <description>Ninad,&lt;BR /&gt;&lt;BR /&gt;this works.&lt;BR /&gt;thanks for your time investigating.&lt;BR /&gt;&lt;BR /&gt;greetz,&lt;BR /&gt; Barry</description>
      <pubDate>Wed, 24 May 2006 07:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980535#M616317</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T07:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem creating new lvol</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980536#M616318</link>
      <description>problem has been solved by destoying the metadata  on the logical volume.</description>
      <pubDate>Wed, 24 May 2006 08:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-creating-new-lvol/m-p/4980536#M616318</guid>
      <dc:creator>B.Beekmans</dc:creator>
      <dc:date>2006-05-24T08:04:03Z</dc:date>
    </item>
  </channel>
</rss>

