http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
Есть амазон инстанц с 3 volume. Второй на 50 гиг но в консоли я его не видел.
Шаги для mount disk
LABEL=cloudimg-rootfs / ext4 defaults 0 0
/swapfile1 swap swap defaults 0 0
/dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
/dev/xvdf /opt/extra auto defaults,nobootwait,comment=cloudconfig 0 2
latest row has been added.
4. To check:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 4.0G 3.6G 54% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 752M 156K 752M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 0 1.9G 0% /run/shm
/dev/xvdb 394G 199M 374G 1% /mnt
/dev/xvdf 50G 374M 47G 1% /opt/extra
*********************
$ umount /opt/extra
$ mount /opt/extra
should not be errors
*********************
Good lack!
UPD:
Use the lsblk command to view your available disk devices and their mount points (if applicable) to help you determine the correct device name to use.
Есть амазон инстанц с 3 volume. Второй на 50 гиг но в консоли я его не видел.
Шаги для mount disk
1. sudo mkdir /opt/extra
2. sudo mount /dev/xvdf /opt/extra
3. sudo vi /etc/fstab
/swapfile1 swap swap defaults 0 0
/dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
/dev/xvdf /opt/extra auto defaults,nobootwait,comment=cloudconfig 0 2
latest row has been added.
4. To check:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 4.0G 3.6G 54% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 752M 156K 752M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 0 1.9G 0% /run/shm
/dev/xvdb 394G 199M 374G 1% /mnt
/dev/xvdf 50G 374M 47G 1% /opt/extra
*********************
$ umount /opt/extra
$ mount /opt/extra
should not be errors
*********************
Good lack!
UPD:
Use the lsblk command to view your available disk devices and their mount points (if applicable) to help you determine the correct device name to use.
[ec2-user ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvdf 202:80 0 100G 0 disk xvda1 202:1 0 8G 0 disk /
Комментариев нет:
Отправить комментарий