Solved

use vxdiskadd c0t0d0 < /tmp/commands

Posted on 2001-07-20
5
408 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

786 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