Hai, I use following steps for LV backup. * lvcreate -L 5G -s -n lv_snapshot /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/VHD-a2db885c-9ad0-46c3-b2c3-a30cb71d83f8 lv_snapshot created* This command worked properly Then issue kpartx command kpartx -av */dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot But this command not return any value. vgscan Reading all physical volumes. This may take a while... Found volume group "VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c" using metadata type lvm2 * _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I use following steps for LV backup. * lvcreate -L 5G -s -n lv_snapshot /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/VHD-a2db885c-9ad0-46c3-b2c3-a30cb71d83f8 lv_snapshot created* This command worked properly Then issue kpartx command kpartx -av */dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot But this command not return any value. vgscan Reading all physical volumes. This may take a while... Found volume group "VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c" using metadata type lvm2 Here vgscan not show lv_snapshot Then use mount command, system ask for file system type, I given like this mount -t ext3 ** /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot *mount: wrong fs type, bad option, bad superblock on /dev/VG_XenStorage-0cc224af-d9ed-ff0d-7d9d-b7c2a7057011/*lv_snapshot* missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so Any help... * * _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
What gives you kpartx -l //dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot / ? This should list you the partitions contained in your LV. Only thoose partitions should be mounted. regards Le 22/07/2011 07:29, Jinesh M.K a écrit :> Hai, > > I use following steps for LV backup. > > / lvcreate -L 5G -s -n lv_snapshot > /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/VHD-a2db885c-9ad0-46c3-b2c3-a30cb71d83f8 > lv_snapshot created/ > > This command worked properly > Then issue kpartx command > > kpartx -av > //dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot > > But this command not return any value. > vgscan > Reading all physical volumes. This may take a while... > Found volume group > "VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c" using metadata > type lvm2 > > / > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- <http://www.horoa.net> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Please do not cross post between lists, see http://wiki.xen.org/xenwiki/AskingXenDevelQuestions. If this is a question regarding a commercial product (which looks possible given the path names involved) then really you should contact your support representative for that product. Anyway moving xen-devel to BCC and replying to xen-users only since this appears to be a problem with making use of the tools rather than a Xen code problem. On Fri, 2011-07-22 at 06:34 +0100, Jinesh M.K wrote: [...]> > Then issue kpartx command > > kpartx > -av /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot > > But this command not return any value.I don''t think it does on success. At least it was silent here when I tried it.> > vgscan > Reading all physical volumes. This may take a > while... > Found volume group > "VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c" using metadata > type lvm2 > > Here vgscan not show lv_snapshot[...] lv_snapshot is an LV not a VG so you would not expect vgscan to show it. [...]> mount -t > ext3 /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot > > mount: wrong fs type, bad option, bad superblock > on /dev/VG_XenStorage-0cc224af-d9ed > -ff0d-7d9d-b7c2a7057011/lv_snapshot > missing codepage or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > > Any help...You ran kpartx which suggests you expect the device to be partitioned. In which case I expect you need to mount a partition and not the whole device. IIRC kpartx causes these to appear under /dev/mapper/ so you should look for *lv_snapshotp[123..] under that directory and try mounting one of those. Ian. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
This command return empty result. I created this snapshot by referring uuid of Disc using xe vm-disk-list vm="ubuntu" command On 22 July 2011 12:03, Alexandre Chapellon <a.chapellon@horoa.net> wrote:> What gives you > > kpartx -l */dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot > * > ? > > This should list you the partitions contained in your LV. Only thoose > partitions should be mounted. > > regards > > Le 22/07/2011 07:29, Jinesh M.K a écrit : > > Hai, > > I use following steps for LV backup. > > * lvcreate -L 5G -s -n lv_snapshot > /dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/VHD-a2db885c-9ad0-46c3-b2c3-a30cb71d83f8 > lv_snapshot created* > > This command worked properly > Then issue kpartx command > > kpartx -av */dev/VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c/lv_snapshot > > But this command not return any value. > vgscan > Reading all physical volumes. This may take a while... > Found volume group "VG_XenStorage-7b010600-3920-5526-b3ec-6f7b0f610f3c" > using metadata type lvm2 > > * > > > > _______________________________________________ > Xen-users mailing listXen-users@lists.xensource.comhttp://lists.xensource.com/xen-users > > > -- > <http://www.horoa.net> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users