2014-02-12 63 views
3

我正在按照本指南https://developers.google.com/compute/docs/troubleshooting#ssherrors特別是有關恢復持久磁盤與另一個VM部分。谷歌計算引擎掛載持久性磁盤問題

我試圖按照此部分:

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging /mnt/myinstance

這是錯誤我得到:使用

[email protected]:~# mount /dev/disk/by-id/scsi-0Google_PersistentDisk_marty-wll-debugging /mnt/marty-wll 
mount: you must specify the filesystem type

我不確定文件系統由於谷歌-計算磁盤和系統已被刪除,並附加到另一臺機器,遵循上面引用的谷歌開發人員指南。

parted scsi-0Google_PersistentDisk_marty-wll-debugging -l
[email protected]:/dev/disk/by-id# parted scsi-0Google_PersistentDisk_marty-wll-debugging -l 
Model: Google PersistentDisk (scsi) 
Disk /dev/sda: 10.7GB 
Sector size (logical/physical): 512B/4096B 
Partition Table: msdos 

Number Start End  Size Type  File system Flags 
1  1049kB 10.7GB 10.7GB primary ext4 


Model: Google PersistentDisk (scsi) 
Disk /dev/sdb: 10.7GB 
Sector size (logical/physical): 512B/4096B 
Partition Table: msdos 

Number Start End  Size Type  File system Flags 
1  1049kB 10.7GB 10.7GB primary ext4 

給我的信息,其 「的ext4」。

雖然當我發出以下命令我仍然得到一個錯誤:

[email protected]:~# mount -t ext4 /dev/disk/by-id/scsi-0Google_PersistentDisk_marty-wll-debugging /mnt/marty-wll 
mount: wrong fs type, bad option, bad superblock on /dev/sdb, 
     missing codepage or helper program, or other error 
     In some cases useful info is found in syslog - try 
     dmesg | tail or so 

系統日誌的dmesg的說:

[ 2452.205447] EXT4-fs (sdb): VFS: Can't find ext4 filesystem

什麼想法?

回答

7

感謝您指出這一點,我會更新文檔。嘗試將-part1添加到設備名稱的末尾。這將掛載分區,而不是磁盤。爲了您的具體情況:

mount /dev/disk/by-id/scsi-0Google_PersistentDisk_myinstance-debugging-part1 /mnt/myinstance 

此外,還有清潔的別名,所以這應該工作,以及:

mount /dev/disk/by-id/google-myinstance-debugging-part1 /mnt/myinstance 
+0

謝謝你的指正。這恰好是本週我幫助糾正的第二個雲平臺文檔!另一個是關於雲端SQL二進制日誌。再次感謝! –

+1

@brian dorsey?這個問題涉及到追加-part1到磁盤名稱? http://stackoverflow.com/questions/41024084/attaching-persistent-disks-makes-google-compute-instance-inaccessible –