web-dev-qa-db-ja.com

マウント後にgcsfuseがコマンドプロンプトに戻らないのはなぜですか?

正常にインストールしました gcsfuse 。実行すると、File system has been successfully mountedが出力されますが、シェルプロンプトに戻りません。 (以下のトランスクリプトを参照してください。)私は何が間違っているのですか?

バケットが存在することの確認:

ybaruy_gmail_com@test-Fuse:~$ gsutil ls

Updates are available for some Cloud SDK components.  To install
them, please run:
 $ gcloud components update

gs://daniella/
gs://test-daniella-nearline/
gs://test-yakov/
gs://yossi-Fuse-bucket/

前提条件のインストール:

ybaruy_gmail_com@test-Fuse:~$ Sudo apt-get install wget Fuse
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version.
The following NEW packages will be installed:
  Fuse
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 74.2 kB of archives.
After this operation, 179 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org/ wheezy/updates/main Fuse AMD64 2.9.0-2+deb7u2 [74.2 kB]
Fetched 74.2 kB in 0s (1,953 kB/s)
Selecting previously unselected package Fuse.
(Reading database ... 20074 files and directories currently installed.)
Unpacking Fuse (from .../Fuse_2.9.0-2+deb7u2_AMD64.deb) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-AMD64
/var/tmp/mkinitramfs_4WmsnD/scripts/local-premount/gce-disable-growroot: 7: .: Can't open /scripts/functions
Processing triggers for man-db ...
Setting up Fuse (2.9.0-2+deb7u2) ...
Creating Fuse group...
Adding group `Fuse' (GID 105) ...
Done.
udev active, skipping device node creation.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.16.0-0.bpo.4-AMD64
/var/tmp/mkinitramfs_PqrQoB/scripts/local-premount/gce-disable-growroot: 7: .: Can't open /scripts/functions
ybaruy_gmail_com@test-Fuse:~$ Sudo adduser $USER Fuse
Adding user `ybaruy_gmail_com' to group `Fuse' ...
Adding user ybaruy_gmail_com to group Fuse
Done.

説明されているように、gcsfuseをインストールします ここ

ybaruy_gmail_com@test-Fuse:~$ wget https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.6.0/gcsfuse_v0.6.0_linux_AMD64.tar.gz
--2015-08-04 05:50:34--  https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.6.0/gcsfuse_v0.6.0_linux_AMD64.tar.gz
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://s3.amazonaws.com/github-cloud/releases/30325550/e406280c-3aab-11e5-92fd-72a098ee49be.gz?response-content-disposition=attachment%3B%20filename%3Dgcsfuse_v0.6.0_linux_AMD64.tar.gz&response-content-type=application/octet-stream&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1438667495&Signature=D4Dq3DdtDIuhmhz4MYCfbIWqvbg%3D [following]
--2015-08-04 05:50:35--  https://s3.amazonaws.com/github-cloud/releases/30325550/e406280c-3aab-11e5-92fd-72a098ee49be.gz?response-content-disposition=attachment%3B%20filename%3Dgcsfuse_v0.6.0_linux_AMD64.tar.gz&response-content-type=application/octet-stream&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1438667495&Signature=D4Dq3DdtDIuhmhz4MYCfbIWqvbg%3D
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.2.40
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.2.40|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4002177 (3.8M) [application/octet-stream]
Saving to: `gcsfuse_v0.6.0_linux_AMD64.tar.gz'

100%[========================================================================================>] 4,002,177   1.09M/s   in 4.2s

2015-08-04 05:50:40 (939 KB/s) - `gcsfuse_v0.6.0_linux_AMD64.tar.gz' saved [4002177/4002177]

ybaruy_gmail_com@test-Fuse:~$ Sudo tar -C /usr/local/bin -zxf gcsfuse_v0.6.0_linux_AMD64.tar.gz
ybaruy_gmail_com@test-Fuse:~$ Sudo chmod g+rw /dev/Fuse
ybaruy_gmail_com@test-Fuse:~$ Sudo chgrp Fuse /dev/Fuse
ybaruy_gmail_com@test-Fuse:~$ mkdir mount-point
ybaruy_gmail_com@test-Fuse:~$ logout
Connection to 146.148.112.111 closed.

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Session stopped
    - Press <return> to exit tab
    - Press r to restart session
    - Press s to save terminal output to file





RECONNECTING, PLEASE WAIT...




X11 forwarding request failed on channel 0
Linux test-Fuse 3.16.0-0.bpo.4-AMD64 #1 SMP Debian 3.16.7-ckt11-1~bpo70+1 (2015-06-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Aug  4 05:45:22 2015 from pavel.iucc.ac.il

Gcsfuseの実行:

ybaruy_gmail_com@test-Fuse:~$ gcsfuse yossi-Fuse-bucket mount-point
2015/08/04 05:51:44.524655 Warning: low file rlimit of 1024 will cause cached content to be frequently evicted. Consider raising with `ulimit -n`.
2015/08/04 05:51:44.954706 File system has been successfully mounted.
2
Yossi Baruch

gcsfuseコマンドはシェルに戻らないことが予想されます。ファイルシステムがマウント解除されるか(fusermount -uを使用)、またはSIGINTを受信するまで、通常はフォアグラウンドで実行されます。 Ctrl-Cを押します。詳細については、 ドキュメント を参照してください。

フォアグラウンドで実行されているときにファイルシステムと対話する場合は、別のSSHセッションを開いてそこで実行する必要があります。または、 daemon のようなヘルパープログラムを使用して、gcsfuseをバックグラウンドで実行されるデーモンに変換し、fstabに設定することもできます。詳細については、ドキュメントの "デーモンとして実行" というセクションを参照してください。

2
jacobsa