Blackhold

Proxmox: Montar particiones del host amfitrión a la máquina virtual

Posted on novembre 10th, 2012 by admin

Tenemos el ejemplo de un hd externo con los backups

amfitrión] mount -t auto /dev/sdc2 /mnt/hd
amfitrión] mount -n -t simfs /mnt/hd /var/lib/vz/root/105/mnt/hd -o /mnt/hd
amfitrión] vzctl enter 105

root@v-www-conway:/# ls /mnt/hd
backup_conway  backups_vonneuman  ibdata1      ib_logfile1  mysql               wikies
backup_sda3    debian-5.0.flag    ib_logfile0  lost+found   mysql_upgrade_info

root@v-www-conway:/# mount
/dev/simfs on / type simfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
/dev/sdc2 on /mnt/hd type ext3 (rw,data=ordered)

root@v-www-conway:/# fdisk -l
cannot open /proc/partitions

root@v-www-conway:/# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   13G  6.6G  66% /
tmpfs                 4.0G     0  4.0G   0% /lib/init/rw
tmpfs                 4.0G     0  4.0G   0% /dev/shm
/dev/sdc2             114G   47G   62G  43% /mnt/hd

Mas info Bind mounts

« »

guy fawkes