Operating System - HP-UX
1832810 Members
2954 Online
110045 Solutions
New Discussion

Creating new LV on second disk

 
SOLVED
Go to solution
Edmund Brown
Occasional Advisor

Creating new LV on second disk

Hi Everyone

I am in the process of configuring a C3000 machine to which I have installed the HP-UX 11i V1 OS. The machine contains two hard disks.

1) QUANTUM Atlas4-9LVD 8678 Mbytes Unused
2) SEAGATE ST39103LC 8678 Mbytes LVM

The OS is loaded on the second disk as the Volume Group vg00. The default logical volumes (created by the install) are shown below (from SAM)

Logical Volume Volume Group Type Use Mbytes Mirror Mount
lvol1 vg00 LVM HFS 300 0 /stand
lvol2 vg00 LVM Swap/Dump 2048 0
lvol3 vg00 LVM VxFS 200 0 /
lvol4 vg00 LVM VxFS 200 0 /tmp
lvol5 vg00 LVM VxFS 20 0 /home
lvol6 vg00 LVM VxFS 3040 0 /opt
lvol7 vg00 LVM VxFS 1252 0 /usr
lvol8 vg00 LVM VxFS 1612 0 /var



1) How do I go about mounting the QUANTUM drive to examine what it contains?
2) Can I create an lvol9 on this drive as ‘/space’ for example taking up the whole drive?
3) If the QUANTUM drive proves unusable from which of the lvol1 – lvol8 can I rob space to create my ‘/space’ partition on the SEAGATE?
4) Can I do all the above in SAM?

Thanks in advance for any help you can give

Ed
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Creating new LV on second disk

Shalom,

strings /etc/lvmtab
Seee if the quantum is in a volume group.

If so, pvdisplay -v / lvdisplay -v the contents.

If not.

pvcreate the disk

lvextend volume group to new disk or
vgcreate new volume group on the disk.

4) Yes but its advisable to use the command line because sam makes mistakes.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mike Shilladay
Esteemed Contributor

Re: Creating new LV on second disk

Hi Ed,

If you have loaded the machine from scratch, then the Quantum disk is not likely to contain anything useful.

To use this disk, you can use SAM. Or you could use command lines, depending on your level of expertise.

Essentially, the method goes:

1. Initialise the disk.
2. Add disk to a volume group
3. Add logical volumes to it
4. Create filesystems
5. Mount the logical volumes

You can do all of this in SAM.

Mike.
Edmund Brown
Occasional Advisor

Re: Creating new LV on second disk

Steven / Mike

Firstly, thanks for the replies. As you may have guessed I am new to this platform and its administration, as such I find using the SAM GUI a little easier than the command line.

Using SAM I have successfully created /space as the logical volume lvol9 in the volume group vg00. As I am not 100% sure about the history / integrity of this disk could you please advise on what disk checking utilities I could run.

Thanks
Ed
Mike Shilladay
Esteemed Contributor

Re: Creating new LV on second disk

Hi Ed,

By default EMS is configured on recent installs. This software monitors disks amongest other things and will mail a message to root in the event that a disk looks suspect.

You can also look at the disk information by using STM (Support Tools Manager)

type stm at the prompt, then O for OK, then D for disks, press tab to get to the top buttons.

T for tools, press return if information is highlighted, and then run.

Use the arrows keys to scroll down. You should see statistics under the Error Log heading. Small numbers are acceptable (small being less than 20 in my expierience). Any large numbers could indicate a problem.

There are more methods, probabaly the best being just expierience on the OS.

Post again if you need more ideas.

Mike.