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

pvcreate on loopback file with lvm2


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".

My exact steps:
1) dd if=/dev/urandom of=/dev/snap bs=4096 count=1310702 (lopback file
2) mkfs.ext3 /dev/snap
3) pvcreate /dev/snap

Why ? Can't i create it on loopback file?

Reply to: