Personal tools
You are here: Home Forums-old Dispersed Storage Users How do you delete a vault
Document Actions

How do you delete a vault

Up to Dispersed Storage Users

How do you delete a vault

Posted by Rodney McDuff at January 08. 2008

 


Re: How do you delete a vault

Posted by jresch at January 10. 2008

Hello Rodney,


To answer your question, even though the current release of the software contains the protocol messages and handlers necessary to remotely delete a vault, our release doesn't come with a command line utility to remotely delete vaults.  Therefore the process of deleting a vault must be done manually by for each server deleting the directories with the name of the vault id, they will be located in a folder similar to:


 


/opt/dsnet-slicestor/output/slicestor/descriptors/{VAULT-ID}



/opt/dsnet-slicestor/output/slicestor/stores/{VAULT-ID}


 


Note that the location of this folder can vary depending on your configuration.  I hope this information is helpful.


 


Regards,


 


Jason Resch


Software Engineer


Cleversafe, Inc.


Re: How do you delete a vault

Posted by ushakiranj at June 29. 2008

When I’m creating vault the following error is occurring. Is there any issue with “vault-descriptor.xml"? if yes


Can I have example file of  “vault-descriptor.xml for single slicer and 8x6 slicer" ?


 


./dsnet-create-vault --name="test" --descriptor="/opt/dsnet-accesser/conf/vault-descriptor.xml"


Error creating vault on access server


Unable to parse vault descriptor


 


 


 


Re: How do you delete a vault

Posted by vcano at June 30. 2008

This error usually appears when the "dsnet-create-vault" script cannot parse the host address of the slicestors (the "IP_HERE" values on the sample vault descriptor below) because of a syntax error. Use IP addresses for these vaues. The sample vault descriptor below is for an 8-loose-2 dsnet, which is the tested and supported configuration. For a 1-loose-0 vault descriptor you would use the same vault descriptor but with only one "<vault:slice-store kind="SliceStore" referral="remote">" section (removing the remaining 7).



Please post the vault descriptor file you are using, which will help us better troubleshoot your problem.


 


<?xml version="1.0" encoding="UTF-8"?>
<vault:vault type="block"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:vault="http://cleversafe.org/vault"
   xmlns:eval="http://cleversafe.org/config/evaluator">

   <!-- 1GB vault -->
   <vault:param name="block-size">
      <eval:literal type="int" value="4096"/>
   </vault:param>
   <vault:param name="num-blocks">
      <eval:literal type="long" value="262144"/>
   </vault:param>
  
   <!-- Information Dispersal Algorithm -->
   <vault:ida kind="IDA" referral="cauchy" version="1">
      <eval:param name="num-slices">
         <eval:literal type="int" value="8"/>
      </eval:param>
      <eval:param name="threshold">
         <eval:literal type="int" value="6"/>
      </eval:param>
   </vault:ida>

   <!-- Data Integrity Codec (CRC-32) -->
   <!--
   <vault:codec kind="Codec.Integrity" referral="crc-32" version="1"/>
   -->
  
   <!-- Slice Integrity Codec (CRC-32) -->
   <vault:slice-codec kind="Codec.Integrity" referral="crc-32" version="1"/>

   <!-- Begin Slice Store List -->

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>     
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="host">
               <eval:literal type="string" value="IP_HERE"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>  
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>

</vault:vault>


Re: How do you delete a vault

Posted by ushakiranj at July 01. 2008

Still I'm facing the same issue.  Below is my config file.  ====================================================================================


[root@hyddfs6 conf]# cat "/opt/dsnet-accesser/conf/vault-descriptor.xml"
<?xml version="1.0" encoding="UTF-8"?>
<vault:vault type="block"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:vault="http://cleversafe.org/vault"
   xmlns:eval="http://cleversafe.org/config/evaluator">


   <!-- 1GB vault -->
   <vault:param name="block-size">
      <eval:literal type="int" value="4096"/>
   </vault:param>
   <vault:param name="num-blocks">
      <eval:literal type="long" value="262144"/>
   </vault:param>


   <!-- Information Dispersal Algorithm -->
   <vault:ida kind="IDA" referral="cauchy" version="1">
      <eval:param name="num-slices">
         <eval:literal type="int" value="1"/>
      </eval:param>
      <eval:param name="threshold">
         <eval:literal type="int" value="0"/>
      </eval:param>
   </vault:ida>


   <!-- Data Integrity Codec (CRC-32) -->
   <!--
   <vault:codec kind="Codec.Integrity" referral="crc-32" version="1"/>
   -->


   <!-- Slice Integrity Codec (CRC-32) -->
   <vault:slice-codec kind="Codec.Integrity" referral="crc-32" version="1"/>


   <!-- Begin Slice Store List -->


   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="hyddfs6">
               <eval:literal type="string" value="10.176.87.22"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>


[root@hyddfs6 conf]# dsnet-create-vault --name="test" --descriptor="/opt/dsnet-accesser/conf/vault-descriptor.xml"
Error creating vault on access server
Unable to parse vault descriptor



====================================================================================


Please verify and let me know the issue.


 


Thanks in advance,


Kiran


Re: How do you delete a vault

Posted by vcano at July 01. 2008

Hi Kiran,


You need to "close" the vault:vault tag at the end of that vault descriptor file. It needs a "</vault:vault>" at the end after the vault:slice-store section, as shown below. Let us know if you face any other issues.


- Vicente


 


<?xml version="1.0" encoding="UTF-8"?>
<vault:vault type="block"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:vault="http://cleversafe.org/vault"
   xmlns:eval="http://cleversafe.org/config/evaluator">


   <!-- 1GB vault -->
   <vault:param name="block-size">
      <eval:literal type="int" value="4096"/>
   </vault:param>
   <vault:param name="num-blocks">
      <eval:literal type="long" value="262144"/>
   </vault:param>


 


   <!-- Information Dispersal Algorithm -->
   <vault:ida kind="IDA" referral="cauchy" version="1">
      <eval:param name="num-slices">
         <eval:literal type="int" value="1"/>
      </eval:param>
      <eval:param name="threshold">
         <eval:literal type="int" value="0"/>
      </eval:param>
   </vault:ida>


 


   <!-- Data Integrity Codec (CRC-32) -->
   <!--
   <vault:codec kind="Codec.Integrity" referral="crc-32" version="1"/>
   -->


 


   <!-- Slice Integrity Codec (CRC-32) -->
   <vault:slice-codec kind="Codec.Integrity" referral="crc-32" version="1"/>


 


   <!-- Begin Slice Store List -->


 


   <vault:slice-store kind="SliceStore" referral="remote">
      <eval:param name="connection">
         <eval:reference kind="Connection">
            <eval:param name="hyddfs6">
               <eval:literal type="string" value="10.176.87.22"/>
            </eval:param>
            <eval:param name="port">
               <eval:literal type="int" value="5000"/>
            </eval:param>
         </eval:reference>
      </eval:param>
      <eval:param name="vault-identifier">
         <eval:method object="acl" name="getVaultIdentifier"/>
      </eval:param>
      <eval:param name="credentials">
         <eval:reference object="credentials"/>
      </eval:param>
   </vault:slice-store>


</vault:vault>


Re: How do you delete a vault

Posted by ushakiranj at July 03. 2008

Hi,
Thanks a lot Vicente. Now I'm able to create vault.
  But sitll have some issue in mounting iSCSI traget on the client.  The mount process is taking to long time and also after mount, disk is not visiable.
I have followed the below process to mount the iSCSI taget.
#Step 1
[root@test ~]#  iscsiadm --mode node --targetname iqn.2008-06.com.test.dc:test --portal 10.176.87.22:3260 --login
#Step 2
[root@test ~]# iscsiadm -m session -i
iscsiadm version 2.0-742
************************************
Session (sid 5) using module tcp:
************************************
TargetName: iqn.2008-06.com.test.dc:test
Portal Group Tag: 1
Network Portal: 10.176.87.22:3260
iSCSI Connection State: LOGGED IN
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 65536
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 262144
MaxBurstLength: 16776192
ImmediateData: No
InitialR2T: Yes
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 9  State: running
scsi9 Channel 00 Id 0 Lun: 0
Attached scsi disk sdb          State: running
# Step 3 
fdisk -l
Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       30133   242043291   83  Linux
/dev/sda2           30134       30394     2096482+  82  Linux swap / Solaris


Please advice. Your help is highly appreciated,


~Kiran


 


 


Re: How do you delete a vault

Posted by ushakiranj at July 08. 2008

any updates please?


 


~thanks


Re: How do you delete a vault

Posted by vcano at July 09. 2008

[Careful with the instructions below as they reformat the partition and cause the loss of data!]


 


It seems like the sdb device has been created. Now you will need to create a partition and format it. Something similar to this:


 


# fdisk /dev/sdb


 


This will present you with a "prompt" menu. Type "m" for info. But basically you will want to type "n" to "add a new partition", then "p" for "primary partition", then "1" for the partition number. Choose the defaults for "First cylinder" and "Last cylinder" by just typing "Enter". Then type "w" to write to the partition table.


 


Then you will need to format it:


 


# mke2fs -j /dev/sdb1


 


Once this is finished (might take some time depending on the size of your vault), you need to mount:


 


# mount /dev/sdb1 <mount-point>


 


Where <mount-point> is the location of your mount point. For example, /mnt/myvault/


 


Hope this helps! Let us know.


 


 


Re: How do you delete a vault

Posted by ushakiranj at July 21. 2008

Thanks a lot Vicente. Your help is highly appreciated.


 


I have reinstalled everything but still have some issue in mounting iSCSI target on the client.


 


        I think the issue with login username password when login iSCSI target. Can you please tell me how does Clever safe manages the username & password when login iSCSI target.


 


 


-Thanks,


 


 


 


Powered by Ploneboard