I used gparted to created a dev/sdb2 partition. I then used vgextend to extend the volume group. The output of vgdisplay shows the condition of my volume group:
Clearly there is enough free space for me to create additional logical volumes.
I want to make a new one called lv_windows7.
When I execute this command, I get the following
This is quite odd. And when I look up in the logs I see:
For some odd reason, the kernel is not realizing that it should put the new space on /dev/sdb2. I installed system-config-lvm and it shows me that the volume group consists of /dev/sdb1 and /dev/sdb2. I can cheat and use this utility to make the new lvm but I works as a systems administrator so I like to learn via command line. Can someone tell me what I am doing wrong?
Hi All,
I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Hello,
The INPUT file a.txt contains this
a
a
a
b
b
b
I'm trying to execute this shell script from the Unix Command Line like this:
./k.sh a.txt > newfile.txt
#!/usr/bin/sh
infile="$1"
awk '{print $0;}' < $infile
I get this error message on the command line: (9 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
I want to list all files/lines which except those which contain the pattern ' /proc/' OR ' /sys/' (mind the leading blank).
In a first approach I coded:
find / -exec ls -ld {} | grep -v ' /proc/| /sys/' \; > /tmp/list.txt
But this doesn't work. I got an error (under Ubuntu):
grep:... (5 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi all,
i face an error related to my server ""it's running server"" when i use sqlplus command
$ sqlplus
bash: sqlplus: command not found
the data base is up and running i just need to access the sqlplus to import the dump file as a daily backup.
i already check the directory... (4 Replies)
Hi All,
i am trying to ssh to a remote machine and execute certain command to remote machine through script.
i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as
expect: spawn id exp5 not open
while executing
"expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies
LEARN ABOUT HPUX
vxdestroy_lvmroot
vxdestroy_lvmroot(1M)vxdestroy_lvmroot(1M)NAME
vxdestroy_lvmroot - remove LVM root disk and associated LVM volume group
SYNOPSIS
vxdestroy_lvmroot [-v] [-b] lvm_root_disk
DESCRIPTION
The vxdestroy_lvmroot command tears down and removes the LVM volume group associated with the specified physical disk. This is done by
removing the volumes in the volume group and then removing the volume group.
OPTIONS -b Invokes the setboot command to change the primary boot disk to the VxVM root disk from which the system was booted (if the pri-
mary boot disk is not already set to this disk). The alternate boot device remains unchanged. If the -v option is also speci-
fied, the settings of the primary and alternate boot devices are displayed.
-v Outputs verbose messages including a timestamp that indicates major operations being performed.
ARGUMENTS
lvm_root_disk
Specifies the device name of the LVM root disk that is to be destroyed, along with its entire volume group.
EXAMPLES
This example shows the vxdestroy_lvmroot command invoked in its simpliest form:
/etc/vx/bin/vxdestroy_lvmroot c5t1d0
# /etc/vx/bin/vxdestroy_lvmroot -v -b c3t0d0
Are you sure about destroying c3t0d0 (imported on VG /dev/vg02) ? YES
vxdestroy_lvmroot 06:02: Tearing down /dev/vg02 on device c3t0d0
vxdestroy_lvmroot 06:02:
Unmounting and removing any volumes associated with /dev/vg02
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol1
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol2
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol3
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol4
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol5
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol6
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol7
vxdestroy_lvmroot 06:02: removing logical volume /dev/vg02/lvol8
vxdestroy_lvmroot 06:02: Removing Volume Group /dev/vg02
vxdestroy_lvmroot 06:02: Removing device files in /dev/vg02
vxdestroy_lvmroot 06:02: Removing LVM Physical Volume c3t0d0
vxdestroy_lvmroot 06:02: Removing LVM Physical Volume c1t1d3
vxdestroy_lvmroot 06:02: Removing LVM Physical Volume c1t1d4
vxdestroy_lvmroot 06:02: Removing LVM Physical Volume c1t1d5
vxdestroy_lvmroot 06:03: Current setboot values:
vxdestroy_lvmroot 06:03: Primary: 0/0/6/0/0.0.0
vxdestroy_lvmroot 06:03: Alternate: 0/0/1/0/0.1.0
vxdestroy_lvmroot 06:03:
Making disk c0t1d0 (0/0/1/0/0.1.0) the primary boot disk
vxdestroy_lvmroot 06:03:
Removal of device c3t0d0, volume group /dev/vg02 was successful
SEE ALSO cpio(1), dd(1), fsck(1M), setboot(1M)vxbootsetup(1M)vxcp_lvmroot(1M)vxres_lvmroot(1M)VxVM 5.0.31.1 24 Mar 2008 vxdestroy_lvmroot(1M)