03-06-2008
Quote:
Originally Posted by
jrkappler
venatorm:
I also have the VIO environment and am trying to increase the size of an existing LPAR volume (AIX 5.3). But, I don't have the 'rmvdev' command in either the padmin or root user environments (I have rmdev, but no rmvdev, and neither of the rmdev commands take a '-vtd' argument ???). Is your rmvdev command a script or an extension or something? If so, can you share it?
Thanks,
Jon
i have same problem, shell don't know command rmvdev. I solve this problem by using rmdev -dev VTDname.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
Here we have a requirement like move some oracle data in to flat files and store it in Tape drives. On request these needs to be put back in tables.
The total Database is around 800 GB.
Now I must have to move around 40 GB in to Tape.
Can some help me what is the MAX tape... (2 Replies)
Discussion started by: reddyb
2 Replies
2. AIX
hi all,
i have an p620 server. it has 2 scsi 18gb disks for aix4.3 OS and 3 ssa disks for database and an serialRAID adapter. 3 ssa disks configured raid level 5.
to increase capacity of the datavg, i buy 2 ssa 18gb disks. but i can not add them to the existing datavg. i did the following... (1 Reply)
Discussion started by: tinhlx
1 Replies
3. AIX
Hi All,
What do you usually use for capacity planning on AIX?
Any idea will do?
Thanks in advance,
itik (1 Reply)
Discussion started by: itik
1 Replies
4. Solaris
Hi All,
What do you usually use for capacity planning tool on solaris 8 or later?
Thanks in advance. (2 Replies)
Discussion started by: itik
2 Replies
5. Solaris
how to know for a particular solaris machine whether i am having a 64 bit or 32 bit processor???
like for machine with details
SunOS 5.8 Generic_108528-20 sun4u sparc SUNW,Sun-Blade-100 (3 Replies)
Discussion started by: mobydick
3 Replies
6. Shell Programming and Scripting
Good morning.
I have been attempting to find a way to monitor the capacity of a directory so that when it reaches 80% or higher I can send an event.
I was able to find a script that does this for the whole drive by I can not seem to figure out how to do this for just a single directory.
... (1 Reply)
Discussion started by: LRoberts
1 Replies
7. Shell Programming and Scripting
i need to write a shell script for printing the list of filesystems whose disk utilization is more than 75%...i tried using df -h along with awk but cud'nt make the combination work.....:wall:
when we do df -h then the filesystems which are using more than 75% capacity shud be printed according to... (11 Replies)
Discussion started by: xtatic
11 Replies
8. AIX
Dears,
The TSM storage that we have is already configured to backup some Application,directories & logs or let's say backup different path from 15 servers, I want to add more Items to be backuped by this storage, how to be confirmed if that possible or not? I mean how do we know the capacity of... (7 Replies)
Discussion started by: arm
7 Replies
9. AIX
I am new to using AIX but ive ran into issues with 100% full and then rebooting and having a socket error repeating over and over. My question is, what can I do besides just monitoring to ensure I dont run into these issues? Scripts? anything? Thanks (3 Replies)
Discussion started by: terry.berger
3 Replies
10. AIX
can anyone tell me how to reduce Fs capacity by using echo zero. (3 Replies)
Discussion started by: nkchand
3 Replies
LEARN ABOUT DEBIAN
shell-quote
SHELL-QUOTE(1p) User Contributed Perl Documentation SHELL-QUOTE(1p)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)