iT邦幫忙

DAY 29
2

FalconStor CDP solution - DiskSafe系列 第 29

DiskSafe configuration file的XML結構

  • 分享至 

  • xImage
  •  

DiskSafe的configuration file是 /usr/local/falconstor/disksafe/etc/disksafe.cfg ,他是一個XML檔。
DiskSafe的configuration file是 /usr/local/falconstor/disksafe/etc/disksafe.cfg ,他是一個XML檔,我們以僅有一個sdd protection policy (其mirror disk為sde)例子來看:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<DiskSafe version="0.0" build="0" preConfig="false" hostName="" partnerName="" ipAddress="0.0.0.0">
    <disk status="00000000" devicePath="/dev/sdd" no="2096" mountPoint="" type="20000000" signature="00000000" capacity="10737418240" bytesPerSector="512" sectorsPerTrack="32" tracksPerCylinder="64" diskID="IBM_____1724-100__FAStT_600a0b800017e02e000001354e9ca60c" MountedSnapshot="false" maxSnapshots="0" server="" deviceName="" protocol="0" reserved="00000001">
           <scsiAddress length="0" portNumber="0" pathId="0" targetId="0" lun="0" />
           <partitions />
       </disk>
       <disk status="00000000" devicePath="/dev/sde" no="2112" mountPoint="" type="20030001" signature="00000000" capacity="10737418240" bytesPerSector="512" sectorsPerTrack="32" tracksPerCylinder="64" diskID="FALCON__IPSTOR_DISK_____6000d778690f931ed3a000004ea51c3f" MountedSnapshot="false" maxSnapshots="1000" server="IPStor-54-11" deviceName="ds_vdev_S10P2-10-97[nan]_1319443519@2438" protocol="2" reserved="00000002">
           <scsiAddress length="0" portNumber="0" pathId="0" targetId="0" lun="0" />
           <partitions />
      </disk>
    <protections>
       <protection loaded="true" id="{89275a31-9af6-48a3-8cd3-be6f78170a85}" groupName="" description="" clusterGroupID="" belongToGroupID="" policyType="1" umapDiskID="DELL____PERC_6/i________60026b904793d40016345bcd0dc351c9" umapFile="/usr/local/falconstor/disksafe/{89275a31-9af6-48a3-8cd3-be6f78170a85}" basePolicyID="" restorePolicyID="" restorPostAction="0" rollbackTimeStamp="0" traceFile="" maxTraceFileSize="0" failOvered="0" hostName="S10P2-10-97" owner="S10P2-10-97" createTime="2011-10-24 16:00:45" addToGroupTime="">
           <storage primaryDiskID="IBM_____1724-100__FAStT_600a0b800017e02e000001354e9ca60c" primaryDiskNo="2096" primaryDiskSignature="0" primaryPartitionNo="0" primaryStartingOffset="0" primaryVolumeSN="0" useTotalMirror="1" mirrorDiskID="FALCON__IPSTOR_DISK_____6000d778690f931ed3a000004ea51c3f" mirrorDiskNo="2112" mirrorPartitionNo="0" mirrorStartingOffset="0" length="20971520" vdevNum="1" />
           <options mode="2" initialSyncOptions="2" takeProtectiveSnapshotBeforeSync="0" takeScheduledSnapshot="0" snapshotAgentEnabled="1" maximumSnapshots="1000" maxThroughput="0" minThroughputToStopSync="0" maxRemainedSyncTime="10" maxPendingIos="1000" desiredSyncCmdsOut="4" initialMicroSync="0" postInitialMicroSync="0" isMicroSync="0" microSyncBlockSize="0" callDBAgentValve="1" preScript="" postScript="" retryInterval="60" retryPeriod="30" zeroImpactTestInterval="10" />
           <state status="1" currentState="0" isScheduled="0" currentStateStart="53" lastRunTime="2011-10-24 16:05:55" lastRunResult="1878786152" lastScheduledRunTime="2011-10-24 16:00:45" lastScheduledStartTime="2011-10-24 16:00:45" totalSyncCount="2" hasSuccessfulSync="1" snapshotCountSinceLast="1" highUmapSaveToQuorum="0" needReboot="0" issueTime="2011-10-24 16:00:45" />
           <schedule initialSyncTime="2011-10-24 16:00:45" type="3" days="0" hours="1" minutes="0" baseSyncTime="2011-10-24 16:00:45" excludeFrom="0" excludeTo="0" />
       </protection>
    </protections>
    <groups />
</DiskSafe>

以下說明它的結構:

<disk>標籤是用以紀錄disk的狀態,包括partitiondevicePathmountPointcapacitydiskIDscsiAddress等等。如果這個disk又是來自CDP server的話(通常是mirror disk),就會有 servermaxSnapshotsprotocol 等資訊。

<protections> 標籤是用以紀錄protection policy的狀態,包括 idgroupNameumapDiskIDhostNamecreateTimestorageoptionsschedule等等資訊。

相關文章


上一篇
DiskSafe的group rollback
下一篇
DiskSafe的registry file結構
系列文
FalconStor CDP solution - DiskSafe30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 則留言

0
timloo
iT邦研究生 2 級 ‧ 2011-11-03 10:11:14

按照邦友的分享,這分文件的有效性(valid),如何檢核??

有參照的xml schema嗎?

一堆數字,看起來用"" 雙引號括起來,當字串在用,日期及時間的格式,如果和它的設定檔不一樣,會work嗎?

突然想到,
oracle 的sql to_date 函式,自己定格式 yyyymmdd,輸入成2011-11-02,或2011/11/02都不行,非得輸入20111102才行,這和xml是無關,只是在通訊協定,像http,日期的格式很重要,會特別建一個函式,把各os的日期來格式化成協定的日期時間字串。

umapDiskID="DELL____PERC_6/i________60026b904793d40016345bcd0dc351c9"
或是
diskID="IBM_____1724-100__FAStT_600a0b800017e02e000001354e9ca60c"
這個資訊要如何取得,可下指令嗎?

以設定檔來講,xml還沒有傳統的區塊式的設定檔易讀好用,像apache 的conf檔,不過,xml算是潮流吧。像lighttpd還特別引入一套知名的庫,來解析設定檔。不知道這套工具用什麼庫來解析,libxml2 嗎?

我要留言

立即登入留言