does partimage support backing up Logical Volumes

If you have a question about a file system (for example xfs, reiserfs, ...)

Moderator: feffer

Post Reply
hi2satish
Posts: 2
Joined: Mon Aug 11, 2008 10:42 pm

does partimage support backing up Logical Volumes

Post by hi2satish » Mon Aug 11, 2008 11:09 pm

I wanted to backup logical volume /dev/abc_vg_ide_0/lv1. The following command gave me an error as below:

# ./partimage0.6.5 -B gui=no -z1 -od -f3 save /dev/abc_vg_ide_0/lv1 foo1.img
partimage: status: initializing the operation. Please wait...
Segmentation fault
[[email protected] ~]# echo $?
139
# ls -l foo1*
-rw------- 1 root root 331 Aug 11 19:04 foo1.img.000
#


# ./partimage0.6.5 -B gui=no -z1 -od -f3 save /dev/mapper/abc_vg_pri_ide_0-lv1 foo2.img
partimage: status: initializing the operation. Please wait...
Segmentation fault
[[email protected] ~]# echo $?
139
[[email protected] ~]# ls -l foo2*
-rw------- 1 root root 333 Aug 11 19:06 foo2.img.000
[[email protected] ~]#


Not sure whether partimage version 0.6.5 supports LVM.

kiwigee
Posts: 1
Joined: Sat Oct 04, 2008 8:13 am
Location: Newb Zealand

Post by kiwigee » Sat Oct 04, 2008 8:19 am

Hi,
Although you don't explicitly say so or not - it seems to me you may be saving the image on the same volume you're trying to image ?
Or at least to don't give the path to the image location.

I think.

cheers
gee

hi2satish
Posts: 2
Joined: Mon Aug 11, 2008 10:42 pm

Post by hi2satish » Tue Aug 04, 2009 4:48 pm

The current directory from where I initiated the above command is / and it is not under LVM and not same as source FS.

feffer
Posts: 126
Joined: Tue Mar 17, 2009 4:30 am

Post by feffer » Wed Aug 05, 2009 7:10 pm

Hi hi2satish,
Since your initial post was a year ago, I think you must have moved on. Right? If you are still interested in getting this working, partimage will work on both primary and logical partitions. You tried:
# ./partimage0.6.5 -B gui=no -z1 -od -f3 save /dev/abc_vg_ide_0/lv1 foo1.img
Isn't "/dev/abc_vg_ide_0" a logical partition and "/lv1" a sub-directory of it? I don't think you can image sub-directories -- only entire partitions. Also, make sure "/dev/abc_vg_ide_0" is unmounted and try using the full path to the image.

feffer

Post Reply