1833514 Members
3962 Online
110061 Solutions
New Discussion

NFS Configuration

 
Vipin Singhal
Super Advisor

NFS Configuration

My this directory is going to be 100% used.
/dev/vg00/lvol9 16777216 15618902 1095604 93% /opt/oracle

I need to take backup of this file system to another server using NFS. and then i Hvae to extend this VG size.

Please suggest how to mount this file system to another server i.e our ftp server.

ssh, telnet - blocked (in ftp server)
scp - not found (in source server)

I have a local user name & password of ftp server.
thanks
vipin

13 REPLIES 13
Onyedika Onwudiwe
Occasional Advisor

Re: NFS Configuration

Vipin,

Your problem needs more clarification.

- Do you want to extend the 'volume group', or the 'logical volume'& filesystem? I believe the latter is what you want to extend.

- Do you have any access to the ftp server? You said you can't use scp or ssh.
Pete Randall
Outstanding Contributor

Re: NFS Configuration

You'll need to export the file system so that it is available to the other server. This is done by making an entry in the /etc/exports file and then running the exportfs command (exportfs -a). Then on the ftp server, you'll use the mount command: "mount server:/opt/oracle /local_mount_point" for example.

Consult the man pages for exportfs and mount.


Pete

Pete
Vipin Singhal
Super Advisor

Re: NFS Configuration

I need to extend my LV & FS.
I have free PEs in my VG.

I have ftp user account & password of another server.
It works only with ftp
It does work ssh & telnet.

I was trying to copy my data with scp on my server.
but scp : not found

HGN
Honored Contributor

Re: NFS Configuration

Hi

If you are using HP SSH then the location is

/opt/ssh/bin/sftp
/opt/ssh/bin/ssh
/opt/ssh/bin/scp

You can create a link to these files in /usr/bin so that it is in that path.

Rgds

HGN
Vipin Singhal
Super Advisor

Re: NFS Configuration

# /opt/ssh/bin/scp -rp oui admin@111.111.1.11:/Backup/dipper/dipper_opt_oracle_171105/
ssh: connect to host 111.111.1.11 port 22: Connection timed out
lost connection


please suggest what to do
thanks
vipin
Vipin Singhal
Super Advisor

Re: NFS Configuration

I am able to access my ftp server using ssh from my HP Server.

#ssh admin@ftpserver

now the home directory is :
sh-2.04$ pwd
/local_user_
sh-2.04$ ls -l
total 0
sh-2.04$ cd ..
sh-2.04$ pwd
/
sh-2.04$ ls
WhichRoot bin ca_lic etc hd lib mgmt proc sfdiskmap.out tmp version
admin-cgi boot common-cgi flash htdocs local_user_ mnt ramdisk shares usr
apps bru dev ftp install_tools management opt sbin timezone var

It shows diffent files.

and when i use ftp from my HP server--
#ftp ftpserver
ftp> pwd
257 "/" is current directory.
ftp> ls -l
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxrwxrwx 36 admin admingrp 4096 Nov 4 10:56 Backup
drwxrwxrwx 3 admin admingrp 20 Nov 7 06:47 LATemp
drwxrwxrwx 52 admin admingrp 4096 Nov 16 10:31 SoftLib
#
226 Transfer complete.
ftp>

Problem is - I need to go in /Backup directory .
I need to mount a file system of my HP server in /Backup directory of ftp server.

how can i mount a file system of my HP server in /Backup directory of ftp server?
Please suggest.
vipin

Devender Khatana
Honored Contributor

Re: NFS Configuration

Hi,

For this to be achived first of all your file system should be exported from the HP Server. Find this by looking entry in

/etc/exports

If the entry is not there then export file system manually ( With Read Only Option)

#exportfs -i -o ro /opt/oracle

Now on the server where you want this to mount

#mount hp_server_hostname:/opt/oracle /Backup

You need to have proper previledges on the server where you want to mount this.

HTH,
Devender

Impossible itself mentions "I m possible"
Vipin Singhal
Super Advisor

Re: NFS Configuration

Hi davender,
Thanks

But as i told you before .
when i am using ssh to access that server,
i could not find that directory which i got using ftp.
I need to mount my filesystem in /Backup directory of ftp server,
Plz read my previous comments,
waiting for your feedback.
thanks
vipin
Devender Khatana
Honored Contributor

Re: NFS Configuration

Hi Again,

It is quite possible and there is nothing strange in this. Your ftp root has been set somewhere else. You create a local directory after logging in using ssh and then try mounting it. If you have enough privileges you should be able to do so.

Why you want to mount it on directory in FTP home of that user when for backup you have to use tar/cpio only? I do not understand your requirement to mount it there.

HTH,
Devender
Impossible itself mentions "I m possible"
Vipin Singhal
Super Advisor

Re: NFS Configuration

what I want 2 do.
1st I will mount this filesystem on our backup/ftp server, then copy all the data in /Backup directory, then i will extend the LV & FS.
I have online JFS but for security i want to take the backup.

My boss told me that i have to mount, then copy data in backup/ftp server, then i have to extend the LV/FS.

after ssh, when i try :
mount hp_server_hostname:/opt/oracle /Backup

mount : not found
what will be the steps for tar & cpio?
Devender Khatana
Honored Contributor

Re: NFS Configuration

Hi,

You can try giving full path to mount here. Allthough if ftp server is a HPUx box then mount will be premitted to root only and it might through a similar error.

mount: must be root to use mount

Full path to mount is /sbin/mount
#mkdir /Backup
#/sbin/mount hp_server_hostname:/opt/oracle /Backup

(Your local file system here should have atleast this much free space)

Once mounted copy data using cpio like

As you mounted it on /Backup and free space is there in /home/admin/Backup then
#cd /Backup
#find ./ -name "*" -print|cpio -pdmv /home/admin/Backup

Once done compare with du.

HTH,
Devender
Impossible itself mentions "I m possible"
Vipin Singhal
Super Advisor

Re: NFS Configuration

I am able to access my ftp server using ssh from my HP Server.

#ssh admin@ftpserver

now the home directory is :
sh-2.04$ pwd
/local_user_
sh-2.04$ ls -l
total 0
sh-2.04$ cd ..
sh-2.04$ pwd
/
sh-2.04$ ls
WhichRoot bin ca_lic etc hd lib mgmt proc sfdiskmap.out tmp version
admin-cgi boot common-cgi flash htdocs local_user_ mnt ramdisk shares usr
apps bru dev ftp install_tools management opt sbin timezone var

sh-2.04$ cd /
sh-2.04$ /sbin/mount hp_server_ip:/opt/oracle /Backup
sh: /sbin/mount: No such file or directory


It shows diffent files.

and when i use ftp from my HP server--
#ftp ftpserver
ftp> pwd
257 "/" is current directory.
ftp> ls -l
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxrwxrwx 36 admin admingrp 4096 Nov 4 10:56 Backup
drwxrwxrwx 3 admin admingrp 20 Nov 7 06:47 LATemp
drwxrwxrwx 52 admin admingrp 4096 Nov 16 10:31 SoftLib
#
226 Transfer complete.
ftp>

Problem is - I need to go in /Backup directory .
I need to mount a file system of my HP server in /Backup directory of ftp server.

how can i mount a file system of my HP server in /Backup directory of ftp server?
Please suggest.
vipin
Devender Khatana
Honored Contributor

Re: NFS Configuration

Hi,

You need to have some privileges on your ftp server, which you do not have. Also after having previleges find Backup directoty in ftp root directory.

#find / -name Backup -print |pg

#cd PATH_TO_BACKUP/Backup

Confirm free space in this backup directory by using

#bdf .

( It should have atleast 16GB free space.)
You are still doing some mistake. From the above posts it seems that you are trying to backup existing file system in Backup directory for that you will have to mount it somewhere else and will have to copy it to Backup directory.

HTH,
Devender
Impossible itself mentions "I m possible"