Solved

use vxdiskadd c0t0d0 < /tmp/commands

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 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

18 Experts available now in Live!

Get 1:1 Help Now