1843974 Members
2103 Online
110226 Solutions
New Discussion

help with file system

 
SOLVED
Go to solution
Dave Lester
New Member

help with file system

Hi,

We recently had 2 new 18 GB seagate drives installed in our k580. These drives are in the internal bays. The drives have been assigned to vg01 but are not currently assigned any logical volumes.

What I want to do on my system is the following: there are 2 other 18 GB disks assigned to vg01 with lvol3 having 3500 MB and lvol4 having 1300 MB. Both the file systems on these 2 logical volumes are mirrored and there is no space availble on the 2 original disks (1 mirror).


I want to extend both of those logical volumes by approximately 8.5 GB each to give me some more space for these 2 file systems.

My questions are:

1) can I use SAM to increase these two file systems and will this automatically re-mirror them, or do I have to use the lv commands and if so what is the proper procedure?

Thanks


Thanks

3 REPLIES 3
Mark Grant
Honored Contributor
Solution

Re: help with file system

You should be able to use SAM and the mirrors will be made automatically. You do need to make sure that the allocation policy for the logical volumes are "strict" so that you that the filesystem and mirror aren't on the same physical disk

However, the commands are not complex.

lvextend -L12000 /dev/vg01/lvol3
fsadm -b12000M /filesystem (assuming you have online jfs)
Never preceed any demonstration with anything more predictive than "watch this"
Stuart Abramson_2
Honored Contributor

Re: help with file system

If you are using hpux 11i or 11.0, then SAM will mirror LVs. I think that on hpux-s previous to 11.0, SAM wasn't capable of mirroring.

I always use commands.

Here is a sequence to use commands to mirror existing LVs:


#
# There are two disks in vgXX, the LEFT disk and RIGHT disk.
# We will mirror from Left to Right.
# Assume that the Left disks are set up correctly!
#

cLEFT=c4t6d0 # 1/0/0/3/0.6.0
cRIGHT=c7t6d0 # 1/0/1/0/0/1/1.6.0
pvcreate /dev/rdsk/${cRIGHT}
vgextend vgXX /dev/dsk/${cRIGHT}

vgdisplay -v vgXX | grep "LV Name" | awk '{print $3}' | while read LV
do
lvextend -m 1 $LV /dev/dsk/${cRIGHT}
done
Steven E. Protter
Exalted Contributor

Re: help with file system

Sam will do it, but its better to use the command line.

Attaching my guide to the command line stuff.

The key advantage is that this lets you choose the mirror disk instead of relying on sam to pick.

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