01-24-2012
Using
rmdev does not clear a disk - it unconfigures it on your system; with
-d it
removes it from your ODM.
It could be that some other box has a reservation on this disk so that might be the reason you are not able to write to it. Maybe also check, before you break it, if this is not a productive disk to some other box.
There should be some LUN Id or device ID you can identify it maybe, whatever type of SAN disk/driver (or VIO inbetweeen?) you are using. You could check at first, if you are able to read from it with
dd or
readvgda for example. Else you might want to find the box that has the reservation on it and try to remove it from there.
Sometimes it's also good to have a kind of documentation which disks/LUNs are being used for what to limit such problems.
Can also check this:
http://publib.boulder.ibm.com/infoce...x_commands.htm
http://www.aixhealthcheck.com/blog.php?id=30
But before clearing reservation, you should be 100% sure you don't disturb a productive system / data.
I am not sure if that command/package is available on your installation anyway - you'll see.
Last edited by zaxxon; 01-24-2012 at 07:04 AM..
Reason: added info
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I am trying to clear my mail queue with the following command:
rm /var/spool/mqueue/*
But when I do this I get this error:
/bin/rm: Argument list too long.
Can someone tell me what that error means and what I can do to correct it so I can clear my mail queue?
Thanks (2 Replies)
Discussion started by: Chet
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Does anyone know of a command to safely clear the swapfiles to free up diskspace? It's done at shutdown/startup, but I'd rather not have down time, if possible.
Thanks,
MrToast
(BTW, Mac OS X 10.3.5 ;) ) (3 Replies)
Discussion started by: MrToast
3 Replies
3. Programming
How would I clear all data from an array? Here is what I'm doing:
while (1) {
if ((numbytes = recv(sock2, buf, 100, 0)) == -1) {
perror("recv");
}
printf("%s : %s", inet_ntoa(their_addr.sin_addr), buf);
}buf still has extra data in it, so when I print it, things from previous data is put... (3 Replies)
Discussion started by: Octal
3 Replies
4. HP-UX
HI,
Can anybody tell me...what is a command for clearing command history
in HP-UX machine. I tried 'history -c' but it is not applicable....
Thanks
JAGDISH MACHHI (4 Replies)
Discussion started by: jagdish.machhi@
4 Replies
5. Programming
Im unsure of how to clear break points using dbx v7.2.1
Ive tried using
delete linenumber of breakpoint
however this does not seem to work. Could anyone point me in the correct direction ?
regards (0 Replies)
Discussion started by: JamesGoh
0 Replies
6. Linux
Is it possible to clear certain specific commands from history. I mean not clearing the entire history (history -c).
You don't want anyone to see a particular command you executed. must not also show you have cleared history.
Is it possible ? (2 Replies)
Discussion started by: nitin09
2 Replies
7. Shell Programming and Scripting
I do a #lspv |grep rootvg and i got :
hdisk0 0006a81f3efcbe58 rootvg
hdisk1 0006a81fd9ff4014 rootvg
I want to verify for each server if the pvid is the same with use of the command lspv
Can you help to wrote a shell with the command awk for exemple .
Thank you (4 Replies)
Discussion started by: khalidou13
4 Replies
8. AIX
Hi
i need a script to manage the mount point for any log location (/u01/dump/log/)
i need a script which removes files older then x days but it should not remove file with extention *.log, *.ora etc
then for remaing files it must search the huge files like *.txt and do fuser <filename>
and... (0 Replies)
Discussion started by: javeedkaleem
0 Replies
9. Shell Programming and Scripting
anyone has any idae how do i clear the value in a variable in BASH?
So far I come across "Clear-variable", however it can only clear a "Local" and "Global" variable. I'm trying to clear a self-declared variable.
Anyone has any suggestions? (4 Replies)
Discussion started by: vinzping
4 Replies
10. Shell Programming and Scripting
i set a variable from the command line:
export GANG="james,roy,martin"
i can access this variable ($GANG) from a script. but each time i run the script, the variable keeps getting bigger. more info keeps getting added to it.
Is there anyway i can make the $GANG variable contain the... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT MOJAVE
uri::url
URI::URL(3) User Contributed Perl Documentation URI::URL(3)
NAME
URI::URL - Uniform Resource Locators
SYNOPSIS
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o URI::URL::strict(1)
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
SEE ALSO
URI, URI::WithBase
COPYRIGHT
Copyright 1998-2000 Gisle Aas.
perl v5.18.2 2012-02-11 URI::URL(3)