The reason for not formatting the disk upon delete is it takes some time for the delete to complete, which could bog you down if you are deleting >10 nodes at once. Also, the worker machine (DATAMOVE) that does the deletion is fragile. I have observed cases where a work unit on DATAMOVE gets stalled on the formatting, and you have to manually take care of the work unit. We can certainly add an option in rmvm to do the formatting, if there is a requirement for it.
For now, you can actually modify the zvm.pm plugin to run the NOCLEAN
option. It's pretty simple:
# sed -i 's/Image_Delete_DM -T $userId -e 1/Image_Delete_DM -T $userId
-e 2/g' /opt/xcat/lib/perl/xCAT_plugin/zvm.pm
# service xcatd restart
Using -e 2 will force DirMaint to format the disk.
Another option is to encrypt the partition in autoyast, which would secure
the disk's contents.
<partition>
<crypt>twofish256</crypt>
<crypt_key>abc12345678901234567890</crypt_key>
<loop_fs config:type="boolean">true</loop_fs>
<crypt_fs config:type="boolean">true</crypt_fs>
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<mount>/tmp</mount>
<partition_id config:type="integer">131</partition_id>
<size>1GB</size>
<partition_type>primary</partition_type>
</partition>
This sample was taken from this thread:
http://lists.opensuse.org/opensuse-autoinstall/2006-06/msg00114.html.
Regards,
-------------------------------------
Thang Pham
IBM Poughkeepsie
Phone: (845) 433-7567
e-mail: [email protected]
From: Mark Pace <[email protected]>
To: xCat <[email protected]>,
Date: 04/03/2013 09:15 AM
Subject: [xcat-user] DIRMAINT commands
Can I find where the DIRMAINT commands are issued? It appears to me that
when I do a remove VM command (rmvm) that it is sending a purge with the
NOCLEAN option. I do not want it done this way. I want the minidisk
cleaned(reformatted). Or is there some reason for this behavior that I may
not understand?
--
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions
Mark D Pace
Senior Systems Engineer
Mainline Information Systems
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
<<inline: graycol.gif>>
------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
