Datera

From Define Wiki
Revision as of 11:08, 16 February 2017 by Mike (talk | contribs) (Format using mkfs.xfs)
Jump to navigation Jump to search

Once iscsiadm has been used, the iSCSI Qualified Name (IQN) can be found in /etc/iscsi/

When authentication is not enabled, it's easy to access provisioned storage, where the ip is taken from the Datera GUI:

iscsiadm -m discovery -t st -p ip:port

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/ch-iscsi.html

Logging in:

iscsiadm --m node -T iqn.2007-06.com.test.cluster1:storage.cluster1 --portal 172.16.48.175:3260 -l

Disabling a target:

There are three ways to disable or delete an iSCSI target.

First, to disable an iSCSI target:

iscsiadm --m node -T iqn.2007-06.com.test.cluster1:storage.cluster1 --portal 172.16.48.175:3260 -u

Second, it is possible to delete the target's record ID:/p>

iscsiadm -m node -o delete -T iqn.2007-06.com.test.cluster1:storage.cluster1 --portal 172.16.48.175:3260

https://access.redhat.com/articles/9883

Formatting

[root@head ~]# time mkfs.xfs /dev/device
specified blocksize 4096 is less than device physical sector size 1048576
switching to logical sector size 512
meta-data=/dev/device             isize=256    agcount=4, agsize=67108864 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=268435456, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =internal log           bsize=4096   blocks=131072, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

real    0m14.929s
user    0m0.000s
sys     0m0.228s

References

http://linux-iscsi.org/wiki/Main_Page