I sometimes want to monitor the progress of a copy or backup job on the console. The trick to do that is as follows:

while true; do something…; sleep 10; clear; done;

example:

[tom@ns2 ~]# while true; do df- h /media/usr; sleep 10; clear; done;

 

What this is, it display the size of /usr partition, the used space, available space and the progress of the job in percentage. The “clear” command will make sure all these informations are shown on a single line by clearing the screen. The clear command is very cool ;-)

It hope someone find this useful 

The easiert way to do this is to use ssh (Putty).

Run all commands in these steps from the ESX/ESXi command line with root access.

Ensure that you can ping and vmkping the NFS server address.

Ensure that any firewalls between the ESX host and NFS Server do not block the connection.

Ensure the access on the NFS server is set to Anonymous user, Root Access (norootsquash), and Read/Write.

Try to restore the mount with this command: 

# esxcfg-nas -r

Check to see if the datastore has mounted after trying to restore it with:

# esxcfg-nas -l

If it is not mounted, try remounting it using this command:

# esxcfg-nas -a <datastore name> -o <nfs server hostname/ip> -s <mount point>

Alternatively try to add the datastore again using the vSphere client: 

For security reasons RPC protocol filtering is enabled and the connection is refused. Open firewall ports on the network for RPC protocol and check the physical switch for any RPC protocol filtering. 

On ESX hosts only (Does not apply to ESXi hosts):

Check ESX firewall open ports with this command:

# esxcfg-firewall -q 

Note: Check the output for NFSClient. If it is not listed, proceed to step 9.

Open the NFS client firewall ports 111 and 2049 on UDP and TCP protocol either on vCenter Server or on ESX with the command:

# esxcfg-firewall –enableService nfsClient

Alternatively, modify the security policy in vSphere Client. Click Configuration > Security Profile > Properties, select NFS Client and click OK. 

Note : Ensure that the ports 111 and 2049 are also open on the NFS server.

Known Issues:

Unable to connect to NAS volume NFS4exports: Unable to mount, no VMkernel TCP stack found

Solution:

 Note: Do not set up NFS datastores through the vSphere Client on the ESX Server system. Unlike VMFS datastores, NFS datastores created through the vSphere Client are not recognized by Lab Manager. Such datastores conflict with the creation of NFS datastores through the Lab Manager Web console.

NFS Server

  • Ensure the NFS server supports NFSv3 over TCP
  • The NFS server must be accessible in read-write mode by all Managed Server (ESX) systems
  • The NFS server must allow read-write access for the root system account
  • The NFS export must be set for either no_root_squash, or chmod 1777
  • Ensure NFS daemons are running on the server (“rpcinfo -p localhost” or “service nfs status” )

VMKernel must be able to mount share

  • Check the VMkernel IP address:
    • Using the vSphere Client, select the ESX server
    • Select the Configuration tab
    • Click Networking
    • View the Networking diagram for the VMkernel (or click Properties, and click VMkernel in the Ports tab. If VMkernel is not listed, you must add it)
  • Ensure this IP is allowed to mount the NFS share by inspecting the export list

This issue may also occur if EtherChannel is configured and an incorrect NIC teaming policy is used.

Written on May 9th, 2013 , ESX, ESXi, Linux, Recent Posts
Download the network installation iso file and burn to CD.
Place the CD in the CD-Rom and reboot the system.
When ask to select the network install method, choose “HTTP” and enter the following:

1) for 32 Bit
Host: mirror.centos.org
Directory: centos/6.4/os/i386

2) for 64 Bit
Host: mirror.centos.org
Directory: centos/6.4/os/x86_64
Written on May 4th, 2013 , CentOS, Linux, Linux Installation, Recent Posts

Just as indicated in my earlier post, I’m having troubles making the ToS on my customer’s site work. I later got an idea from VirtueMart forum. Actually, my problem was not having a link to the ToS and got this fixed by editing the laguage file for virtuemart component. If you have similar problems just follow these steps:

1.) Use your favourite editor to open language/en-GB/en-GB.com_virtuemart.ini

2.) Search for “COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED” (line 99 on Joomla 2.5.9/VirtueMart 2.0.18a)

3.) Edit and change to:

     <a href=http://www.mydomain.com/index.php/path-to-ToS target=”_new”>Click here to read terms of service and check the box to accept them.</a>

Your ToS should now be linked properly.

 

*) If you use a different language outher than english, you need to change the settings also in that language file same like above but translated as wished. My customer’s web site uses german as the default language for example and the settings is as follows:

1.) Use your favourite editor to open language/de-DE/de-DE.com_virtuemart.ini

2.) Search for “COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED” (line 99 on Joomla 2.5.9/VirtueMart 2.0.18a)

3.) Edit and change to:

     <a href=http://www.mydomain.com/index.php/path-to-ToS target=”_new”>Bitte lesen und bestätigen Sie Ihr Einverständnis mit den <em>Allgemeinen Geschäftsbedingungen</em>.</a>

Written on February 22nd, 2013 , Joomla, Recent Posts, VirtueMart, Web Design

I’m having troubles making the TOS (Terms Of Service) on my cutomers web site work. After much troubleshooting and research on Google, I discovered that the issue has already been reported  on this forum https://forum.virtuemart.net/. There I found the solution and decided to post it here for future reference. Maybe this might help someone else.

This web site in question is using VirtueMart 2.0.18/Joomla 2.5.9

Problem:

After configuring the “Terms Of Service” (shop –> vendor) and making sure the following are activated, the TOS simply cannot be viewed. On the checkout page, the link to the TOS is same as the main index page. (example: http://www.mysite.com/)

a) Must agree to Terms of Service on EVERY ORDER? [checked] (Configuration –> Checkout)

c) agreed (Configuration –> Shopper Fields –> agreed – checked and click required)

Solution:

As there is not fix at the moment, I decided to disable this feature for now by unchecking option “a and b” above. While the TOS link is removed from the checkout page, the checkbox will remain untill you perform the option “c” make sure “Not Required” ist clicked this time.

 

Summary:

VirtueMart v2.0.18 / Joomla 2.5.9

To disable the “Terms Of Service”, do the following:

a) Must agree to Terms of Service on EVERY ORDER? [unchecked] (Configuration –> Checkout)

b)Show Terms of Service on the cart/checkout? [unchecked]

c) agreed (Configuration –> Shopper Fields –> agreed – checked and click Not Required)

I hope this will help someone in search for solutions to these problems.

Written on February 21st, 2013 , Joomla, Recent Posts, VirtueMart, Web Design

OMOTECH Tips & Tricks is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

OMOTECH Tips & Tricks

this blog offers tutorials based on various it-subjects