[linux-lvm] how to access the partition on LV?

Alasdair G Kergon agk at redhat.com
Fri Jul 29 20:56:58 UTC 2005


> > the problem is that we export a LV via iscsi to a remote box and become
> > a scsi disk. so it is partitioned and utilized. then it does have
> > partition on it. even it is exported to a linux box, u possibly will
> > use /dev/sdx1 instead of directly use /dev/sdx, rite?
 
> dunno if kpartx or some other partitioning tool could do it

Give kpartx a try. It reads a dos partition table and creates partitions
using device-mapper.

You'll find kpartx in multipath-tools (device-mapper-multipath package on Red Hat).
  ftp://sources.redhat.com/pub/dm/multipath-tools/multipath-tools-0.4.5.48.tgz

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list