I have a situation where I need to do Flash Archive, and the local 
storage is not enough. But I cannot use NFS due to security reason, I 
cannot deploy Secure NFS also, and the available connectivity is only SSH.

Therefore I am using Sys V IPC named pipes to capture the target file 
into pipe, to be transported to SSH to another host.

The problem is, named pipe cannot be sustained long enough for Flash 
archive creation from host "charlie" to host "golf" as the recipient.

 From terminal #1 at host charlie

r...@charlie # mknod /var/sun/mksysb.pipe p
r...@charlie # ls -al /var/sun/mksysb.pipe
prw-r--r--   1 root     root           0 Dec 12 16:11 /var/sun/mksysb.pipe
r...@charlie #  cat /var/sun/mksysb.pipe |ssh r...@golf "cat > 
/data/work/target.flar"
Password:

 From terminal #2 at host golf

bash-3.2# ps -ef|grep cat
     root   900   891   0 16:12:02 ?           0:00 sh -c cat > 
/data/work/target.flar
     root   901   900   0 16:12:02 ?           0:00 cat
     root   911   887   0 16:59:26 pts/2       0:00 grep cat


The pipe was created, anything written on host charlie at 
/var/sun/mksysb.pipe will be written on host golf at /data/work/target.flar

Then from terminal #3 at host charlie

r...@charlie # flar create -n test -c -x /var/sun -x /export/frontline 
-x /export/home -x /export/install /var/sun/mksysb.pipe
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
The archive will be approximately 2.98GB.
Creating the archive...
No space left on device
Unable to write archive file.
ERROR: Unable to write archive.

Running pre-exit scripts...
Pre-exit scripts done.

When I check the terminal #1, I can still see that the process is still 
running, has not been killed

back to terminal #2 :

bash-3.2# ps -ef|grep cat
     root   900   891   0 16:12:02 ?           0:00 sh -c cat > 
/data/work/target.flar
     root   901   900   0 16:12:02 ?           0:00 cat
     root   911   887   0 16:59:26 pts/2       0:00 grep cat

back to terminal #3 :

r...@charlie # ls -al /var/sun/mksysb.pipe
/var/sun/mksysb.pipe: No such file or directory

r...@charlie # ps -ef |grep cat
     root  1099   852   0 16:12:05 pts/2       0:00 ssh r...@golf cat > 
/data/work/target.flar
     root  1098   852   0 16:12:05 pts/2       0:00 cat /var/sun/mksysb.pipe
     root  1353   873   0 16:59:48 pts/3       0:00 grep cat
r...@charlie #

So we can see the process are still intact, but the Unix Sys V IPC using 
named pipes cannot withstand the duration of Flash Archive.

I have no problem transferring data of 2-3 GB which is taking about 4-5 
minutes in Fast Ethernet. But for Flash Archive creation, it looks like 
I need to sustain at least 2 hours.

Any advice on this? Thanks in advance.


_______________________________________________
sysadmin-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to