I have a new google compute engine instance running CentOS6 with two persistent storage volumes attached. I have followed the instructions here: https://cloud.google.com/compute/docs/disks/add-persistent-disk
My attached volumes are:
/dev/sdb or /dev/disk/by-id/google-admin-backup
/dev/sdc or /dev/disk/by-id/google-admin-media
/etc/fstab looks like:
UUID=6e64a346-b01d-45d6-8bb0-549535b4b3cc / ext4 defaults,barrier=1 1 1
/dev/sdb /backups ext4 defaults 0 0
/dev/disk/by-id/google-admin-media /www/icapture/capture ext4 discard,defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
note: I realize that I am pointing at the disks differently, I have tried both by doing the /dev/sdc and the /by-id/ way
My problem is that when I reboot the machine /www/icapture/capture doesn't mount.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 59G 5.3G 51G 10% /
tmpfs 2.9G 0 2.9G 0% /dev/shm
/dev/sdb 493G 70M 467G 1% /backups
However, I can simply do
sudo mount /www/icapture/capture
And it mounts correctly.
I would like my volumes to mount on boot. What am I overlooking that is preventing /www/icapture/capture from mounting at boot?
For reference: From /var/log/dmesg
scsi0 : Virtio SCSI HBA
scsi 0:0:1:0: Direct-Access Google PersistentDisk 1 PQ: 0 ANSI: 6
scsi 0:0:2:0: Direct-Access Google PersistentDisk 1 PQ: 0 ANSI: 6
scsi 0:0:3:0: Direct-Access Google PersistentDisk 1 PQ: 0 ANSI: 6
sd 0:0:2:0: [sdb] 1048576000 512-byte logical blocks: (536 GB/500 GiB)
sd 0:0:1:0: [sda] 125829120 512-byte logical blocks: (64.4 GB/60.0 GiB)
sd 0:0:1:0: [sda] 4096-byte physical blocks
sd 0:0:3:0: [sdc] 209715200 512-byte logical blocks: (107 GB/100 GiB)
sd 0:0:3:0: [sdc] 4096-byte physical blocks
sd 0:0:1:0: [sda] Write Protect is off
sd 0:0:1:0: [sda] Mode Sense: 1f 00 00 08
sd 0:0:3:0: [sdc] Write Protect is off
sd 0:0:3:0: [sdc] Mode Sense: 1f 00 00 08
sd 0:0:1:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:3:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda:
sdc: sda1
unknown partition table
sd 0:0:2:0: [sdb] 4096-byte physical blocks
sd 0:0:2:0: [sdb] Write Protect is off
sd 0:0:1:0: [sda] Attached SCSI disk
sd 0:0:3:0: [sdc] Attached SCSI disk
sd 0:0:2:0: [sdb] Mode Sense: 1f 00 00 08
sd 0:0:2:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: unknown partition table
sd 0:0:2:0: [sdb] Attached SCSI disk