[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pvcreate on loopback file with lvm2



Hello,

pavel.orehov@gmail.com wrote:

> I have installed lvm2 on debian and trying to run:
> pvcreate /dev/snap
> (when /dev/snap is a loopback file)
> and get an error "Device /dev/snap not found".

While technically this is a problem for the debian-users mailing list, I
will try to help:

> My exact steps:
> 1) dd if=/dev/urandom of=/dev/snap bs=4096 count=1310702 (lopback file
> 5GB)

you are missing a losetup call here. See losetup(8).

> 2) mkfs.ext3 /dev/snap
> 3) pvcreate /dev/snap

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: