Hello all,
I have an old fedora box with some custom compiled VFTP stuff that allows it to interacts nicely with our AD that needs to be P2Ved into a ESXi environment.
On using VMware converter, it gave us a error of cannot create virtual machine (vague... thanks VMware) and instead of buying into the per incident support, I tried to find a solution my self.
Now on this post (at the bottom)
http://communities.vmware.com/message/1671420
I saw that someone said the converter will not work if we got /boot on a LVM. I checked our fdisk and mount and lo and behold it is on a LVM.
Now, being a total linux noob (this is a intern job and I usually use VMware environment with supported OSes), I would love to have some advice or help on how exactly to do this conversion in fedora, as the OP seems to have gentoo installed rather than fedora. Hopefully the commands will work, but just wanted to make sure before I took down a production system...
Or, if anyone know a way to P2V this thing with /boot on LVM with another tool (paid or not) then let me know too. Even P2V into say Xen or something, then to VMware will work as well.
Thanks.
PS, I have some experience with Ubuntu and CentOS, and I never seen any fdisk -l that shows "Disk /dev/dm-1 doesn't contain a valid partition table" is that part of the LVM or is there some thing else going on?
Our fdisk:
fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1cbe1cb7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 36472 292760527+ 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1cbe1cb7
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 36472 292760527+ 8e Linux LVM
Disk /dev/sdc: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00067fb4
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 24792 199141708+ 83 Linux
Disk /dev/dm-0: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1cbe1cb7
Device Boot Start End Blocks Id System
/dev/dm-0p1 * 1 25 200781 83 Linux
/dev/dm-0p2 26 36472 292760527+ 8e Linux LVM
Disk /dev/dm-1: 205 MB, 205599744 bytes
255 heads, 63 sectors/track, 24 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 299.7 GB, 299786780160 bytes
255 heads, 63 sectors/track, 36447 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 297.6 GB, 297661366272 bytes
255 heads, 63 sectors/track, 36188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-3 doesn't contain a valid partition table
Disk /dev/dm-4: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800
Disk /dev/dm-4 doesn't contain a valid partition table
our mount:
mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/pdc_ccchfhahbap1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdc1 on /media/backup type ext3 (rw)
/ftp on /home/admin/ftp type defaults (rw,bind)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
our fstab:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/sdc1 /media/backup ext3 defaults 0 0
/ftp /home/admin/ftp defaults bind 0 0
related LVM info:
lvm pvs
PV VG Fmt Attr PSize PFree
/dev/dm-2 VolGroup00 lvm2 a- 279.19G 32.00M
lvm vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 2 0 wz--n- 279.19G 32.00M
lvm lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
LogVol00 VolGroup00 -wi-ao 277.22G
LogVol01 VolGroup00 -wi-ao 1.94G