Sponsored Content
Full Discussion: lscfg -vl vpath - error
Operating Systems AIX lscfg -vl vpath - error Post 302478841 by phobus on Thursday 9th of December 2010 04:05:40 AM
Old 12-09-2010
lscfg -vl vpath - error

Hello all,

I need to run successfully this command :

Code:
1:root@abcd:/root # lscfg -vl vpathXY
lscfg: device vpathXY not found.
1:root@abcd:/root # echo $?
1

If I run it on another server I will get no output which is ok :

Code:
1:root@efgh:/root # lscfg -vl vpathAB
1:root@efgh:/root # echo $?
0

I have checked:

datapath query device
datapath query adapter
lsdev -Cc disk
lsdev -Cc adapter

All looks ok , everything available.

Do yo know any idea ?

Thank you.

Moderator's Comments:
Mod Comment Double post, continued here

Last edited by pludi; 12-09-2010 at 05:19 AM..
 

10 More Discussions You Might Find Interesting

1. AIX

vpath fbvol relationship

Hi, I have a question about AIX vpaths and the fbvols you create via dscli on a DS8100 storage. Is there any command or any way to look which fbvol corresponds which vpath on operating system like the command fget_config -Av on a FastT storage system? I tried the datapath query device, datapath... (1 Reply)
Discussion started by: samaks
1 Replies

2. AIX

vpath to an hdisk

Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies

3. Shell Programming and Scripting

vpath directive in make

Hi all, I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' . Please let me know the above is correct or suggest me the correct one. Thanks in advance. -Jerry (6 Replies)
Discussion started by: jerryragland
6 Replies

4. UNIX for Dummies Questions & Answers

awk Shell Script error : "Syntax Error : `Split' unexpected

hi there i write one awk script file in shell programing the code is related to dd/mm/yy to month, day year format but i get an error please can anybody help me out in this problem ?????? i give my code here including error awk ` # date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies

5. AIX

lscfg

I'm using the command "lscfg -vpl rmt*" to view all of my tape devices. However, it only works intermittently. Able to run it (sometimes) on both 5.2 and 5.3. Any ideas? (2 Replies)
Discussion started by: jwholey
2 Replies

6. AIX

AIX vpath lun

Hi everyone, how can I check if I have LUNs in a server and the LUNīs vpath in AiX? thx (5 Replies)
Discussion started by: jcpetela
5 Replies

7. AIX

vpath and sharks

Hello everyone: just want to know how to get the name of the shark in which the vpath is? thanks (2 Replies)
Discussion started by: jcpetela
2 Replies

8. AIX

lscfg -vl vpath - error

Hello all, I need to run successfully this command : 1:root@abcd:/root # lscfg -vl vpathXY lscfg: device vpathXY not found. 1:root@abcd:/root # echo $? 1 If I run it on another server I will get no output which is ok : 1:root@efgh:/root # lscfg -vl vpathAB 1:root@efgh:/root # echo $?... (4 Replies)
Discussion started by: phobus
4 Replies

9. UNIX for Dummies Questions & Answers

> 5 ")syntax error: operand expected (error token is " error

im kinda new to shell scripting so i need some help i try to run this script and get the error code > 5 ")syntax error: operand expected (error token is " the code for the script is #!/bin/sh # # script to see if the given value is correct # # Define errors ER_AF=86 # Var is... (4 Replies)
Discussion started by: metal005
4 Replies

10. AIX

unknow pci device as seen by lsslot or lscfg

on a p5 520, running aix 7.1 with the latest TL and SP.. had a 133 MHz Sun PCI 1G or quad 4 x 100 Meg Ethernet card installed.. but it shows unknown type using using lscfg or lsslot Is there addtional drivers to be installed ??? did the same thing on a SYMBIOS Ultra320 diff... (2 Replies)
Discussion started by: ppchu99
2 Replies
chroot(8)						      System Manager's Manual							 chroot(8)

NAME
chroot - Changes the root directory of a command SYNOPSIS
/usr/sbin/chroot directory command DESCRIPTION
Only root can use the chroot command. The chroot command changes the root directory from / to the specified directory when the command executes. (The command specified includes both the command name as well as any arguments.) Consequently, the root of any path (as indicated by the first / (slash) in the pathname) changes to directory and is always relative to the current root. Even if the chroot command is in effect, directory is relative to the current root of the running process. Several programs may not operate properly after chroot executes. You must ensure that all vital files are present in the new root file system and the relevant pathnames for the files map correctly in the new root file system. For example, the ls -l command fails to give user and group names if the new root file system does not have a copy of the /etc/passwd and /etc/group files. If the /etc/passwd and /etc/group files in the new root file system represent different user and group names, then the output from the ls -l command will be based on those names, not the ones for the system's own name database. Utilities that depend on description files produced by the ctab command may also fail if the required description files are not present in the new root file system. The chroot program uses the execv() function to invoke the specified command. As a consequence, the command specified must be an exe- cutable binary, not a shell script. Further, if the program requires indirect loading (for example, due to unresolved symbols requiring use of a shared library), then /sbin/loader as well as any files it requires (for example, shared libraries) must be present in the new root file system in the appropriate locations. EXAMPLES
To run a subshell with another file system as the root, enter a command similar to the following. Note in this example, the file system is on the /dev/disk/dsk13a device and is mounted to /mnt/dsk13a: chroot /mnt/dsk13a /sbin/sh The command shown in the previous example spec- ifies a change from the current root file system to the one mounted on /mnt/dsk13a while /sbin/sh (which itself is relative to the new root file system) executes. When /bin/sh executes, the original root file system is inaccessible. The file system mounted on /mnt/dsk13a must contain the standard directories of a root file system. In particular, the shell looks for commands in /sbin, /bin, and /usr/bin (among others) on the new root file system. Running the /sbin/sh command creates a subshell that runs as a separate process from the original shell. Press to exit the subshell and return to the original shell. This restores the environment of the original shell, including the meanings of the current directory (.) and the root directory (/). To run a command in another root file system and save the output on the initial root file system, enter a command similar to the following. Note in this example, the file system is on the /dev/disk/dsk13a device and is mounted to /mnt/dsk13a: chroot /mnt/dsk13a /bin/cc -E /u/bob/prog.c > prep.out The previous command runs the /bin/cc command with /mnt/dsk13a as the specified root file system. It compiles the /mnt/dsk13a/u/bob/prog.c file, reads the #include files from the /mnt/dsk13a/usr/include directory, and puts the compiled text in the prep.out file on the initial root file system. To create a file relative to the original root rather than the new one, use this syntax and enter: chroot directory command > file CAUTIONS
If special files in the new root have different major and minor device numbers than the initial root directory, it is possible to overwrite the file system. FILES
Specifies the command path. RELATED INFORMATION
Commands: cc(1), cpp(1), ls(1), sh(1) Functions: chdir(2), chroot(2) exec(2) delim off chroot(8)
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy