Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170630

iSCSI LVM Images Raw > QCOW

$
0
0
Hi All,

Firstly, thanks to these forums and the Proxmox team, the software is awesome and these forums have helped immensely with my setup.

I have 2 Dell PE C1100 servers running Proxmox 3.0 connected to a Dell MD3200i SAN.

I have successfully (after a lot of help from these forums!!) set up iSCSI connection to my SAN on the LUN and have set up a Server 2012 instance on ProxNode1, with the image stored on the SAN, however this is in the RAW Format (seemed to default to this) and I want to convert to qcow2 for snapshotting etc..

I know I can run

Code:

qemu-img convert -p-O qcow2 /var/lib/vz/images/200/vm-200-disk-1.raw /var/lib/vz/images/200/vm-200-disk-1.qcow2
but I just can't seem to see where inside the Linux OS this place actually resides.

I decided to run mount:

Code:

root@proxnode1:~# mountsysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=9275386,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=7422184k,mode=755)
/dev/mapper/pve-root on / type ext3 (rw,relatime,errors=remount-ro,user_xattr,acl,barrier=0,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=14844360k)
/dev/mapper/pve-data on /var/lib/vz type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
/dev/sda2 on /boot type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
beancounter on /proc/vz/beancounter type cgroup (rw,relatime,blkio,name=beancounter)
container on /proc/vz/container type cgroup (rw,relatime,freezer,devices,name=container)
fairsched on /proc/vz/fairsched type cgroup (rw,relatime,cpuacct,cpu,cpuset,name=fairsched)
/dev/mapper/mpathb on /mnt/ProxCT01 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
none on /sys/kernel/config type configfs (rw,relatime)

If i do parted -l i get:

Code:

root@proxnode1:~# parted -lModel: DELL PERC H700 (scsi)
Disk /dev/sda: 2999GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


Number  Start  End    Size    File system  Name    Flags
1      1049kB  2097kB  1049kB              primary  bios_grub
2      2097kB  537MB  535MB  ext3        primary  boot
3      537MB  2999GB  2998GB              primary  lvm




Error: /dev/sdb: unrecognised disk label                                 


Error: /dev/sdc: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdd: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sde: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdf: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/proxsanimages-vm--101--disk--1: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End    Size    Type    File system  Flags
1      1049kB  368MB  367MB  primary  ntfs        boot
2      368MB  53.7GB  53.3GB  primary  ntfs




Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpathd: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/mapper/mpathc: unrecognised disk label                       


Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpathb: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/pve-data: 2803GB
Sector size (logical/physical): 512B/512B
Partition Table: loop


Number  Start  End    Size    File system  Flags
1      0.00B  2803GB  2803GB  ext3




Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/pve-swap: 75.2GB
Sector size (logical/physical): 512B/512B
Partition Table: loop


Number  Start  End    Size    File system    Flags
1      0.00B  75.2GB  75.2GB  linux-swap(v1)




Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/pve-root: 103GB
Sector size (logical/physical): 512B/512B
Partition Table: loop


Number  Start  End    Size  File system  Flags
1      0.00B  103GB  103GB  ext3




Error: /dev/sdg: unrecognised disk label                                 


Error: /dev/sdh: unrecognised disk label                                 


Error: /dev/sdi: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdj: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sdk: unrecognised disk label                                 


Error: /dev/sdl: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdo: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sdn: unrecognised disk label                                 


Error: /dev/sdt: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdr: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sdm: unrecognised disk label                                 


Error: /dev/sdp: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdu: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sdv: unrecognised disk label                                 


Error: /dev/sdw: unrecognised disk label                                 


Error: /dev/sdq: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sds: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




Error: /dev/sdx: unrecognised disk label                                 


Model: DELL MD32xxi (scsi)
Disk /dev/sdy: 537GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Number  Start  End  Size  Type  File system  Flags




root@proxnode1:~#

There seems to be a lot of disks here, however I set up multi-path and this is used as my targets for SAN stored OpenVZ containers (along with backups/iso's). There are two LUNs set up for each node to use (at 500GB) and these are mounted on startup in /etc/rc.local (as i mounted these in fstab but the server would not boot because it couldn't see them yet).

Anyway, briefly, where would my 3TB iSCSI Drive be mounted so I can convert my images?

Also, just on a side note, I cloned one of my VM's (50GB), which the image resides on my 3TB LUN on the SAN, but cloning this seems to take hours, which doesn't seem quite right to me.

Here's my /etc/network/interfaces conf:

Code:

root@proxnode1:~# cat /etc/network/interfaces # network interface settings
auto lo
iface lo inet loopback


auto eth0
iface eth0 inet manual


auto vmbr0
iface vmbr0 inet static
        address  10.10.1.51
        netmask  255.255.255.0
        gateway  10.10.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


auto eth1
iface eth1 inet static
        address  10.10.142.111
        netmask  255.255.255.0
        gateway  10.10.1.1
        mtu        9000
root@proxnode1:~#

I have put each "iSCSI traffic NIC" into the correct VLAN in access mode, leaving my "Prox" NICs for normal traffic in Trunk, with various VLANs tagged. Also have forced 1000Mb negotiation on my switch.. the "Prox" NICs are on Auto-Negotiate.

Sorry this may be a bit long winded.. if I have missed out any info anyone needs please let me know!

Thanks in advance!

Viewing all articles
Browse latest Browse all 170630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>