Menu

After move /home/partimag on other disk, i can't restore an image

Help
Cool
2013-09-20
2013-10-13
  • Cool

    Cool - 2013-09-20

    Hi everybody.
    First, i'm a french user and i'm sorry if my english is not very good.

    I'm creating a DRBL server on Debian 7 and the last stable DRBL version
    (2.4.19).

    I was running low on space so I added a new drive and set it up by fstab
    mounted to /home/partimag.

    my fstab :

    / was on /dev/sda1 during installation

    UUID=db324387-1185-40f5-8393-be83a79ba2d9 / ext4
    errors=remount-ro 0 1

    /home was on /dev/sda6 during installation

    UUID=2f449037-8760-4ad2-af8c-5b706b401224 /home ext4
    defaults 0 2
    # /dev/sdc1 sur /home/partimag
    /dev/sdc1 /home/partimag ext4 defaults
    0 2

    swap was on /dev/sda5 during installation

    UUID=65f9a1b7-9571-4f12-a622-43e925c73e27 none swap
    sw 0 0
    /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0

    so, after this, i can open /home/partimag with a terminal and see files and
    folder into the new drive.
    I think the mount is good.

    But, when i want to restore an image, the client say :

    Failed to create secure directory (many times)
    The directory /home/partimag/xxx-img for the inputed name does NOT exist!
    Program terminated!!!

    I saw a post (
    http://sourceforge.net/p/clonezilla/discussion/Help/thread/a52c5548/) who
    Steven wants the resultat of 3 command-lines :
    1. cat /proc/cmdline
    2. mount
    3. find /home/partimag -print

    For me, the results are :
    1.
    BOOT_IMAGE=vmlinuz-pxe initrd=initrd-pxe.img devfs=nomount drblthincli=off
    selinux=0 text 1 clientdir=node_root ocs_opt="-l en_US.UTF-8 -g auto
    -e1 auto -e2 -r --clone-hidden-data -p choose --mcast-port 2232
    multicast_restoredisk 2013-09-17-ubuntu1204-test-drbl-img sda"

    2.
    devpts on /dev/pts type devpts
    (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000,gid=5,mode=620)
    192.168.0.1:/tftpboot/node_root on / type nfs
    (ro,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,mountport=47945,mountproto=tcp,local_lock=all,addr=192.168.0.1)
    none on /proc type proc (rw,noexec,nosuid,nodev)
    udev on /dev type devtmpfs
    (rw,relatime,size=996704k,nr_inodes=219656,mode=755)
    none on /sys type sysfs (rw,noexec,nosuid,nodev,relatime)
    tmpfs on /run type tmpfs
    (rw,noexec,nosuid,relatime,size=400488k,mode=755,size=10%,mode=755)
    none on /root type tmpfs (rw,relatime,mode=700)
    none on /etc type tmpfs (rw,relatime,mode=755)
    none on /var type tmpfs (rw,relatime,mode=755)
    192.168.0.1:/usr on /usr type nfs
    (ro,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,mountport=47945,mountproto=tcp,local_lock=all,addr=192.168.0.1)
    tmpfs on /run/lock type tmpfs
    (rw,noexec,nosuid,nodev,size=5242880,mode=1777,size=5242880,mode=1777)
    tmpfs on /run/shm type tmpfs
    (rw,noexec,nosuid,nodev,size=400480k,mode=1777,size=400480k,mode=1777)
    tmpfs on /tmp type tmpfs (rw)
    tmpfs on /media type tmpfs (rw)
    tmpfs on /mnt type tmpfs (rw)
    rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    192.168.0.1:/home on /home type nfs
    (rw,hard,intr,nfsvers=3,tcp,addr=192.168.0.1)
    /dev/sdb1 on /media/cle_usb type vfat (rw)

    3.
    /home/partimag
    /home/partimag/HP2530p-2013-08-28-11-img
    /home/partimag/HP2530p-2013-08-28-11-img/Info-dmi.txt
    /home/partimag/HP2530p-2013-08-28-11-img/sda1.ntfs-ptcl-img.gz.aa
    /home/partimag/HP2530p-2013-08-28-11-img/sda-pt.sf
    /home/partimag/HP2530p-2013-08-28-11-img/Info-packages.txt
    /home/partimag/HP2530p-2013-08-28-11-img/sda1.ntfs-ptcl-img.gz.ac
    /home/partimag/HP2530p-2013-08-28-11-img/disk
    /home/partimag/HP2530p-2013-08-28-11-img/sda-chs.sf
    /home/partimag/HP2530p-2013-08-28-11-img/Info-lshw.txt
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.aa
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ag
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ab
    /home/partimag/HP2530p-2013-08-28-11-img/sda-pt.parted
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ae
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.af
    /home/partimag/HP2530p-2013-08-28-11-img/sda6.vfat-ptcl-img.gz.aa
    /home/partimag/HP2530p-2013-08-28-11-img/Info-lspci.txt
    /home/partimag/HP2530p-2013-08-28-11-img/sda-mbr
    /home/partimag/HP2530p-2013-08-28-11-img/parts
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ac
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ad
    /home/partimag/HP2530p-2013-08-28-11-img/sda1.ntfs-ptcl-img.gz.ad
    /home/partimag/HP2530p-2013-08-28-11-img/sda-hidden-data-after-mbr
    /home/partimag/HP2530p-2013-08-28-11-img/sda1.ntfs-ptcl-img.gz.ab
    /home/partimag/HP2530p-2013-08-28-11-img/clonezilla-img
    /home/partimag/HP2530p-2013-08-28-11-img/sda5.ntfs-ptcl-img.gz.aa
    /home/partimag/HP2530p-2013-08-28-11-img/sda3.ext3-ptcl-img.gz.ah

    What can i do ? i don't understand what's happened. Permission problem
    maybe ?

    Thank you for your help.

     
  • Steven Shiau

    Steven Shiau - 2013-10-01

    When you run "drblpush -i", it prompts you that do not use "/media/" or "/tmp/" as the image repository.
    In your fstab:
    UUID=65f9a1b7-9571-4f12-a622-43e925c73e27 none swap
    sw 0 0
    /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0

    So /media/usb0 is your image repository? If so, you can:
    1. mkdir /image
    2. edit your /etc/fstab to mount /dev/sdb1 as /image
    3. run "drblpush -i" again, then when asking the image repository, enter "/image".

    Steven.

     
  • Cool

    Cool - 2013-10-09

    Hi.
    Thank you for your answer.
    It's works when i create a directory directly into "/"

    fstab :
    UUID="1e970bf9-e24e-498c-833d-35c463244c87" /hdd_750 ext4 defaults

    "drblpush -i" : asking the image repository : /hdd_750

    Next step : DRBL with NFS ..

    Just a question : why we can't use /media and /mnt directly with DRBL ? The rights are specific ?

     
  • Steven Shiau

    Steven Shiau - 2013-10-13

    "why we can't use /media and /mnt directly with DRBL ?" -> Because those directories is not NFS shared, they are tmpfs on the clients side.

    Steven.

     

Log in to post a comment.