Solved

use vxdiskadd c0t0d0 < /tmp/commands

Posted on 2001-07-20
5
413 Views
Last Modified: 2013-12-27
Hi,
   I cannot run vxdiskadd using redirect;
the /tmp/commands contains:
y
q



it produces the following errors:

cat: write error: Bad file number


cat /tmp/commands |vxdiskadd c0t0d0
produces the following errors:

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
Broken Pipe
Broken Pipe


Is there a way to feed input to the vxdiskadm vxvm?

thanks

0
Comment
Question by:usaperl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
kawin earned 50 total points
ID: 6304283
Try
/etc/vx/bin/vxdisksetup -i cxtxdx (initial disk)
/usr/sbin/vxdg [-g diskgroup] adddisk DmName=cxtxdx (add disk to disk group)



0
 

Author Comment

by:usaperl
ID: 6319759
thanks
0
 

Author Comment

by:usaperl
ID: 6319775
is this encapsulate or initialize?
0
 
LVL 1

Expert Comment

by:kawin
ID: 6321005
vxdisksetup -i <disk> mean to initial disk.

- Kawin
0
 

Author Comment

by:usaperl
ID: 6322619
thanks alot;
so i guess -e is encapsulate.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question