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

Re: How to use LVM on a file? (as opposed to on a block device)



On Wednesday 03 March 2010 13:29:01 Clive McBarton wrote:
> The lvm tools like lvdisplay, vgdisplay, lvs, lvscan,
> lvdiskscan expect block devices and do not have the option of using a
> file instead of /dev/something. I'd like to use the LVM on the file
> without writing it out as a real disk partion. How do I do that?

losetup allows you do treat any file as a block device.

/etc/lvm/lvm.conf may need to be modified to pay attention to loop devices 
(the type created by losetup).
-- 
Boyd Stephen Smith Jr.           	 ,= ,-_-. =.
bss@iguanasuicide.net            	((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy 	 `-'(. .)`-'
http://iguanasuicide.net/        	     \_/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: