Operating System - HP-UX
1833873 Members
2149 Online
110063 Solutions
New Discussion

Re: File system questions

 
Donald Lalonde
Advisor

File system questions

Hi guys,

(sorry about the length of the post.)

I recently added disks to my disk array.
Now, I need to add the space to my system.
There are three things I am trying to achieve:

1 - Increase the allocated space of vg00 (free PE is already available)
2 - create a new vg
3 - add some space to an existing vg

Here are the steps that I am going to follow.
Can somebody confirm that I am not missing anything. Thanks

1 - Increase the space for vg00
->vgdisplay /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 8
Total PE 4340
Alloc PE 1826
Free PE 2514
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Space available = 2514 * 8 M = 20 G

/sbin/umount /usr
/sbin/umount /tmp
/sbin/umount /opt

/sbin/lvextend -L 6000 /dev/vg00/lvol7
/sbin/lvextend -L 1000 /dev/vg00/lvol4
/sbin/lvextend -L 10000 /dev/vg00/lvol6


/sbin/extendfs /dev/vg00/rlvol7
/sbin/extendfs /dev/vg00/rlvol4
/sbin/extendfs /dev/vg00/rlvol6

mount /usr
mount /tmp
mount /opt

>> Do I need to be in single user mode for this?

2 - Create a new VG

create LUN's using Command View
ioscan - Find the Luns
insf -e - Create special device files
insf -e /dev/dsk/c4t2d2
pvcreate /dev/rdsk/c4t2d2
mkdir /dev/vg09
mknod /dev/vg09/group c 64 0x090000
vgcreate -s2 /dev/vg09 /dev/dsk/c4t2d2
vgdisplay /dev/vg09
lvcreate -L 10000 /dev/vg09
lvcreate -L 20000 /dev/vg09
newfs /dev/vg09/rvol1
newfs /dev/vg09/rvol2
mkdir /Informatics
mkdir /Archive_Dir
mount /dev/vg09/lvol1 /Informatics
mount /dev/vg09/lvol2 /Archive_Dir

3 - add some space to an existing vg

/sbin/unmount /var/oracle1
pvcreate /dev/rdsk/c4t2d4
vgextend /dev/vg07 /dev/dsk/c4t2d4
vgdisplay /dev/vg07
/sbin/lvextend -L 13000 /dev/vg07/lvol1
/sbin/extendfs /dev/vg07/lvol1
/sbin/mount /var/oracle1


Thanks
Don
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: File system questions

Don,

Basically everything looks pretty good, but I'm reasonable certain you will have to boot into single user mode. It's just impossible to unmount /usr otherwise.


Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: File system questions

1) As stated, you will need to be in single user mode because you are using extendfs and the chances of being able to unmount /usr and /tmp are essentially zero. However, if you have OnlineJFS then you would be using fsadm -F vxfs -b and you would not need to unmount and these changes could be done online. I do question the need to extend /tmp because /tmp is supposed to only be used by the OS. User tempo space is supposed to bin /var/tmp. Well-written applications and scripts will examine ${TMPDIR} --- which should be set to /var/tmp.

2) All you need is simply "insf" to create new device nodes. The "-F vxfs" aregument should be added to newfs.

3) If you have OnlineJFS then all you need is fsadm -F vxfs -b; no umounts and mounts.

If you don't have OnlineJFS then get it; no serious HP-UX box should leave home without it.

If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: File system questions

Do you have Online JFS installed? If so, that can change things significantly and make your life much easier.
Mel Burslan
Honored Contributor

Re: File system questions

for question 1: As Pete indicated, other than /usr, you will not need to be in single user mode. Although if there are apps running out of /opt (more than likely they are) they will need to be stopped. So, to prevent all the heartache, you can go down to single user for a few minutes and doo all of these at one shot and come back up

for question 2: There is no such command as
insf -e /dev/dsk/c4t2d2
you can use

insf -e
or
insf -H

insf actually creates the /dev/dsk/c4t2d2 device file. If it is already there, you can totally skip this step

also, after mounting them manually, don't forget to add them to your /etc/fstab otherwise they will not get automatically mounted at the next reboot

Question 3 does not need any help as you covered all the necessary steps.

Over all, since you seem to be running oracle, I'd suggest investing in a license for Online JFS. Makes life much easier by eliminating the need for unmounts and going down to single user modes for most purposes. Only things you will not be able to extend regardless you have online JFS or not are "/" and "/stand".

________________________________
UNIX because I majored in cryptology...