From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <00bf01c1dc5a$43e78be0$6501a8c0@bomoon> From: "bo" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00BC_01C1DC17.35B7EFD0" Subject: [linux-lvm] running lvm tool from user application script Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: Date: Thu Apr 4 22:27:02 2002 List-Id: To: linux-lvm@sistina.com This is a multi-part message in MIME format. ------=_NextPart_000_00BC_01C1DC17.35B7EFD0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable LVM gurus, I have been playing with the LVM tool for a while under ROOT = privilledge. Today, I tried to run "lvscan" & "pvscan" from one of my user script to show LVM status to user. I realized I could not run them having the = attached errors. Q1: Is that true I can not run "vgscan", "lvscan",... under user = applciation which does not have "root" right? Q2: I want to run these utilities from my CGI script for Web GUI.=20 Any suggestions? Thanks in advance, BM ATTACH)------------------------------------------------------------------= - Error2) mooasun>$cat /etc/*tab mooasun>$anacrontab fstab lvmtab raidtab mooasun>$crontab inittab mtab mooasun>$lvscan mooasun>$lvscan -- ERROR: "/etc/lvmtab" doesnot exist; please run vgscan =20 Error1) mooasun>$vgscan mooasun>$vgscan -- LVM driver/module not loaded! ------=_NextPart_000_00BC_01C1DC17.35B7EFD0 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable
LVM gurus,
 
I have been playing with the LVM tool = for a while=20 under ROOT privilledge.
Today, I tried to run "lvscan" & = "pvscan" from=20 one of my user script
to show LVM status to user. I realized = I could not=20 run them having the attached errors.
 
Q1: Is that true I can not run = "vgscan",=20 "lvscan",... under user applciation
which does not have "root" = right?
 
Q2: I want to run these utilities from = my CGI=20 script for Web GUI.
     Any=20 suggestions?
 
Thanks in advance,
 
BM
 
ATTACH)---------------------------------------------------------= ----------
Error2)
mooasun>$cat /etc/*tab
mooasun>$anacrontab   =20 fstab    lvmtab    raidtab
mooasun>$crontab   =20     inittab    mtab
mooasun>$lvscan
mooasun>$lvscan -- ERROR: = "/etc/lvmtab" doesnot=20 exist; please run vgscan
      =
Error1)
mooasun>$vgscan
mooasun>$vgscan -- LVM driver/module = not=20 loaded!
------=_NextPart_000_00BC_01C1DC17.35B7EFD0--