Solved

use vxdiskadd c0t0d0 < /tmp/commands

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now