Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

AiX how to allocate back the data in Volume group

Posted on 2008-06-12
6
565 Views
Last Modified: 2013-11-17
hi,

I'm running Aix 5300-05

when i check #lsvg datavg

VOLUME GROUP:       sybdumpvg                VG IDENTIFIER:  0052a5fa00004c00000001183740bd05
VG STATE:                   active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1093 (139904 megabytes)
MAX LVs:            256                                FREE PPs:       212 (27136 megabytes)
LVs:                3                                       USED PPs:       881 (112768 megabytes)
OPEN LVs:           3                                  QUORUM:         2
TOTAL PVs:          1                                 VG DESCRIPTORS: 2
STALE PVs:          0                                 STALE PPs:      0
ACTIVE PVs:         1                                AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     2032                        MAX PVs:        16
LTG size (Dynamic): 256 kilobyte(s)        AUTO SYNC:      no
HOT SPARE:          no                               BB POLICY:      relocatable


it seems there is data inside the volume group  if you look at Free PPS ..showing there is data using 112768 megabytes

#lspv

hdisk4          0052a5fa36ea29bb                    sybdumpvg       active

#lspv -l hdisk4
hdisk4:
LV NAME           Ps   PPs     DISTRIBUTION                 MOUNT POINT
lv04                  1     1         00..01..00..00..00             N/A
sybdumpdev    800   800   00..218..218..218..146     /sybdump
syblogdev        80    80      80..00..00..00..00             /syblog


THE PROBLEM IS when
 
#df -g

/dev/sybdumpdev    100.00     99.98    1%        4     1% /sybdump
/dev/syblogdev        10.00     10.00      1%        4     1% /syblog


There is no data at all ..


Please help me how to recover the data since the is no file backup but i believe there is the data inside the hard disk that can be recovered.

Thank you very much



0
Comment
Question by:nakbijak895
  • 3
  • 2
6 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 21773113
USED PPs is the space allocated to logical volumes, which can then have filesystems created in them. The VG manager doesn't know if those blocks are being used, just that they're allocated.  The filesystem sizes match the logical volume sizes, so it seems consistent.

If the contents of the filesystem have been deleted and you have no backups, you have no reliable way of recovering the files that were there.
0
 
LVL 4

Expert Comment

by:robertfwoods
ID: 21775990
Please post the output of the following commands
sysdumpdev -l
lsvg -l datavg
df -k
cat /etc/filesystems

tfewster is correct regarding any recovery options from disk.

It looks like the remnants are the dump device, some form of user defined log and a system log.
0
 

Author Comment

by:nakbijak895
ID: 21777088
any impact if i run cmd below ?

sysdumpdev -l
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 4

Accepted Solution

by:
robertfwoods earned 500 total points
ID: 21778039
a listing will be generated on your window.
sysdumpdev is a command that will manage and report on the status of your system dump device.

visit http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp 
and drill down
AIX documentation>Commands reference>Alphabetical list of commands>s
to find documentation on sysdumpdev.

See also:
AIX documentation>How-to's>Administrator how-to's>Storage management (Logical Volume Manager)
for a wealth of information about administering your disk resources.

While you ae at it and I am warm to the subject, visit
http://www.redbooks.ibm.com/Redbooks.nsf/portals/UNIX
Search on Logical Volume Manager to find
"AIX Logical Volume Manager from A to Z: Troubleshooting and Commands"
ISBN
0738415944
IBM Form Number
SG24-5433-00

Good reading:
Hey it's Friday in the US Read the Manual day. :-)
 



0
 

Author Comment

by:nakbijak895
ID: 21778419
#sysdumpdev -l
primary                  /dev/lg_dumplv
secondary            /dev/sysdumpnull
copy directory       /var/adm/ras
forced copy flag          TRUE
always allow dump    FALSE
dump compression     ON


#lsvg -l datavg
datavg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
lv04                    jfs2log    1     1     1    open/syncd       N/A
sybdumpdev      jfs2       800   800   1    open/syncd      /sybdump
syblogdev           jfs2       80    80    1    open/syncd      /syblog

#df -k

/dev/sybdumpdev   104857600 104841260    1%        4     1% /sybdump

#cat /etc/filesystems
/:
        dev       = /dev/hd4
        vol       = "root"
        mount     = automatic
        check     = false
        free      = true
        vfs       = jfs2
        log       = /dev/hd8
        type      = bootfs

/home:
        dev       = /dev/hd1
        vol       = "/home"
        mount     = true
        check     = true
        free      = false
        vfs       = jfs2
        log       = /dev/hd8

/usr:
        dev             = /dev/hd2
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        type            = bootfs
        vol             = /usr
        free            = false

/var:
        dev             = /dev/hd9var
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        type            = bootfs
        vol             = /var
        free            = false
/tmp:
        dev             = /dev/hd3
        vfs             = jfs2
        log             = /dev/hd8
        mount           = automatic
        check           = false
        vol             = /tmp
        free            = false

/proc:
        dev       = /proc
        vol       = "/proc"
        mount     = true
        check     = false
        free      = false
        vfs       = procfs

/opt:
        dev             = /dev/hd10opt
        vfs             = jfs2
        log             = /dev/hd8
        mount           = true
        check           = true
        vol             = /opt
        free            = false


/kondor26:
        dev             = /dev/k26dev
        vfs             = jfs2
        log             = /dev/lv02
        mount           = true
        options         = rw
        account         = false

/tibrv:
        dev             = /dev/tibrvdev
        vfs             = jfs2
        log             = /dev/lv02
        mount           = true
        options         = rw
        account         = false

/report:
        dev             = /dev/reportdev
        vfs             = jfs2
        log             = /dev/lv02
        mount           = true
        options         = rw
        account         = false

/atlas:
        dev             = /dev/atlasdev
        vfs             = jfs2
        log             = /dev/lv02
        mount           = true
        options         = rw
        account         = false

/sybdump:
        dev             = /dev/sybdumpdev
        vfs             = jfs2
        log             = /dev/lv04
        mount           = true
        options         = rw
        account         = false

/syblog:
        dev             = /dev/syblogdev
        vfs             = jfs2
        log             = /dev/lv04
        mount           = true
        options         = rw
        account         = false

/sybase:
        dev             = /dev/sybbindev
        vfs             = jfs2
        log             = /dev/lv03
        mount           = true
        options         = rw
        account         = false

/test:
        dev             = /dev/lv06
        vfs             = jfs2
        log             = /dev/lv05
        mount           = false
        options         = rw
        account         = false

/tempscr:
        dev             = /dev/lv07
        vfs             = jfs2
        log             = /dev/lv05
        mount           = true
        options         = rw
        account         = false

/script:
        dev             = /dev/lv08
        vfs             = jfs2
        log             = /dev/lv05
        mount           = true
        options         = rw
        account         = false


0
 
LVL 4

Expert Comment

by:robertfwoods
ID: 21780234
Thanks

From /etc/filesystems:
/sybdump:
        dev             = /dev/sybdumpdev
        vfs             = jfs2
        log             = /dev/lv04
        mount           = true
        options         = rw
        account         = false

/syblog:
        dev             = /dev/syblogdev
        vfs             = jfs2
        log             = /dev/lv04
        mount           = true
        options         = rw
        account         = false

Tells us that these are mounted filesystems. They are both journaled into /dev/lv04 on the same logical disk.

They are both mounted and ready for reads or writes.
ls -al /sybdump and ls -al /sybdump
Will report back if anything is stored in these two file systems. At the current moment the /sybdump filesystem is not configured as part of your system dump device.
My guess is these filesystems are required by your sybase database. You should check with your sybase database administrator for the exact configuration. They should be able to tell you if these are required and if there is any recoverable database information stored in these filesystems.
There is 27GB of space on this volume group available for allocation if you need space for storage. Be advised that storing data on this volume that will be actively read and written may impact the performance of your sybase database.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question