Adding space to a file system - HP UX

This is a discussion on Adding space to a file system - HP UX ; hi guys, Can someone help on how best can i increase the size of a file system.Using sam has failed this exercise.I allocated 10gig to /u and now is used up and i still have space on the same volume ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Adding space to a file system

  1. Adding space to a file system

    hi guys,
    Can someone help on how best can i increase the size of a file
    system.Using sam has failed this exercise.I allocated 10gig to /u and
    now is used up and i still have space on the same volume group .Now i
    want to addmore space to vg01.Below is my file system snapshot

    Filesystem kbytes used avail %used Mounted on
    /dev/vg00/lvol3 204800 114464 89896 56% /
    /dev/vg00/lvol1 295024 61232 204288 23% /stand
    /dev/vg00/lvol8 4706304 354720 4319456 8% /var
    /dev/vg00/lvol7 1273856 915664 355440 72% /usr
    /dev/vg01/lvol1 10240000 10240000 0 100% /u
    /dev/vg00/lvol4 204800 9232 194088 5% /tmp
    /dev/vg00/lvol6 2523136 1748520 768600 69% /opt
    /dev/vg00/lvol5 102400 29224 72672 29% /home

    Thank you in advance guys,
    Any suggestions welcome!

    Admire


  2. Re: Adding space to a file system

    "agwbx" wrote:

    >hi guys,
    >Can someone help on how best can i increase the size of a file
    >system.Using sam has failed this exercise.I allocated 10gig to /u and
    >now is used up and i still have space on the same volume group .Now i
    >want to addmore space to vg01.Below is my file system snapshot
    >
    >Filesystem kbytes used avail %used Mounted on
    >/dev/vg00/lvol3 204800 114464 89896 56% /
    >/dev/vg00/lvol1 295024 61232 204288 23% /stand
    >/dev/vg00/lvol8 4706304 354720 4319456 8% /var
    >/dev/vg00/lvol7 1273856 915664 355440 72% /usr
    >/dev/vg01/lvol1 10240000 10240000 0 100% /u
    >/dev/vg00/lvol4 204800 9232 194088 5% /tmp
    >/dev/vg00/lvol6 2523136 1748520 768600 69% /opt
    >/dev/vg00/lvol5 102400 29224 72672 29% /home
    >
    >Thank you in advance guys,
    >Any suggestions welcome!
    >
    >Admire

    Is the filesystem hfs or vxfs?
    Do you have Online JFS installed?

    Check lvdisplay /dev/vg01/lvol1.
    sam has probably extended the lv, then failed on extending the fs

    If it is hfs or vxfs without Online JFS the file system will need to
    be unmounted to extend it.
    Unmount the fs and use the extendfs command

    vxfs with Online JFS does not need to be unmounted but does need a
    little free space.
    Move some stuff to somwhere else to free up some space then "fsadm -b
    /u".

    Get caught on this all the time.

    Good luck,

    Ted.


    ================================================== ============
    | Ted Linnell |
    | |
    | Nunawading, Victoria , Australia |
    ================================================== ============

  3. Re: Adding space to a file system

    agwbx schrieb:
    > hi guys,
    > Can someone help on how best can i increase the size of a file
    > system.
    >


    I use the following procedure, e.g.:

    lvextend -L 768 /dev/vg00/lvol7 # /usr 768MB
    extendfs /dev/vg00/lvol7

    it might be necessary to execute before:

    shutdown # single user mode, root login
    umount /usr




  4. Re: Adding space to a file system

    First, let's assume that you have a spare disk available on your
    system. In that case, following steps would apply:

    1. pvcreate /dev/rdsk/cXtXdX
    2. vgextend vg01
    3. lvextend -L 2340000 /dev/vg01/lvol1 /dev/dsk/cXtXdX (this would add
    10Gb to your file system).

    Providing you have OnlineJFS, following needs to be done further:

    4. fsadm -b23400M /u (this will expand your file system)

    If you do not have OnlineJFS, than you have to take a down time:

    4. shutdown Oracle
    5. umount /u
    6. extendfs /dev/vg01/lvol1
    7. mount /u
    8. start Oracle

    agwbx wrote:
    > hi guys,
    > Can someone help on how best can i increase the size of a file
    > system.Using sam has failed this exercise.I allocated 10gig to /u and
    > now is used up and i still have space on the same volume group .Now i
    > want to addmore space to vg01.Below is my file system snapshot
    >
    > Filesystem kbytes used avail %used Mounted on
    > /dev/vg00/lvol3 204800 114464 89896 56% /
    > /dev/vg00/lvol1 295024 61232 204288 23% /stand
    > /dev/vg00/lvol8 4706304 354720 4319456 8% /var
    > /dev/vg00/lvol7 1273856 915664 355440 72% /usr
    > /dev/vg01/lvol1 10240000 10240000 0 100% /u
    > /dev/vg00/lvol4 204800 9232 194088 5% /tmp
    > /dev/vg00/lvol6 2523136 1748520 768600 69% /opt
    > /dev/vg00/lvol5 102400 29224 72672 29% /home
    >
    > Thank you in advance guys,
    > Any suggestions welcome!
    >
    > Admire



  5. Re: Adding space to a file system

    Forgot in step two:

    2. vgextend vg01 /dev/dsk/cXtXdX

    --==[ bman ]==-- wrote:
    > First, let's assume that you have a spare disk available on your
    > system. In that case, following steps would apply:
    >
    > 1. pvcreate /dev/rdsk/cXtXdX
    > 2. vgextend vg01
    > 3. lvextend -L 2340000 /dev/vg01/lvol1 /dev/dsk/cXtXdX (this would add
    > 10Gb to your file system).
    >
    > Providing you have OnlineJFS, following needs to be done further:
    >
    > 4. fsadm -b23400M /u (this will expand your file system)
    >
    > If you do not have OnlineJFS, than you have to take a down time:
    >
    > 4. shutdown Oracle
    > 5. umount /u
    > 6. extendfs /dev/vg01/lvol1
    > 7. mount /u
    > 8. start Oracle
    >
    > agwbx wrote:
    > > hi guys,
    > > Can someone help on how best can i increase the size of a file
    > > system.Using sam has failed this exercise.I allocated 10gig to /u and
    > > now is used up and i still have space on the same volume group .Now i
    > > want to addmore space to vg01.Below is my file system snapshot
    > >
    > > Filesystem kbytes used avail %used Mounted on
    > > /dev/vg00/lvol3 204800 114464 89896 56% /
    > > /dev/vg00/lvol1 295024 61232 204288 23% /stand
    > > /dev/vg00/lvol8 4706304 354720 4319456 8% /var
    > > /dev/vg00/lvol7 1273856 915664 355440 72% /usr
    > > /dev/vg01/lvol1 10240000 10240000 0 100% /u
    > > /dev/vg00/lvol4 204800 9232 194088 5% /tmp
    > > /dev/vg00/lvol6 2523136 1748520 768600 69% /opt
    > > /dev/vg00/lvol5 102400 29224 72672 29% /home
    > >
    > > Thank you in advance guys,
    > > Any suggestions welcome!
    > >
    > > Admire



+ Reply to Thread