Operating System - HP-UX
1831311 Members
3621 Online
110023 Solutions
New Discussion

Where to execute LVM commands

 
S. Chan
New Member

Where to execute LVM commands

Hi,

It might be stupid question. I was doing practice on LVM commands ex:Pvdisplay
Vgdisplay
Lvdisplay
Pvcreate
Vgcreatel
vcreate
Vgextend
on HP Testdrive.
But I got sh: not found

Isn't possible to run those commands on HP testdrive for practice?

Thanks,
Chan
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Where to execute LVM commands

I'm hoping that you didn't spell the commands exactly as you did here, because there should not be any capital letters in them:

root# Vgextend
sh: Vgextend: not found.


Pete

Pete
S. Chan
New Member

Re: Where to execute LVM commands

Hi Pete,

I tried with small letter with no luck.

Do you think it's because I don't have root permission to run those commands?
A. Clay Stephenson
Acclaimed Contributor

Re: Where to execute LVM commands

It appears that these commands are not in your PATH. Try running them with absolute paths such as /usr/sbin/vgdisplay (or as /sbin/vgdisplay. You should be able to execute at least some of them as a regular user (e.g. vgdisplay) and the others you will also be ablo execute but will immediately tell you that you must be root.

By the way, many of these commands are exactly the same command. cksum them and then ask yourself what is going on. Hint: do an ls -l and note the link count.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Where to execute LVM commands

The testdrive machines do not allow any root login. You are just an ordinary user so you cannot change any disk configurations at all. You can run these commands:

vgdisplay pvdisplay lvdisplay

and that's all as far as LVM commands. Almost every command in /usr/sbin and /sbin is forbidden to a normal user. The reason is obvious - you can easily destroy everything on the system with a single command.


Bill Hassell, sysadmin
S. Chan
New Member

Re: Where to execute LVM commands

Hi All,

Thanks for all explanation and time. I got the answer now.

Thanks again.
Gary Cantwell
Honored Contributor

Re: Where to execute LVM commands

Hi Chan,

Please take a moment to assign points to those who have taken the time to assist you, here's how:

http://forums1.itrc.hp.com/service/forums/bizsupport/helptips.do?#33

Thanks,

Gary