Solved

use vxdiskadd c0t0d0 < /tmp/commands

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machineā€¦
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consolā€¦
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.:
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.

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