cancel
Showing results for 
Search instead for 
Did you mean: 

Disk Management

SOLVED
Go to solution
Paul Stanard
Regular Advisor

Disk Management

I have an unlabeled disk: dsk3
I want to label it: disklabel -wr -t advfs dsk3a

I want to add the disk to /usr. Do I first have to umount it in order to do so and boot into single-user mode. This was the case in HP-UX 10.20? Or is this something that can be done through sysman? Disk mount command?

I know I might hear it for this thread.
25 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

as soon as you label the disk, you can add it to /usr like
addvol /dev/dsk/dsk3c usr_domain
You need advfs utilities, with a license.
No umount, you can do it online.
look man addvol

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

Thanks Mike
Paul Stanard
Regular Advisor

Re: Disk Management

Is there any other way to add a disk to the usr_domain because I am not sure we have a license pak for advfs utilities
Michael Schulte zur Sur
Honored Contributor
Solution

Re: Disk Management

Hi,

I am afraid, this is necessary. I am not sure, whether lsm could help you or if this would only mean another nnecessary license.
Hi could you please post the disklabel of the disk with /usr and dsk3?
If you have a big swap space, you could make that smaller and use dsk3 as additional swap.
Do you use hardware raid?
If so, what kind.

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

disklabel dsk3
type: SCSI
disk: HSZ70
label:
flags:
bytes/sector: 512
sectors/track: 254
tracks/cylinder: 20
sectors/cylinder: 5080
cylinders: 6999
sectors/unit: 35556389
rpm: 3600
interleave: 1
trackskew: 7
cylinderskew: 26
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0

8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 131072 0 unused 0 0 # 0 - 25*
b: 262144 131072 unused 0 0 # 25*- 77*
c: 35556389 0 unused 0 0 # 0 - 6999*
d: 0 0 unused 0 0 # 0 - 0
e: 0 0 unused 0 0 # 0 - 0
f: 0 0 unused 0 0 # 0 - 0
g: 17581586 393216 unused 0 0 # 77*- 3538*
h: 17581587 17974802 unused 0 0 # 3538*- 6999*
#

I am using mirroring.

Not sure how to tell what disk usr_domain is a part of. I may need to just add a disk to an entirely new domain. I have been thinking about redoing this whole box. There are a lot things I would like to do differently
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

please post
disklabel -r /dev/rdsk/dsk0a
and
lmf list

to see, if you have advfs-utilities

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

# ./disklabel dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: RZ29B
label:
flags:
bytes/sector: 512
sectors/track: 113
tracks/cylinder: 20
sectors/cylinder: 2260
cylinders: 3708
sectors/unit: 8380080
rpm: 7200
interleave: 1
trackskew: 9
cylinderskew: 16
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0

8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 786432 0 AdvFS # 0 - 347*
b: 786432 786432 LSMnoprv # 347*- 695*
c: 8380080 0 unused 0 0 # 0 - 3707
d: 4096 1572864 LSMsimp # 695*- 697*
e: 3401560 1576960 unused 0 0 # 697*- 2202*
f: 3401560 4978520 unused 0 0 # 2202*- 3707
g: 4300800 1576960 LSMnoprv # 697*- 2600*
h: 2502320 5877760 unused 0 0 # 2600*- 3707

./lmf list
Product Status Users: Total Active

OSF-BASE active unlimited
OSF-USR active unlimited

I have about 4 more license paks but none mention advfs utilities. should i add them anyway and see. I really would like to create a new file system just to put data on it /data in addition to expanding /usr. Thanks for all your help
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

why do you need more space in /usr?
There seems to be some unused space on partition h:
The disk layout looks a bit strange for a lsm disk.

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

I thought the layout was a bit strange as well. I went with the default file system layout since this was my first alpha and needless to say I will never do that again... Partitions C,E,F,H seem to be unused. Is there a way I can make these usable?
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

partitions are not allowed to overlap, so really only h: is unused. Can yu redo the installation? This would be the easiest thing. Also install the rest of the licenses for that machine and post the new lmf list. Ther may be a chance, that you can add dsk3 with lsmsa to the volume of usr and then use mount -o extend to increase the size. I have no chance to try that however.

Michael


Paul Stanard
Regular Advisor

Re: Disk Management

Thats the only way? I might consider that.
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Ralf,

could you please shed some thoughts on whether I am giving the right advice?

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

Ralf doesnt like me :(
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Paul,

do you know Ralf in person? ;-)
I think, he is rather frustrated, that his good advice for people to first do some research and then post goes unheard. ;-)

I don't this, he has anything against you personally.

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

I am just kidding around.. I know he always tells me to read before I post. I am going to redo the machine and reference all the postings that you guys have helped me with. I hope that there is a way to search postings by author?
Paul Stanard
Regular Advisor

Re: Disk Management

Mike is it possible to create another filesystem say /usr with a new disk
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

if you consider redoing the machine and you have a little time, try the dxlsm and extend the volume on partition h:
The disk isn't big either. If you can, replace them by at least 9.1gb or add another pair, so you can put /usr on its own disk.

yeah man, go for it!! ;-)

Michael
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

it might be possible, try this:
mkfdmn -x 1024 /dev/dsk/dsk3h usr1
mkfset usr1 usr
mount usr1#usr /mnt
vdump -f - -D /usr | vrestore -xf - -D /mnt
umount /mnt
cd /etc/fdmns
mv usr_domain usrx
mv usr1 usr_domain
reboot
if any error occur before the cd, con't continue.

good luck,

Michael

Paul Stanard
Regular Advisor

Re: Disk Management

I am doing the install now...Do you advise using lsm with custom layout?
Paul Stanard
Regular Advisor

Re: Disk Management

I started the install already...I think this will work out for the best
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

no, I would not use custom layout.
since your disk is so small, I would only use
a: for root
b: for swap
g: for usr
and there is one more small partition for
lsm. Mabe you can dsk3 partition h: for usr
You should have at least the amount of swap as the amount of memory.

Michael
Paul Stanard
Regular Advisor

Re: Disk Management

I put root, usr, and var on there own separate 18 Gb disk. Will this create and complications or problems?
Michael Schulte zur Sur
Honored Contributor

Re: Disk Management

Hi,

I would put root(1gb) and swap(1xmemory or 1gb) on the disk you used til now and share usr and var on an 18gb disk

Michael

Paul Stanard
Regular Advisor

Re: Disk Management

This is how I set it up.....If its something wrong please say so before i hit enter

/root dsk1a
/usr dsk2f
/var on /usr

swap dsk1h
secondary swap dsk3h

lsm dsk1d, dsk2d, dsk3d