Wednesday 21 September 2016

The server rejected SFTP connection, but it listens for FTP

The server rejected SFTP connection, but it listens for FTP

This issue have made me mad. I have check all the way to find the solution but no one gives the perfect solution for this. Finally i have found the solution and cause of this issue. Below i have mentioned clearly.

Cause of this issue is limitation of session. For this you have to remove the session or increase the session. For me I can't remove running session so i have done increasing the session. Below i have mentioned the steps.

the location of session limit is /etc/security/limits.d/20-nproc.conf

in this root have unlimited soft session. we can assign or increase the user session limit on this session.

Unable to unmount CIFS in RHEL

Unable to unmount CIFS in RHEL

I have struggle with unmounting the cifs fie, I have tried but it shows the device is busy show i have given the below command it help  us to unmount the cifs filsystem.


umount -a -t cifs -l


Postfix Not starting

Postfix Not starting

I have faced postfix: fatal: config variable inet_interfaces: host not found: localhost this issue when i try to start post fix. I have try to find the solution so many confusion I got. But I have found the issue just we need to chang main.cf file configrations.

vi /etc/postfix/main.cf

and find the below content and change.

inet_interfaces = localhost

to

inet_interfaces = 127.0.0.1

now save and start the postfix it's will work

systemctl start postfix.service


that's all

cannot add dependency job for unit firewalld.service ignoring unit firewalld.service is masked

This issue have been a change of display manager so only it came. 

first we need to know which kind of display manager we are using so following command will so the 
display manager status.

systemctl status display-manager.service



then we need to update the display manager service 

systemctl reenable gdm.service



now issue have been fixed.

Monday 19 September 2016

Extend the Logical volume in RHEL 6

Hi today I'm going to explain how to extend the logical volume. Before that we must know about what is PV ( physical volume ) VG ( Volume Group ) and LV ( Logical Volume ). So It's simple concept only I will explain that with my way of understanding. If you thought it's have any issue please command me with the correction. 

  • PV ( Physical Volume )
Physical volume means it has the answer with it's name. Physical disk is divided into physical volume so only we can create other volumes. So first we are going to create physical volume from physical disk.

fdisk -l

this command will show you the list of physical disks in the system.

after this i will show you the image that will give you the clear look of creating physical volume.

http://tr1.cbsistatic.com/hub/i/2015/05/07/67088bde-f48a-11e4-940f-14feb5cc3d2a/10042011figure_a.jpg

In this you see the 'n' it's call new partition. It will show the command action with two options. 
e extended
p primary partition

extended partition means like a container inside we can create many logical volume into this extended volume it will solve the drive limitation.

primary partition usually used to install OS but it can be used to logical volume.


we are going to extend the volume only so we are giving 'p'.

then partition number it's shows the physical volume number. It's a new physical volume so we can provide number and also I'm going to use full size of it so i gave '1'.
then it will ask sector number just give enter to default and again enter for default for last sector.

then 't' t means type in this we can provide the file system type like swap, ext3, ext4, etc .... 

8e means LVM partition.

then 'p' means print. we can see the created created linux LVM.

finally we give 'w' it means save. now we are going to create physical volume with following command

pvcreate /dev/sdd1

That's all we he physical volume.


  • VG ( Volume Group )
VG is a group of partition volume so we can have many resize-able LVM. It's a set of physical disk.

We can view the volume group with following command.

vgs 

It will show the VG in list. On that we have make a note the name of VG name that we are going to extend. Now we are going to extend the VG with following command.

vgextend vgname /dev/sdd1

now you can check th VG with following command.

vgdisplay vgname

That's all we complete the Volume Group.


  • LV ( Logical Volume )

LV is a partitions for linux. We can take size from VG and create LV for our Linux system. Now we extend the LV with following command.

lvextend -l +50G /dev/vgname/lv_root

and resize the partition with following command

resize2fs /dev/vgname/lv_root

now verify the file system with following command

df -h

That's all I have missed so many commands. but this commands enough to extend the logical volume.

Thursday 15 September 2016

cannot access gvfs Transport endpoint is not connected

Hi Guys I have faced following issue and checked for solution but i didn't get any solution in online so I try some and find the solution for this. followed

df -h

df: â/run/user/0/gvfsâ: Transport endpoint is not connected
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ol-root 40G 6.7G 34G 17% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 172K 3.8G 1% /dev/shm
tmpfs 3.8G 494M 3.3G 13% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/vg_data-lvol0 985G 1.4G 933G 1% /u01
/dev/mapper/ol-home 10G 40M 10G 1% /home
/dev/xvda1 497M 194M 304M 39% /boot
tmpfs 773M 16K 773M 1% /run/user/42
tmpfs 773M 0 773M 0% /run/user/1001
tmpfs 773M 32K 773M 1% /run/user/0
tmpfs 773M 0 773M 0% /run/user/1002


df: â/run/user/0/gvfsâ: Transport endpoint is not connected

this error occurred

solution :

cd /run/user/0

fusermount -zu gvfs

that's all....


Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...