add an existing rbd image to iscsi target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i have cluster (v 17.2.4) with cephadm
-------
[root@ceph-01 ~]# ceph -s
  cluster:
    id:     c61f6c8a-42a1-11ed-a5f1-000c29089b59
    health: HEALTH_OK

  services:
    mon:        3 daemons, quorum ceph-01.fns.com,ceph-03,ceph-02 (age 109m)
    mgr:        ceph-01.fns.com.vdoxhd(active, since 109m), standbys:
ceph-03.dpdpgp
    mds:        2/2 daemons up, 1 standby
    osd:        3 osds: 3 up (since 109m), 3 in (since 3w)
    rbd-mirror: 2 daemons active (2 hosts)

  data:
    volumes: 2/2 healthy
    pools:   6 pools, 161 pgs
    objects: 189 objects, 80 MiB
    usage:   131 MiB used, 150 GiB / 150 GiB avail
    pgs:     161 active+clean

  io:
    client:   1.7 KiB/s rd, 1 op/s rd, 0 op/s wr

-----------
[root@ceph-01 ~]# ceph orch ls
NAME             PORTS        RUNNING  REFRESHED  AGE   PLACEMENT
alertmanager     ?:9093,9094      1/1  9m ago     9w    count:1
crash                             3/3  9m ago     9w    *
grafana          ?:3000           1/1  9m ago     9w    count:1
iscsi.kube-disk                   2/2  9m ago     114m  ceph-01.fns.com;
ceph-02.fns.com;count:2
mds.rook                          3/3  9m ago     6w    ceph-01.fns.com;
ceph-02.fns.com;ceph-03.fns.com;count:3
mgr                               2/2  9m ago     9w    count:2
mon                               3/5  9m ago     9w    count:5
node-exporter    ?:9100           3/3  9m ago     9w    *
osd                                 3  9m ago     -     <unmanaged>
prometheus       ?:9095           1/1  9m ago     9w    count:1
rbd-mirror                        2/2  9m ago     8d    count:2
-----------

 i created  rbd-image befor , now i want expose them on the iscsi target.
 i create iscsi-gw by dashboard and iscsi-target.
 but in the dashboaerd i can't added image in iscsi-target (There are no
images available)



i try get bash from iscsi-gw container with ( docker exec -it
ceph-c61f6c8a-42a1-11ed-a5f1-000c29089b59-iscsi-kube-disk-ceph-01-bkbhlp-tcmu
bash)
and add image by gwcli but it doesn't show me any image


---
[root@ceph-01 ~]# rbd ls --pool k8s-rbd
csi-vol-4953bb63-708f-11ed-b0e9-328684e96ded
csi-vol-93d55bd9-6931-11ed-8a99-02e8c67c703f
csi-vol-93ea9aad-6931-11ed-8a99-02e8c67c703f
csi-vol-aeeb71af-6eab-11ed-9ea2-7aaa7c682140
csi-vol-c32fbb4c-6eb3-11ed-9ea2-7aaa7c682140
csi-vol-d925df21-6eb3-11ed-9ea2-7aaa7c682140
csi-vol-e9865e15-6931-11ed-8a99-02e8c67c703f
csi-vol-ec2e8490-6931-11ed-8a99-02e8c67c703f
csi-vol-f1725e80-6931-11ed-8a99-02e8c67c703f
csi-vol-f6de7ea8-6931-11ed-8a99-02e8c67c703f
----

[root@ceph-01 /]# gwcli
Warning: Could not load preferences file /root/.gwcli/prefs.bin.
/>
*               /               @gateways       @host-groups    @hosts
     cluster/        disks/          iscsi-targets/
bookmarks       cd              exit            export          get
    goto            help            info
ls              pwd             set
/> ls
o- /
.........................................................................................................................
[...]
  o- cluster
.........................................................................................................
[Clusters: 1]
  | o- ceph
............................................................................................................
[HEALTH_OK]
  |   o- pools
..........................................................................................................
[Pools: 6]
  |   | o- .mgr
.................................................................. [(x3),
Commit: 0.00Y/49749484K (0%), Used: 1356K]
  |   | o- cephfs_data
......................................................... [(x3), Commit:
0.00Y/49749484K (0%), Used: 138053b]
  |   | o- cephfs_metadata
..................................................... [(x3), Commit:
0.00Y/49749484K (0%), Used: 174984b]
  |   | o- k8s-cephfs-data
....................................................... [(x3), Commit:
0.00Y/49749484K (0%), Used: 0.00Y]
  |   | o- k8s-cephfs-metadata
................................................. [(x3), Commit:
0.00Y/49749484K (0%), Used: 237318b]
  |   | o- k8s-rbd
........................................................... [(x3), Commit:
0.00Y/49749484K (0%), Used: 30295498b]
  |   o- topology
................................................................................................
[OSDs: 3,MONs: 3]
  o- disks
.......................................................................................................
[0.00Y, Disks: 0]
  o- iscsi-targets
...............................................................................
[DiscoveryAuth: None, Targets: 1]
    o- iqn.2001-07.com.ceph:1670310941655
................................................................ [Auth:
None, Gateways: 2]
      o- disks
..........................................................................................................
[Disks: 0]
      o- gateways
............................................................................................
[Up: 2/2, Portals: 2]
      | o- ceph-01.fns.com
....................................................................................
[192.168.0.120 (UP)]
      | o- ceph-02.fns.com
....................................................................................
[192.168.0.121 (UP)]
      o- host-groups
..................................................................................................
[Groups : 0]
      o- hosts
......................................................................................
[Auth: ACL_DISABLED, Hosts: 0]
/> cd cluster/ceph/pools/k8s-rbd
/cluster/ceph/pools/k8s-rbd> ll
Command not found ll
/cluster/ceph/pools/k8s-rbd> ls
o- k8s-rbd
................................................................... [(x3),
Commit: 0.00Y/49749484K (0%), Used: 30295498b]
/cluster/ceph/pools/k8s-rbd> info
Name           .. k8s-rbd
Commit         .. 0
Overcommit Pct .. 0
Max Bytes      .. 50943471616
Used Bytes     .. 30295498
Type           .. replicated
Desc           .. x3
-----
how can images that created already with anyway exposed to user by iscsi?
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux