FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-17-2012, 10:00 AM
"J. B"
 
Default lvcreate throws error : device not cleared

Dear list,

I'm with debian wheezy with lvm2 2.02.95-4.

whenever I try to execute lvcreate it fails. Here is the output of such
a command

``````````````````
#lvcreate -v -n root -L 80G mygroup

Setting logging type to disk
Finding volume group "mygroup"
Archiving volume group "mygroup" metadata (seqno 7).
Creating logical volume root
Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 8).
Found volume group "mygroup"
activation/volume_list configuration setting not defined: Checking only host tags for mygroup/root
Creating mygroup-root
Loading mygroup-root table (254:1)
Resuming mygroup-root (254:1)
Clearing start of logical volume "root"
/dev/mygroup/root: not found: device not cleared
Aborting. Failed to wipe start of new LV.
Found volume group "mygroup"
Removing mygroup-root (254:1)
Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 9).
semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore state
Failed to set a proper state for notification semaphore identified by cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming notifications.
`````````````````````````

Am I missing anything ?

Thanks


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120817153019.07ad8929@shiva.selfip.org">http://lists.debian.org/20120817153019.07ad8929@shiva.selfip.org
 
Old 08-17-2012, 10:18 AM
Muhammad Yousuf Khan
 
Default lvcreate throws error : device not cleared

http://forums.funtoo.org/viewtopic.php?id=1206

This might help

On Fri, Aug 17, 2012 at 3:00 PM, J. B <bakshi12@gmail.com> wrote:
>
> Dear list,
>
> I'm with debian wheezy with lvm2 2.02.95-4.
>
> whenever I try to execute lvcreate it fails. Here is the output of such
> a command
>
> ``````````````````
> #lvcreate -v -n root -L 80G mygroup
>
> Setting logging type to disk
> Finding volume group "mygroup"
> Archiving volume group "mygroup" metadata (seqno 7).
> Creating logical volume root
> Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 8).
> Found volume group "mygroup"
> activation/volume_list configuration setting not defined: Checking only host tags for mygroup/root
> Creating mygroup-root
> Loading mygroup-root table (254:1)
> Resuming mygroup-root (254:1)
> Clearing start of logical volume "root"
> /dev/mygroup/root: not found: device not cleared
> Aborting. Failed to wipe start of new LV.
> Found volume group "mygroup"
> Removing mygroup-root (254:1)
> Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 9).
> semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore state
> Failed to set a proper state for notification semaphore identified by cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming notifications.
> `````````````````````````
>
> Am I missing anything ?
>
> Thanks
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20120817153019.07ad8929@shiva.selfip.org
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAGWVfMkucwTfDZ4gRH7moWBNspeRooC_0snP3sF1Yckt0wLHE A@mail.gmail.com">http://lists.debian.org/CAGWVfMkucwTfDZ4gRH7moWBNspeRooC_0snP3sF1Yckt0wLHE A@mail.gmail.com
 
Old 08-17-2012, 10:33 AM
Muhammad Yousuf Khan
 
Default lvcreate throws error : device not cleared

On Fri, Aug 17, 2012 at 3:28 PM, J. B <bakshi12@gmail.com> wrote:
>
> Thanks, [-Z n] only works with a warrning

-Z, --zero y/n
Controls zeroing of the first KB of data in the new logical volume.
Default is yes.


Warning: trying to mount an unzeroed logical volume can cause the
system to hang.
so be careful. i haven't tried this either.

for further reference check this
http://linux.about.com/library/cmd/blcmdl8_lvcreate.htm

>
> [...]
> WARNING: "root" not zeroed
> Logical volume "root" created
>
> [...]
>
> What does it mean and will it create any issue in future ?
>
> TIA
>
>
> On Fri, 17 Aug 2012 15:18:41 +0500
> Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
>
>> http://forums.funtoo.org/viewtopic.php?id=1206
>>
>> This might help
>>
>> On Fri, Aug 17, 2012 at 3:00 PM, J. B <bakshi12@gmail.com> wrote:
>> >
>> > Dear list,
>> >
>> > I'm with debian wheezy with lvm2 2.02.95-4.
>> >
>> > whenever I try to execute lvcreate it fails. Here is the output of such
>> > a command
>> >
>> > ``````````````````
>> > #lvcreate -v -n root -L 80G mygroup
>> >
>> > Setting logging type to disk
>> > Finding volume group "mygroup"
>> > Archiving volume group "mygroup" metadata (seqno 7).
>> > Creating logical volume root
>> > Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 8).
>> > Found volume group "mygroup"
>> > activation/volume_list configuration setting not defined: Checking only host tags for mygroup/root
>> > Creating mygroup-root
>> > Loading mygroup-root table (254:1)
>> > Resuming mygroup-root (254:1)
>> > Clearing start of logical volume "root"
>> > /dev/mygroup/root: not found: device not cleared
>> > Aborting. Failed to wipe start of new LV.
>> > Found volume group "mygroup"
>> > Removing mygroup-root (254:1)
>> > Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 9).
>> > semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore state
>> > Failed to set a proper state for notification semaphore identified by cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming notifications.
>> > `````````````````````````
>> >
>> > Am I missing anything ?
>> >
>> > Thanks
>> >
>> >
>> > --
>> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>> > Archive: http://lists.debian.org/20120817153019.07ad8929@shiva.selfip.org
>> >


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAGWVfM=LfBmHAk7Htt3aQgCOiLmmbgLL6yzBRsw1fo7RoG2wL w@mail.gmail.com
 
Old 08-17-2012, 10:36 AM
Muhammad Yousuf Khan
 
Default lvcreate throws error : device not cleared

On Fri, Aug 17, 2012 at 3:33 PM, Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
> On Fri, Aug 17, 2012 at 3:28 PM, J. B <bakshi12@gmail.com> wrote:
>>
>> Thanks, [-Z n] only works with a warrning
>
> -Z, --zero y/n
> Controls zeroing of the first KB of data in the new logical volume.
> Default is yes.

FYI it is just a work around. let see if others might help with some
detailed suggestion.

>
>
> Warning: trying to mount an unzeroed logical volume can cause the
> system to hang.
> so be careful. i haven't tried this either.
>
> for further reference check this
> http://linux.about.com/library/cmd/blcmdl8_lvcreate.htm
>
>>
>> [...]
>> WARNING: "root" not zeroed
>> Logical volume "root" created
>>
>> [...]
>>
>> What does it mean and will it create any issue in future ?
>>
>> TIA
>>
>>
>> On Fri, 17 Aug 2012 15:18:41 +0500
>> Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
>>
>>> http://forums.funtoo.org/viewtopic.php?id=1206
>>>
>>> This might help
>>>
>>> On Fri, Aug 17, 2012 at 3:00 PM, J. B <bakshi12@gmail.com> wrote:
>>> >
>>> > Dear list,
>>> >
>>> > I'm with debian wheezy with lvm2 2.02.95-4.
>>> >
>>> > whenever I try to execute lvcreate it fails. Here is the output of such
>>> > a command
>>> >
>>> > ``````````````````
>>> > #lvcreate -v -n root -L 80G mygroup
>>> >
>>> > Setting logging type to disk
>>> > Finding volume group "mygroup"
>>> > Archiving volume group "mygroup" metadata (seqno 7).
>>> > Creating logical volume root
>>> > Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 8).
>>> > Found volume group "mygroup"
>>> > activation/volume_list configuration setting not defined: Checking only host tags for mygroup/root
>>> > Creating mygroup-root
>>> > Loading mygroup-root table (254:1)
>>> > Resuming mygroup-root (254:1)
>>> > Clearing start of logical volume "root"
>>> > /dev/mygroup/root: not found: device not cleared
>>> > Aborting. Failed to wipe start of new LV.
>>> > Found volume group "mygroup"
>>> > Removing mygroup-root (254:1)
>>> > Creating volume group backup "/etc/lvm/backup/mygroup" (seqno 9).
>>> > semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore state
>>> > Failed to set a proper state for notification semaphore identified by cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming notifications.
>>> > `````````````````````````
>>> >
>>> > Am I missing anything ?
>>> >
>>> > Thanks
>>> >
>>> >
>>> > --
>>> > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
>>> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>>> > Archive: http://lists.debian.org/20120817153019.07ad8929@shiva.selfip.org
>>> >


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAGWVfMnkTMzBBBWAWMEfvCf=von5pWRh82SJ_K9bP0p5RLEeu A@mail.gmail.com
 
Old 08-17-2012, 10:39 AM
"J. B"
 
Default lvcreate throws error : device not cleared

On Fri, 17 Aug 2012 15:36:27 +0500
Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:

> On Fri, Aug 17, 2012 at 3:33 PM, Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
> > On Fri, Aug 17, 2012 at 3:28 PM, J. B <bakshi12@gmail.com> wrote:
> >>
> >> Thanks, [-Z n] only works with a warrning
> >
> > -Z, --zero y/n
> > Controls zeroing of the first KB of data in the new logical volume.
> > Default is yes.
>
> FYI it is just a work around. let see if others might help with some
> detailed suggestion.
>
Thanks, I'll be glad to hear any alternative fix without zeroing


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120817160933.3b1949f1@shiva.selfip.org">http://lists.debian.org/20120817160933.3b1949f1@shiva.selfip.org
 

Thread Tools




All times are GMT. The time now is 03:48 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org