Guest User

Untitled

a guest
Jun 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.97 KB | None | 0 0
  1. bekir@hede:~$ dd if=/dev/zero of=/free/test bs=1M count=100
  2. 100+0 records in
  3. 100+0 records out
  4. 104857600 bytes (105 MB) copied, 0.452559 s, 232 MB/s
  5.  
  6.  
  7.  
  8. bekir@hede:~$ sudo mkfs.ext4 /free/test
  9. mke2fs 1.42 (29-Nov-2011)
  10. /free/test is not a block special device.
  11. Proceed anyway? (y,n) y
  12. Discarding device blocks: done                            
  13. Filesystem label=
  14. OS type: Linux
  15. Block size=1024 (log=0)
  16. Fragment size=1024 (log=0)
  17. Stride=0 blocks, Stripe width=0 blocks
  18. 25688 inodes, 102400 blocks
  19. 5120 blocks (5.00%) reserved for the super user
  20. First data block=1
  21. Maximum filesystem blocks=67371008
  22. 13 block groups
  23. 8192 blocks per group, 8192 fragments per group
  24. 1976 inodes per group
  25. Superblock backups stored on blocks:
  26.     8193, 24577, 40961, 57345, 73729
  27.  
  28. Allocating group tables: done                            
  29. Writing inode tables: done                            
  30. Creating journal (4096 blocks): done
  31. Writing superblocks and filesystem accounting information: done
  32.  
  33.  
  34.  
  35. bekir@hede:~$ grep /free /var/lib/lxc/mongo/config
  36. lxc.mount.entry=/free/test /var/lib/lxc/mongo/rootfs/free ext4 user,loop 0 0
  37.  
  38.  
  39.  
  40. bekir@hede:~$ sudo lxc-start --logpriority DEBUG --logfile /dev/tty  --name mongo
  41.       lxc-start 1329594597.879 DEBUG    lxc_console - using '/dev/tty' as console
  42.       lxc-start 1329594597.880 DEBUG    lxc_start - sigchild handler set
  43.       lxc-start 1329594597.880 INFO     lxc_start - 'mongo' is initialized
  44.       lxc-start 1329594597.882 DEBUG    lxc_conf - instanciated veth 'veth-mongo/vethdn3mk0', index is '70'
  45.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/' (rootfs)
  46.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/sys' (sysfs)
  47.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/proc' (proc)
  48.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/dev' (devtmpfs)
  49.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/dev/pts' (devpts)
  50.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/run' (tmpfs)
  51.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/' (ext4)
  52.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/lib/init/rw' (tmpfs)
  53.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/run/lock' (tmpfs)
  54.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/tmp' (tmpfs)
  55.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/media/sd-mmcblk0p1' (vfat)
  56.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/run/shm' (tmpfs)
  57.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - checking '/cgroup' (cgroup)
  58.       lxc-start 1329594597.886 INFO     lxc_cgroup - found cgroup mounted at '/cgroup'
  59.       lxc-start 1329594597.886 DEBUG    lxc_cgroup - cgroup /cgroup has flags 0x2
  60.       lxc-start 1329594597.904 INFO     lxc_cgroup - created cgroup '/cgroup/mongo'
  61.       lxc-start 1329594597.904 DEBUG    lxc_cgroup - checking '/free' (ext4)
  62.       lxc-start 1329594597.904 DEBUG    lxc_cgroup - checking '/home' (ext4)
  63.       lxc-start 1329594597.904 DEBUG    lxc_cgroup - checking '/var/lib/nfs/rpc_pipefs' (rpc_pipefs)
  64.       lxc-start 1329594597.904 DEBUG    lxc_cgroup - checking '/sys/fs/fuse/connections' (fusectl)
  65.       lxc-start 1329594597.904 DEBUG    lxc_cgroup - checking '/proc/fs/nfsd' (nfsd)
  66.       lxc-start 1329594597.905 DEBUG    lxc_conf - move 'eth0' to '17444'
  67.       lxc-start 1329594597.905 INFO     lxc_conf - 'mongo' hostname has been setup
  68.       lxc-start 1329594597.917 DEBUG    lxc_conf - mac address '02:00:c0:a8:ad:0b' on 'eth0' has been setup
  69.       lxc-start 1329594597.917 DEBUG    lxc_conf - 'eth0' has been setup
  70.       lxc-start 1329594597.917 INFO     lxc_conf - network has been setup
  71.       lxc-start 1329594597.917 DEBUG    lxc_conf - mounted '/var/lib/lxc/mongo/rootfs' on '/usr/lib/lxc'
  72.       lxc-start 1329594597.918 DEBUG    lxc_conf - mounted 'proc' on '/usr/lib/lxc//proc', type 'proc'
  73.       lxc-start 1329594597.918 DEBUG    lxc_conf - mounted 'devpts' on '/usr/lib/lxc//dev/pts', type 'devpts'
  74.       lxc-start 1329594597.918 DEBUG    lxc_conf - mounted 'sysfs' on '/usr/lib/lxc//sys', type 'sysfs'
  75.       lxc-start 1329594597.918 ERROR    lxc_conf - Block device required - failed to mount '/free/test' on '/usr/lib/lxc//free'
  76. lxc-start: Block device required - failed to mount '/free/test' on '/usr/lib/lxc//free'
  77.       lxc-start 1329594597.918 ERROR    lxc_conf - failed to setup the mount entries for 'mongo'
  78. lxc-start: failed to setup the mount entries for 'mongo'
  79.       lxc-start 1329594597.918 ERROR    lxc_start - failed to setup the container
  80. lxc-start: failed to setup the container
  81.       lxc-start 1329594597.918 ERROR    lxc_sync - invalid sequence number 1. expected 2
  82. lxc-start: invalid sequence number 1. expected 2
  83.       lxc-start 1329594597.918 ERROR    lxc_start - failed to spawn 'mongo'
  84. lxc-start: failed to spawn 'mongo'
  85.       lxc-start 1329594597.918 DEBUG    lxc_cgroup - destroying /cgroup mongo
  86.  
  87.       lxc-start 1329594597.932 DEBUG    lxc_cgroup - '/cgroup/mongo' unlinked
  88. bekir@hede:~$
Add Comment
Please, Sign In to add comment