How to fix Virtual Hard disk is a mapped direct-access LUN that is not accessible
Ini pernah dilakukan di IDCBTA11, dimana disk nomor 7 setelah dilakukan shutdown jadi failed, errornya sama persis
Yang wajib dilakukan adalah
1. Screen capture configuration IDCBTA11, pada disk yang bermasalah, detail
2. Tulis, SCSI ID dan Nomor Disk
3. Backup vmdk dan *rmp-dsk.vmdk
Thanks to NetworkAdminKB.com
http://networkadminkb.com/kb/Knowledge%20Base/VMWare/How%20to%20fix%20Virtual%20Hard%20disk%20is%20a%20mapped%20direct-access%20LUN%20that%20is%20not%20accessible.aspx
Issue:
You receive the following error messages attempting to power on a VM.
Failed to find a host for powering on the virtual machine. The following faults explain why the registered host is not compatible.
Virtual ‘Hard disk #’ is a mapped direct-access LUN that is not accessible.
If you attempt to Manage Path one of these selected Hard disks you receive the following error.
The is no multipath configuration for this LUN
Cause:
The Raw Data Mapping (RDM) vml.######################### assigned to the VM no longer matches the physical LUN assigned to the ESX Host. This typically happens when the LUN was removed from then added back to the ESX Host.
This error may not occur until the VM or the ESX host was powered off.
Solution:
Use the following procedure to correct this issue.
1) Record the settings of the bad LUNS
a. Physical or Virtual RDM
b. SCSI ID
c. Associate LUN ID
i. This you may need to get from documentation
2) Remove the RDM LUNS from the VM
a. Select Remove from virtual machine and delete files from disk.
i. This will remove the mapping file, but will not delete any data on the RDM.
3) Remap the RDM LUNS in the VM
a. Use the information recorded earlier.
4) Power on the VM
NetworkAdminKB.com
web bersama – jilid 2
Tulisan ini dibuat untuk mempermudah membuat web bersama
Perubahan
- dbcn-user name dimanage dari user profile
- iklan rotasi diambil dari user_meta
- iklan di masing-masing article diambil dari profile user_meta
1. dbcn-user name dari user profile
Yang akan di rubah adalah
- Penambahan field dbcn-user name di user profile
- Penambahan field dbcn-user name di registrasi menu
1.1 Penambahan field dbc-user name di user profile
kuncinya ada di function.php, file ini adalah berisi customize dari built-in wordpress menu. Yang akan dilakukan adalah
menghilangkan field YM, AIM dan menambahkan dbcn-username di bagian contact info
function new_contactmethods( $contactmethods ) {
$contactmethods['dbcn_id'] = ‘<b> dBCn User Name </b>’; // Add dbcn user name field
unset($contactmethods['yim']); // Remove Yahoo IM
unset($contactmethods['aim']); // Remove AIM
unset($contactmethods['jabber']); // Remove Jabber
return $contactmethods;
}
add_filter(‘user_contactmethods’,'new_contactmethods’,10,1);
coding add_filter(‘user_contactmethods’, akan diexecute oleh wordpress sehingga memanggil function new_contactmethods.
Menghilangkan biographical info dengan,
function remove_plain_bio($buffer) {
$titles = array(‘#<h3>About Yourself</h3>#’,'#<h3>About the user</h3>#’);
$buffer=preg_replace($titles,’<h3>Password</h3>’,$buffer,1);
$biotable=’#<h3>Password</h3>.+?<table.+?/tr>#s’;
$buffer=preg_replace($biotable,’<h3>Password</h3> <table>’,$buffer,1);
return $buffer;
}
function profile_admin_buffer_start() { ob_start(“remove_plain_bio”); }
function profile_admin_buffer_end() { ob_end_flush(); }
add_action(‘admin_head’, ‘profile_admin_buffer_start’);
add_action(‘admin_footer’, ‘profile_admin_buffer_end’);
1.2 dbcn-user name sebagai mandatory field waktu registrasi
add_action(‘register_form’,'show_first_name_field’);
add_action(‘register_post’,'check_fields’,10,3);
add_action(‘user_register’, ‘register_extra_fields’);
function show_first_name_field(){
?>
<p>
<label>dBCn User Name<br/>
<input id=”user_email” type=”text” class=”input” tabindex=”20″ size=”25″ value=”<?php echo $_POST['dbcn']; ?>” name=”dbcn”/>
</label>
</p>
<?php
}
function check_fields($login, $email, $errors) {
global $firstname, $lastname;
if ($_POST['dbcn'] == ”) {
$errors->add(‘empty_realname’, “<strong>ERROR</strong>: Please Enter dBCn User Name”);
} else {
$firstname = $_POST['dbcn'];
}
}
function register_extra_fields($user_id, $password=”", $meta=array()) {
$userdata = array();
$userdata['ID'] = $user_id;
wp_update_user($userdata);
update_usermeta( $user_id, ‘dbcn_id’, $_POST['dbcn'] );
}
2. Iklan rotasi user
$dbcn_id_cnt=$wpdb->get_var($wpdb->prepare(“SELECT COUNT(*) AS cnt FROM $wpdb->usermeta WHERE meta_key = ‘dbcn_id’”));
$dbcs = rand(0, $dbcn_id_cnt – 1);
$dbc_id=$wpdb->get_var($wpdb->prepare(“SELECT meta_value FROM $wpdb->usermeta WHERE meta_key = ‘dbcn_id’ LIMIT 1 OFFSET $dbcs”));
?>
<br><div align=center><a href=”http://www.dbc-network.biz/?id=<?php echo $dbc_id; ?>&s1=dunia-anak-bannernad”><img src=”http://www.beritaterkinionline.com/images/umum-468a-605.jpg” border=0></a>
</div>
3. Iklan di masing-masing author
<div>
<div align=center><a href=”http://www.dbc-network.biz/?id=<?php the_author_meta(‘dbcn_id’); ?>&s1=resep-home-bannernad”><img src=”http://www.beritaterkinionline.com/images/umum-468a-605.jpg” border=0></a></div><br>
Changing the Service Console IP address on ESX 3.x and 4.0
ref: http://communities.vmware.com/servlet/JiveServlet/downloadBody/11927-102-3-11792/ChgIP.rtf
Log in as root to the ESX host console using a SSH or KVM connection.
1. Run the following command to stop the network service:
service network stop
2. Run the esxcfg-vswif command to change the IP of the hosts:
esxcfg-vswif -i NEW_IP_ADDRESS -n MASK_ADDRESS vswif0
3. Edit the /etc/sysconfig/network file and change the gateway IP if needed.
4. Run the following Command to restart the network
service network start
5. Add the host back to VirtualCenter using a FQDN (preferably) or by its IP/Reconnect host to VirtualCenter (if applicable).
Note:- To use vi: vi <filename> To enter into Insert Mode: i Edit/Insert the text To switch from Insert Mode to Command Mode: [esc] To exit vi without saving changes::q! To Save Changes and exit : wq!







