Create Linux LVM image not RAW?

This issue has been solved. See solution.
jbeaulau's picture

Hello,



I need to create an image from a machine running Fedora Core 8 default config using LVM. However DS will only create in raw format.



The environment:



DS 6.8 SP2

Target platform: HP XW4400 / 4300

Automation OS: Linux x86 Version=2.6.18.8 Build=6.8.8397

From automation OS command line on target machine: ./rdeployt –mu -f/mnt/ds/foo



As I understand in articles I’ve read DS should not default to raw if running rdeploy from a Linux automation OS.



Can someone please assist?



Thank

-John



DArmitage's picture

If I remember correctly, the last time I was going to make a Linux image (over a year ago), DS understood EXT2, but not Reiser filesystem. General rule is DS will make an image "RAW" if it does not know how to handle the filesystem. As of now, I do not know which filesystem(s) DS understands. I believe that I was using DS6.8 at that time.

jbeaulau's picture

Thanks Darmitage,



The fs is ext3, and there is native support for ext3 in 6.8 sp2 as per the admin manual. Must have something to do with the LVM, but again the manual states native support for LVM.

jbeaulau's picture

Solution

OK, issue resolved,



I used the "firm" tool in the DS rdeploy/linux/ directory so I could see how rdepoy was viewing the partitions. With that info I added the -d switch after the -mu switch noting only the partitions I wanted imaged excluding the raw portion of the disk, which is 3/4 of the entire disk. Worked like a charm!



Ending the week on a good note!

Phyrant's picture

Glad you got it working.

ThePrudentStudent's picture

I need help

jbeaulau,

I'm a newbie when it comes to Linux and I think I'm having the same issue you did although I'm using RHEL4 as opposed to Fedora.  Do you think you'd be able to provide snapshots of your create disk image and distribute disk image?  I ran the "firm" tool on the RedHat server I want to capture and this is what it came up with:

Drive        Contents        Size (MB)        %Drive
--------       ---------------     -------------         ------------
D1P1:      Ext3                101                   0
D1P2:      Ext3                5024                 7
D1P3:      Linux Swap    7008                 10
D1P4:      Ext3                10016               14
D1P5:      Ext3                 5024                 7
D2P1:      Ext3                 101                   0
D2P2:      Raw                 69868              100

I've tried using all the additional paramters like -d1 -mu but nothing seems to be working.  It's just a case of me fundamentally not understanding Linux and the way it works but in the interest of time I'd like someone to spoon-feed me :)

Any help would be appreciated.

Thanks.