How to take the vg data back?


 
Thread Tools Search this Thread
Operating Systems AIX How to take the vg data back?
# 1  
Old 11-24-2014
How to take the vg data back?

Hi

I would like to take back the data from datavg ( 4 lv : fslv00, fslv01, tuxedo_lv and oracle_lv ), but I don't know what to do SmilieSmilieSmilie.

Code:
lsvg -l datavg
datavg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
loglv00             jfslog     1       1       1    closed/syncd  N/A
fslv00              jfs2       400     400     2    closed/syncd  /export/spot6166
fslv01              jfs2       240     240     2    closed/syncd  /u01
tuxedo_lv           jfs2       20      20      1    closed/syncd  N/A
loglv01             jfs2log    1       1       1    closed/syncd  N/A
oracle_lv           jfs2       28      28      1    closed/syncd  N/A

Code:
test02:/]mount /u01
mount: 0506-323 Cannot get information about log device /dev/loglv03.

test02:/]mount /export/spot6166
Replaying log for /dev/fslv00.
mount: 0506-324 Cannot mount /dev/fslv00 on /export/spot6166: The media is not formatted or the format is not correct.

Code:
test02:/]df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           2.00      0.43   79%    16222    14% /
/dev/hd2           7.00      1.21   83%    62904    18% /usr
/dev/hd9var        1.00      0.79   21%     6700     4% /var
/dev/hd3           7.00      3.68   48%     5421     1% /tmp
/dev/hd1           1.00      0.77   23%     2705     2% /home
/dev/hd11admin      0.50      0.50    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       4.00      0.98   76%     4996     3% /opt
/dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump

# 2  
Old 11-24-2014
We cant reply like that, we dont know what you did...
What does lsvg -o show?
This User Gave Thanks to vbe For This Post:
# 3  
Old 11-24-2014
Hi,

You might want to have a look at your history, it might give some insight here. I'm assuming that you are logged on as root and that you are the only user logged on as root?

Regards

Dave
This User Gave Thanks to gull04 For This Post:
# 4  
Old 11-24-2014
Quote:
Originally Posted by vbe
We cant reply like that, we dont know what you did...
What does lsvg -o show?
Code:
test02:/] lsvg -o
datavg
rootvg

I have just cloned rootvg. After booting from alt_disk_rootvg, I lost datavg. I did " importvg datavg ", but I can't find the data althought these data still exist on the disks.
Code:
lspv
hdisk0          00c8ac36cfdf99b4                    None            
hdisk1          00c8abd6d05f83ca                    datavg          active
hdisk2          00c8abd6d4ad141f                    datavg          active
hdisk3          00c8abf69e5cd9d8                    rootvg          active

Code:
lsvg datavg
VOLUME GROUP:       datavg                   VG IDENTIFIER:  00c8abd600004c0000000149ac050768
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:            256                      FREE PPs:       402 (102912 megabytes)
LVs:                6                        USED PPs:       690 (176640 megabytes)
OPEN LVs:           0                        QUORUM:         2 (Enabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 
PV RESTRICTION:     none

# 5  
Old 11-24-2014
Did you do a varyoffvg before? ( importvg that is...)
This User Gave Thanks to vbe For This Post:
# 6  
Old 11-24-2014
Quote:
Originally Posted by vbe
Did you do a varyoffvg before? ( importvg that is...)
No SmilieSmilieSmilie
# 7  
Old 11-27-2014
Quote:
Originally Posted by bobochacha29
Hi

I would like to take back the data from datavg ( 4 lv : fslv00, fslv01, tuxedo_lv and oracle_lv ), but I don't know what to do SmilieSmilieSmilie.
Code:
test02:/]mount /u01
mount: 0506-323 Cannot get information about log device /dev/loglv03.

As per your own listing "/u01" is not part of the VG "datavg". Where the FS comes from is unclear.

Post the output of the following two commands:

Code:
lsvg          # shows list of VGs
lsvg -o | lsvg -li   # shows list of LVs of all VGs varied on

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

2. IP Networking

Back-to-Back Connection using HBAs

Hi every body, Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber. Note it is direct connection & there is no switches between the servers. I'm concern about using HBA adapters, it is possible or not. Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies

3. AIX

back to back printing in UNIX

Hi , Can you suggest me how to back to back printing in UNIX? Is there any way? Kindly advise. Regards Vijaya Amirtha Raj (3 Replies)
Discussion started by: amirthraj_12
3 Replies

4. Shell Programming and Scripting

Back up of multiple data files

I have filesi in a direcotry that start with different names but have dates in the format 01212006. Along with these files there are also files with different dates. What i want to do is copy all the files that have 01212006 in them to 01072007 and move the old files to different directory. ... (1 Reply)
Discussion started by: dsravan
1 Replies

5. UNIX for Advanced & Expert Users

help with back up please

Can anyone please tell me how safe is the following backup script? Does it really backing up the WHOLE system or just part of it? I do that with the system running an oracle database. Will I be able to restore the system in case of a fault? <pre> Here is the output of 'df -k' ... (11 Replies)
Discussion started by: guest100
11 Replies
Login or Register to Ask a Question