1833451 Members
2969 Online
110052 Solutions
New Discussion

Re: online JFS problem

 
SSP_1
Regular Advisor

online JFS problem

Hi,

I am using online JFS to increase "var" filesystem size. Here are the steps which I follows :-

# fsadm -d -D -e -E /var
# fsadm -b 5000000 /var - to increase the size to 5GB. But it doen't go and gives me the following error :-

# fsadm -F vxfs -b 2205219 /var
vxfs fsadm: /dev/vg00/rlvol8 is currently 2097152 sectors - size will be increased
vxfs fsadm: write failure at block 6399521 : No such device or address



Is there any solution for this prob OR pl let me know how to use online JFS?
Obstacles exist to challenge you to keep going. Not to quit.
8 REPLIES 8

Re: online JFS problem

Have you extended the logical volume that var uses? that needs to be done first before you can extend the file system...

the -b option expects to be told the number of blocks in 1K blocks, so if you had extended your logical volume to size 5000MB, the fsadm command would be:

fsadm -F vxfs -b 5120000 /var

(5120000= 1024 * 5000)

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Tom Geudens
Honored Contributor

Re: online JFS problem

Hi,
You've forgotten something essential. Before doing the fsadm-command, you need to lvextend the logical volume. Example :
root/sv00127#lvextend -L 240640 /dev/vghsmcaches2/lv_hsmcaches2
root/sv00127#fsadm -F vxfs -b 246415360 /dbad_migratie
root/sv00127#cd /dbad_migratie
root/sv00127#bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vghsmcaches2/lv_hsmcaches2
246415360 136954080 108606168 56% /dbad_migratie

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Steve Steel
Honored Contributor

Re: online JFS problem

Hi


This is well documented at www.docs.hp.com


For examples

http://www.introcomp.co.uk/hpux/index.html


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Roger Baptiste
Honored Contributor

Re: online JFS problem

hi,

You seem to have missed the lvextend part!
Here is a useful link :

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=538bd0c101b2f8d168/screen=ckiDisplayDocument?docId=200000057272464

HTH
raj
Take it easy.
Trond Haugen
Honored Contributor

Re: online JFS problem

You may have forgotten to extend the lvol first:
lvextend -L 5000 /dev/vg00/lvol8

Then you need to extend the filesystem:
fsadm -F vxfs -b 5000M /var
If your HP-UX version don't support the M-option:
fsadm -F vxfs -b 5120000 /var

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Krishna Prasad
Trusted Contributor

Re: online JFS problem

One other note.

If you did do the lvextend.

The filesystem can not be 100% full to extend the filesystem. It needs just a little bit of space in /var/lost+found.
Positive Results requires Positive Thinking
pap
Respected Contributor

Re: online JFS problem

Hi,
you need to do following :

1. You have to extend the logical volume on which you want to extend the file system.
#lvextend -L 5000 -n lv_name /dev/vgxx

#fsadm -F vxfs -b 5120000 /var


you are all set now.

-pap
"Winners don't do different things , they do things differently"
MANOJ SRIVASTAVA
Honored Contributor

Re: online JFS problem

HI Shripad

Alternatively have u tried using SAM , this would take you out many hardships that you may face.


Manoj Srivastava