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

Re: LVM + USB drive

On 05/30/2011 02:56 AM, Itay wrote:

# )

# Before unplugging
$ umount /mnt/point/of/lvm
$ lvchange -an /dev/myVG
$ vgexport -a
# After plugging-in
$ vgimport -a
$ lvchange -ay /dev/myVG
$ mount [options] /mnt/point/of/lvm

# (Question: vgexport/import is needed if volume groups are identified #
by UUID?)

That's correct. You don't need vgexport/vgimport. I had (since moved to a larger eSATA enclosure) a 2-bay USB enclosure and bonded the disks in a "RAID 0" set.

# umount -v /mnt/point/of/lvm
# lvchange -an /dev/myVG

# lvchange an /dev/myVG
# mount -v /mnt/point/of/lvm

"Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
Samuel Adams, essay in The Public Advertiser, 1749

Reply to: