金鱼哥RHCA回忆录:CL210管理存储--章节实验
🎹 个人简介:大家好,我是 金鱼哥,CSDN运维领域新星创作者,华为云·云享专家,阿里云社区·专家博主
📚个人资质:CCNA、HCNP、CSNA(网络分析师),软考初级、中级网络工程师、RHCSA、RHCE、RHCA、RHCI、ITIL😜
💬格言:努力不一定成功,但要想成功就必须努力🔥🎈支持我:可点赞👍、可收藏⭐️、可留言📝
📜章节实验
-
管理OpenStack块存储。
-
管理OpenStack共享文件系统。
[student@workstation ~]$ lab storage-review setup
Setting up workstation for lab exercise work:
• Verifying project: production............................... SUCCESS
• Creating user env file: operator1-production-rc............. SUCCESS
• Creating user env file: architect1-production-rc............ SUCCESS
• Creating keypair: operator1-keypair......................... SUCCESS
. Verifying flavor: default................................... SUCCESS
. Verifying image: rhel7...................................... SUCCESS
. Verifying internal network: production-network1............. SUCCESS
. Verifying subnet: production-subnet1........................ SUCCESS
. Verifying external network: provider-datacentre............. SUCCESS
. Backing up Nova and Cinder config files..................... SUCCESS
. Creating router: production-router1......................... SUCCESS
. Verifying security group: default........................... SUCCESS
. Verifying security group rule: tcp.......................... SUCCESS
. Verifying security group rule ICMP: icmp.................... SUCCESS
. Creating floating IP: 172.25.250.151........................ SUCCESS
• Creating local directory: /home/student/manila.............. SUCCESS
• Creating user data file: user-data.file..................... SUCCESS
. Backing up SSH config....................................... SUCCESS
. Adjusting SSH config........................................ SUCCESS
📑1. 作为operator1,使用rhel7镜像在production项目中创建一个名为production-volume1的10 GB可引导卷。
[student@workstation ~]$ source operator1-production-rc
[student@workstation ~(operator1-production)]$ openstack volume create --image rhel7 --size 10 production-volume1
.........
[student@workstation ~(operator1-production)]$ openstack volume list -c Name -c Status
+--------------------+-------------+
| Name | Status |
+--------------------+-------------+
| production-volume1 | downloading |
+--------------------+-------------+
[student@workstation ~(operator1-production)]$ openstack volume list -c Name -c Status
+--------------------+-----------+
| Name | Status |
+--------------------+-----------+
| production-volume1 | available |
+--------------------+-----------+
📑2. 作为operator1,在production项目中创建一个名为production-volume2的空1GB卷。
[student@workstation ~(operator1-production)]$ openstack volume create --size 1 production-volume2
.........
[student@workstation ~(operator1-production)]$ openstack volume list -c Name -c Status
+--------------------+-----------+
| Name | Status |
+--------------------+-----------+
| production-volume2 | available |
| production-volume1 | available |
+--------------------+-----------+
📑3. 验证新卷是否作为对象存在于卷Ceph池中。
[student@workstation ~(operator1-production)]$ openstack volume list -c Name -c Status -c ID
+--------------------------------------+--------------------+-----------+
| ID | Name | Status |
+--------------------------------------+--------------------+-----------+
| 1d377d0d-0241-409f-94b7-b09f47fbf2d4 | production-volume2 | available |
| f00c04a9-d211-4fe8-8cba-50d8cf7021fe | production-volume1 | available |
+--------------------------------------+--------------------+-----------+
[root@controller0 ~]# rados -p volumes ls | grep f00c04a9-d211-4fe8-8cba-50d8cf7021fe
rbd_id.volume-f00c04a9-d211-4fe8-8cba-50d8cf7021fe
[root@controller0 ~]# rados -p volumes ls | grep 1d377d0d-0241-409f-94b7-b09f47fbf2d4
rbd_id.volume-1d377d0d-0241-409f-94b7-b09f47fbf2d4
📑4. 作为operator1,使用production-volume1可引导卷在production项目中使用以下参数启动一个实例。
[student@workstation ~(operator1-production)]$ openstack server create --flavor default --volume production-volume1 --key-name operator1-keypair --nic net-id=production-network1 --wait production-server1
........
[student@workstation ~(operator1-production)]$ openstack server add volume production-server1 production-volume2
[student@workstation ~(operator1-production)]$ openstack volume list
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
| 1d377d0d-0241-409f-94b7-b09f47fbf2d4 | production-volume2 | in-use | 1 | Attached to production-server1 on /dev/vdb |
| f00c04a9-d211-4fe8-8cba-50d8cf7021fe | production-volume1 | in-use | 10 | Attached to production-server1 on /dev/vda |
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
📑5. 访问production-server1实例,并验证空的production-volume2卷已成功连接到production-server1实例。
[student@workstation ~(operator1-production)]$ openstack floating ip list
+--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
| ID | Floating IP Address | Fixed IP Address | Port | Floating Network | Project |
+--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
| 88e06a95-2661-448e-8e0b-24aa7da08313 | 172.25.250.151 | None | None | fc5472ee-98d9-4f6b-9bc9-544ca18aefb3 | 294ad7735e6646d7bb908e32de8582c3 |
+--------------------------------------+---------------------+------------------+------+--------------------------------------+----------------------------------+
[student@workstation ~(operator1-production)]$ openstack server add floating ip production-server1 172.25.250.151
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Warning: Permanently added '172.25.250.151' (ECDSA) to the list of known hosts.
[cloud-user@production-server1 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 10G 0 disk
└─vda1 253:1 0 10G 0 part /
vdb 253:16 0 1G 0 disk
📑6. 卷挂载测试
在production-volume2中创建一个1 GB的分区,在production-server1实例的分区表中作为设备vdb。使用xfs文件系统类型格式化分区,并将其临时挂载到/mnt上。创建文件/mnt/hello.txt,其中hello作为文本消息。文件/mnt/hello.txt被调整到production-volume2中,/mnt充当卷的挂载点。另外,创建文件/hello2。以hello2作为文本消息的txt。文件/hello2.txt被调整到production-volume1中,因为在production-server1实例中使用该卷作为根文件系统。
[cloud-user@production-server1 ~]$ sudo parted /dev/vdb
GNU Parted 3.1
Using /dev/vdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos
(parted) mkpart primary 0 1G
(parted) p
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 512B 1074MB 1074MB primary
(parted) q
Information: You may need to update /etc/fstab.
[cloud-user@production-server1 ~]$ sudo mkfs.xfs /dev/vdb1
meta-data=/dev/vdb1 isize=512 agcount=4, agsize=65536 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=262143, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=855, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[cloud-user@production-server1 ~]$ sudo mount /dev/vdb1 /mnt
[cloud-user@production-server1 ~]$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 10G 1.5G 8.6G 15% /
devtmpfs 898M 0 898M 0% /dev
tmpfs 920M 0 920M 0% /dev/shm
tmpfs 920M 17M 903M 2% /run
tmpfs 920M 0 920M 0% /sys/fs/cgroup
tmpfs 184M 0 184M 0% /run/user/1001
/dev/vdb1 1021M 33M 989M 4% /mnt
[cloud-user@production-server1 ~]$ sudo -i
[root@production-server1 ~]# echo hello > /mnt/hello.txt
[root@production-server1 ~]# echo hello2 > /hello2.txt
[root@production-server1 ~]# sync
📑7.删除现有的production-server1实例,并使用以下参数创建一个新的实例,将production-volume1作为可引导的卷。
[student@workstation ~(operator1-production)]$ openstack server delete production-server1
[student@workstation ~(operator1-production)]$ openstack server create --flavor default --volume production-volume1 --key-name operator1-keypair --nic net-id=production-network1 --wait production-server1
.........
[student@workstation ~(operator1-production)]$ openstack server add volume production-server1 production-volume2
[student@workstation ~(operator1-production)]$ openstack volume list
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
| 1d377d0d-0241-409f-94b7-b09f47fbf2d4 | production-volume2 | in-use | 1 | Attached to production-server1 on /dev/vdb |
| f00c04a9-d211-4fe8-8cba-50d8cf7021fe | production-volume1 | in-use | 10 | Attached to production-server1 on /dev/vda |
+--------------------------------------+--------------------+--------+------+---------------------------------------------+
📑8. 确认您先前创建的文本文件是否持久保存,以及production-server1实例中的所有内容。
[student@workstation ~(operator1-production)]$ openstack server add floating ip production-server1 172.25.250.151
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Last login: Mon Oct 26 02:34:42 2020 from workstation.lab.example.com
[cloud-user@production-server1 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 10G 0 disk
└─vda1 253:1 0 10G 0 part /
vdb 253:16 0 1G 0 disk
└─vdb1 253:17 0 1024M 0 part
[cloud-user@production-server1 ~]$ sudo mount /dev/vdb1 /mnt/
[cloud-user@production-server1 ~]$ cat /mnt/hello.txt
hello
[cloud-user@production-server1 ~]$ cat /hello2.txt
hello2
📑9. 作为operator1,在production项目中创建1 GB共享文件系统。
将共享文件系统的名称设置为production-share1,类型设置为cephfstype。在创建production-share1时使用cephfs协议。对于管理操作(比如管理共享文件系统的类型),可以使用architect1租户用户。
[student@workstation ~(operator1-production)]$ source architect1-production-rc
[student@workstation ~(architect1-production)]$ manila service-list
+----+------------------+------------------+------+---------+-------+-------------------+
| Id | Binary | Host | Zone | Status | State | Updated_at
+----+------------------+------------------+------+---------+-------+-------------------+
| 1 | manila-scheduler | hostgroup | nova | enabled | up | 2020-10-26T07:02:02.000000 |
| 2 | manila-share | hostgroup@cephfs | nova | enabled | up | 2020-10-26T07:02:03.000000 |
+----+------------------+------------------+------+---------+-------+-------------------+
[student@workstation ~(architect1-production)]$ manila type-create cephfstype false
+----------------------+--------------------------------------+
| Property | Value |
+----------------------+--------------------------------------+
| required_extra_specs | driver_handles_share_servers : False |
| Name | cephfstype |
| Visibility | public |
| is_default | - |
| ID | 38877b67-366c-4abe-a273-365a522b88bc |
| optional_extra_specs | |
| Description | None |
+----------------------+--------------------------------------+
[student@workstation ~(architect1-production)]$ source operator1-production-rc
[student@workstation ~(operator1-production)]$ manila create --name production-share1 --share-type cephfstype cephfs 1
+---------------------------------------+-----------------------------------------------+
| Property | Value
+---------------------------------------+-----------------------------------------------+
| status | creating
| share_type_name | cephfstype
| description | None
| availability_zone | None
| share_network_id | None
| share_group_id | None
| revert_to_snapshot_support | False
| access_rules_status | active
| snapshot_id | None
| create_share_from_snapshot_support | False
| is_public | False
| task_state | None
| snapshot_support | False
| id | 11e74b08-5e0a-4c52-8047-ffd2e9f7d974
| size | 1
| source_share_group_snapshot_member_id | None
| user_id | ac8f19029cdf35fa7083687862bf1235d5a10f5b98632be09d323616c640985e
| name | production-share1
| share_type | 38877b67-366c-4abe-a273-365a522b88bc
| has_replicas | False
| replication_type | None
| created_at | 2020-10-26T07:05:54.000000
| share_proto | CEPHFS
| mount_snapshot_support | False
| project_id | 294ad7735e6646d7bb908e32de8582c3
| metadata | {}
+---------------------------------------+-----------------------------------------------+
[student@workstation ~(operator1-production)]$ manila list
+--------------------------------------+-------------------+------+-------------+-----------+-----------+-----------------+------+-------------------+
| ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone |
+--------------------------------------+-------------------+------+-------------+-----------+-----------+-----------------+------+-------------------+
| 11e74b08-5e0a-4c52-8047-ffd2e9f7d974 | production-share1 | 1 | CEPHFS | available | False | cephfstype | | nova |
+--------------------------------------+-------------------+------+-------------+-----------+-----------+-----------------+------+-------------------+
📑10. 将一个额外的NIC从提供程序存储网络附加到production-server1实例,以便从production-server1实例到达production-share1共享文件系统的网络配置。使用DHCP作为附加网卡的配置方法。
[student@workstation ~(operator1-production)]$ openstack network list
+--------------------------------------+---------------------+--------------------------+
| ID | Name | Subnets
+--------------------------------------+---------------------+--------------------------+
| d55f6d1e-c29e-4825-8de4-01dd95f8a220 | provider-storage | 6e5af9b0-67ef-4e1e-9eda-7d6633091d11 |
| e14d713e-c1f5-4800-8543-713563d7e82e | production-network1 | f0c54c6a-5094-4386-9e97-b8564ba31a93 |
| fc5472ee-98d9-4f6b-9bc9-544ca18aefb3 | provider-datacentre | 30c03fa5-0897-426a-8c81-75cf9cc333f1 |
+--------------------------------------+---------------------+--------------------------+
[student@workstation ~(operator1-production)]$ openstack server add network production-server1 provider-storage
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Last login: Mon Oct 26 02:52:17 2020 from workstation.lab.example.com
[cloud-user@production-server1 ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast state UP group default qlen 1000
link/ether fa:16:3e:7e:81:f4 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global noprefixroute dynamic eth0
valid_lft 41777sec preferred_lft 41777sec
inet6 fe80::f816:3eff:fe7e:81f4/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether fa:16:3e:60:55:ac brd ff:ff:ff:ff:ff:ff
[cloud-user@production-server1 ~]$ sudo cp -a /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
[cloud-user@production-server1 ~]$ sudo vim /etc/sysconfig/network-scripts/ifcfg-eth1
[cloud-user@production-server1 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=dhcp
DEVICE=eth1
ONBOOT=yes
[cloud-user@production-server1 ~]$ sudo systemctl restart network
[cloud-user@production-server1 ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast state UP group default qlen 1000
link/ether fa:16:3e:7e:81:f4 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.3/24 brd 192.168.1.255 scope global noprefixroute dynamic eth0
valid_lft 43197sec preferred_lft 43197sec
inet6 fe80::f816:3eff:fe7e:81f4/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether fa:16:3e:60:55:ac brd ff:ff:ff:ff:ff:ff
inet 172.24.3.208/24 brd 172.24.3.255 scope global noprefixroute dynamic eth1
valid_lft 43197sec preferred_lft 43197sec
inet6 fe80::f816:3eff:fe60:55ac/64 scope link
valid_lft forever preferred_lft forever
📑11. 创建cephx用户客户机,并将密匙环保存为cloud-user.keyring作为客户端进行身份验证。
[root@controller0 ~]# ceph --name=client.manila --keyring=/etc/ceph/ceph.client.manila.keyring auth get-or-create client.cloud-user > /root/cloud-user.keyring
[student@workstation ~(operator1-production)]$ scp root@controller0:{cloud-user.keyring,/etc/ceph/ceph.conf} manila/
Warning: Permanently added 'controller0,172.25.250.1' (ECDSA) to the list of known hosts.
cloud-user.keyring 100% 68 100.2KB/s 00:00
ceph.conf 100% 797 1.3MB/s 00:00
[student@workstation ~(operator1-production)]$ scp manila/ceph.conf manila/cloud-user.keyring cloud-user@172.25.250.151:
ceph.conf 100% 797 786.8KB/s 00:00
cloud-user.keyring 100% 68 75.9KB/s 00:00
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Last login: Mon Oct 26 03:10:23 2020 from workstation.lab.example.com
[cloud-user@production-server1 ~]$ sudo curl -s -f -o /etc/yum.repos.d/ceph.repo http://materials.example.com/ceph.repo
[cloud-user@production-server1 ~]$ sudo yum -y install ceph-fuse
Loaded plugins: langpacks, search-disabled-repos
…………
📑12. 将production-share1上的读写权限授予client.cloud-user。
[student@workstation ~(operator1-production)]$ manila access-allow --access-level rw production-share1 cephx cloud-user
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| access_key | None |
| share_id | 11e74b08-5e0a-4c52-8047-ffd2e9f7d974 |
| created_at | 2020-10-26T15:11:39.000000 |
| updated_at | None |
| access_type | cephx |
| access_to | cloud-user |
| access_level | rw |
| state | queued_to_apply |
| id | 5dd12311-45fd-469e-8d1b-dbb26c61ef6e |
+--------------+--------------------------------------+
[student@workstation ~(operator1-production)]$ manila access-list production-share1
+--------------------------------------+-------------+------------+--------------+--------+------------------------------------------+----------------------------+----------------------------+
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+--------------------------------------+-------------+------------+--------------+--------+------------------------------------------+----------------------------+----------------------------+
| 5dd12311-45fd-469e-8d1b-dbb26c61ef6e | cephx | cloud-user | rw | active | AQAfeJZfxPLkMBAABVZ+MGE9oBDIGKY1OURKKg== | 2020-10-26T15:11:39.000000 | 2020-10-26T15:11:39.000000 |
+--------------------------------------+-------------+------------+--------------+--------+------------------------------------------+----------------------------+----------------------------+
📑13. 从production-server1实例访问production-share1共享文件系统。
[student@workstation ~(operator1-production)]$ manila share-export-location-list production-share1
+--------------------------------------+------------------------------------------------------------------------+-----------+
| ID | Path | Preferred |
+--------------------------------------+------------------------------------------------------------------------+-----------+
| 8d592e86-8ac6-4e64-8f37-8265c9b6ff2d | 172.24.3.1:6789:/volumes/_nogroup/13551700-409f-43e8-8ba6-6f0f2481c6d0 | False |
+--------------------------------------+------------------------------------------------------------------------+-----------+
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Last login: Mon Oct 26 03:23:15 2020 from workstation.lab.example.com
[cloud-user@production-server1 ~]$ sudo -i
[root@production-server1 ~]# mkdir /manila
[root@production-server1 ~]# ceph-fuse /manila --id=cloud-user --conf=/home/cloud-user/ceph.conf --keyring=/home/cloud-user/cloud-user.keyring --client-mountpoint=/volumes/_nogroup/13551700-409f-43e8-8ba6-6f0f2481c6d0
ceph-fuse[12253]: starting ceph client
2020-10-26 11:17:02.311428 7f06cb3cb0c0 -1 init, newargv = 0x55c6dd230d80 newargc=9
ceph-fuse[12253]: starting fuse
[root@production-server1 ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 xfs 10G 1.6G 8.5G 16% /
devtmpfs devtmpfs 898M 0 898M 0% /dev
tmpfs tmpfs 920M 0 920M 0% /dev/shm
tmpfs tmpfs 920M 17M 903M 2% /run
tmpfs tmpfs 920M 0 920M 0% /sys/fs/cgroup
/dev/vdb1 xfs 1021M 33M 989M 4% /mnt
tmpfs tmpfs 184M 0 184M 0% /run/user/1001
ceph-fuse fuse.ceph-fuse 1.0G 0 1.0G 0% /manila
[root@production-server1 ~]# echo hello > /manila/hello.txt
[root@production-server1 ~]# umount /manila/
[root@production-server1 ~]# exit
logout
[cloud-user@production-server1 ~]$ exit
logout
Connection to 172.25.250.151 closed.
📑14. 删除production-server1实例,并使用以下参数创建一个新实例:
[student@workstation ~(operator1-production)]$ openstack server create --flavor default --volume production-volume1 --key-name operator1-keypair --nic net-id=production-network1 --nic net-id=provider-storage --user-data /home/student/manila/user-data.file --wait production-server2
........
[student@workstation ~(operator1-production)]$ openstack server add floating ip production-server2 172.25.250.151
[student@workstation ~(operator1-production)]$ ssh 172.25.250.151
Last login: Mon Oct 26 11:15:35 2020 from workstation.lab.example.com
[cloud-user@production-server2 ~]$ sudo -i
[root@production-server2 ~]# ceph-fuse /manila --id=cloud-user --conf=/home/cloud-user/ceph.conf --keyring=/home/cloud-user/cloud-user.keyring --client-mountpoint=/volumes/_nogroup/13551700-409f-43e8-8ba6-6f0f2481c6d0
ceph-fuse[1346]: starting ceph client
2020-10-26 11:26:57.109685 7f9ad826c0c0 -1 init, newargv = 0x55d02365ed80 newargc=9
ceph-fuse[1346]: starting fuse
[root@production-server2 ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/vda1 xfs 10G 1.6G 8.5G 16% /
devtmpfs devtmpfs 898M 0 898M 0% /dev
tmpfs tmpfs 920M 0 920M 0% /dev/shm
tmpfs tmpfs 920M 17M 903M 2% /run
tmpfs tmpfs 920M 0 920M 0% /sys/fs/cgroup
tmpfs tmpfs 184M 0 184M 0% /run/user/1001
ceph-fuse fuse.ceph-fuse 1.0G 0 1.0G 0% /manila
[root@production-server2 ~]# cat /manila/hello.txt
hello
[root@production-server2 ~]# exit
logout
[cloud-user@production-server2 ~]$ exit
logout
Connection to 172.25.250.151 closed.
[student@workstation ~(operator1-production)]$ openstack server delete production-server2
📑评分脚本
[student@workstation ~]$ lab storage-review grade
Grading the student's work on workstation:
. Creating fresh instance: production-server1................. PASS
. Associating 172.25.250.151 to production-server1............ PASS
. Attaching volume to the instance: production-volume2........ PASS
. Evaluating the persistent volumes........................... PASS
. Evaluating the manila share................................. PASS
Overall lab grade.............................................. PASS
💡总结
-
基于块的、基于对象的和基于文件的存储选项具有各自的适用性和用例。这些存储选项并不相互替代或替代。基于块的存储选项提供了更高的可靠性,基于对象的存储提供了更好的可伸缩性,基于文件的存储为租户用户扩展了简单性。
-
RedHat OpenStack平台同时支持redhat Ceph存储和NFS作为存储后端。
-
Red Hat Ceph存储体系结构基于监视器(MON)守护进程和对象存储设备(OSD)守护进程。
-
红帽Ceph存储功能包括无缝可伸缩性和没有单点故障。
-
Red Hat Ceph存储使用CephX身份验证机制来识别和授权用户。
-
红帽OpenStack平台的块存储和镜像服务使用RBDs来访问Ceph,并且需要用户和池来访问集群。
-
Red Hat OpenStack平台对象存储服务(Swift)为租户用户提供可伸缩的对象存储。
-
OpenStack对象存储体系结构包括一个前端服务、代理服务器和三个后端服务:帐户服务器、对象服务器和容器服务器。
-
用户可以在对象存储中创建容器,并将对象上传到这些容器中。
-
OpenStack共享文件系统服务管理为基于文件的存储需求提供服务的共享。来自实例的用户作为远程文件系统访问共享。共享可以托管在各种后端存储提供程序上,包括但不限于红帽Ceph存储和红帽Gluster存储。
-
与持久存储持久存储数据不同,临时存储中的数据在实例终止后不会持久存储。持久存储主要存储可重用的数据。
RHCA认证需要经历5门的学习与考试,还是需要花不少时间去学习与备考的,好好加油,可以噶🤪。
以上就是【金鱼哥】对 第五章 管理存储–章节实验 的简述和讲解。希望能对看到此文章的小伙伴有所帮助。
💾红帽认证专栏系列:
RHCSA专栏:戏说 RHCSA 认证
RHCE专栏:戏说 RHCE 认证
此文章收录在RHCA专栏:RHCA 回忆录
如果这篇【文章】有帮助到你,希望可以给【金鱼哥】点个赞👍,创作不易,相比官方的陈述,我更喜欢用【通俗易懂】的文笔去讲解每一个知识点。
如果有对【运维技术】感兴趣,也欢迎关注❤️❤️❤️ 【金鱼哥】❤️❤️❤️,我将会给你带来巨大的【收获与惊喜】💕💕!
- 点赞
- 收藏
- 关注作者
评论(0)