Beruflich Dokumente
Kultur Dokumente
I regularly use Openfiler as storage to test cluster setups with Oracle RAC or other cluster software. Openfiler is one of the options to have a storage with many interfaces: NFS, SMB, rsync, WebDAV, FTP, iSCSI and more:
Christians blog entry Installation & Konfiguration von Openfiler 2.3 fr Oracle RAC(german). How to configure OpenFiler v2.3 iSCSI Storage for use with VMware ESX
Click in the column Add physical storage to add the block devices. A click on View member PVs looks like this:
Volumes
SHARE VOLUMES
Now share volumes by adding a iSCSI target, Volumes -> iSCSI Configuration:
Targets
-> Target
Click on Add under Add new iSCSI Target. Next, click on LUN Mapping and assign a LUN to your volumes. Just click on Map in the list of unmapped volumes. After that the page LUN Mapping should look like:
ENABLE SERVICES
To use iSCSI you need to enable it under Services. Just click on the Enable link of all services you need:
Targets
-> Network
ACL:
Set Access to Allow and click Update. Attention: maybe you wont see iSCSI targets from the client. Openfiler wont accept connections; check /etc/initiators.deny for an entry denying access from ALL. Just comment it out and save the file. Take care: Openfiler will regenerate this file from time to time
modify discovery:
1. root@rac1:/ # iscsiadm modify discovery --sendtargets enable 2. root@rac1:/ # iscsiadm list discovery 3. Discovery: 4. 5. 6. Static: disabled Send Targets: enabled iSNS: disabled add discovery-address:
1. root@rac1:/ # iscsiadm add discovery-address 192.168.3.66 2. root@rac1:/ # iscsiadm list discovery-address 3. Discovery Address: 192.168.3.66:3260 4. root@rac1:/ # iscsiadm list target 5. Target: iqn.2006-01.com.openfiler:tsn.bb9e3f57be77 6. 7. 8. 9. Alias: TPGT: 1 ISID: 4000002a0000 Connections: 1
Create device files using devfsadm so that Solaris can start using the new disks:
Repeat this after you changed iSCSI targets by removing or adding LUNs. You can see a list of the devices using iostat -En:
1. root@rac1:/ # iostat -En 2. c0d0 3. Model: Virtual Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 HDD [0 Revision: Serial No: 014159265358979 Size: 68.72GB
<68719214592 bytes> 4. Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 5. Illegal Request: 0 6. c0t1d0 7. Vendor: Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Product: Virtual DVD-ROM Revision: R103 Serial No:
8. Size: 0.00GB <0 bytes> 9. Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 10. Illegal Request: 2 Predictive Failure Analysis: 0 11. c1t1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Revision: 0 Serial No:
12. Vendor: OPNFILER Product: VIRTUAL-DISK 13. Size: 4.29GB <4294966784 bytes>
14. Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 15. Illegal Request: 2 Predictive Failure Analysis: 0 16. c1t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Revision: 0 Serial No:
17. Vendor: OPNFILER Product: VIRTUAL-DISK 18. Size: 0.34GB <335543808 bytes>
19. Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 20. Illegal Request: 2 Predictive Failure Analysis: 0 21. c1t3d0 22. [...] Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Now fdisk, format and newfs the devices. See Formatting Many Raw Devices At Once on Solarisfor a script to format many raw devices at once. Have fun!