External Snapshot using previously defined lv


 
Thread Tools Search this Thread
Operating Systems AIX External Snapshot using previously defined lv
# 1  
Old 06-03-2010
Tools External Snapshot using previously defined lv

I prefer to assign my own lv names rather than the automatic LV creation that the snapshot
Can it be done or is IBM's man page flawed?
I am on AIX 6.1 TL 04 Machine type 9133-55A
All local SCSI storage.

I manually create the lv and attempt to create the snapshot:

# mklv -y snapfs99 -t'jfs2' tempvg 1
snapfs99
# /usr/sbin/snapshot -o snapfrom=/clarity -n snapfs99
snapshot: /dev/prdlv27: Operation not permitted.
# 2  
Old 06-03-2010
From what I understand from the snapshot man page you can specifiy your own lv name.

Looks like the -n option is what you want the snapshot named, so you would need to add the additional lv name on the end such as;

Code:
snapshot -o snapfrom/clarity -n anapfs99 /dev/snapfs99

Looks to me like it's complaining about not being able to perform the operation on the /dev/prdlv27 lv. Is that the lv inwhich the /clarity FS reside on?

Recheck the man page for the -n option. If I read that correctly the filesystem you specified (/clarity) has to be enabled for internal snapshots or you will get an error.

---------- Post updated at 09:58 AM ---------- Previous update was at 09:31 AM ----------

I was wrong, that is what I get for opening my mouth when I don't konw what I am talking about.

If you specify the -n option that means you want to create an internal snapshot which from what I read is created in the same logical volume as the file system and allocates blocks from the file system.

If you are just wanting an external snapshot then you can use your own lv and you would leave off the -n option and just supply the lvname (/dev/snapfs99).
# 3  
Old 06-03-2010
Bug thank you

I thought I did it right once before.

Thanks,
# mklv -y snapfs99 -t'jfs2' tempvg 1
snapfs99
# /usr/sbin/snapshot -o snapfrom=/clarity /dev/snapfs99
Snapshot for file system /clarity created on /dev/snapfs99
#
Now I can call IBM, have not called me back yet.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Unable to mount previously-working NFS share from NIM to LPAR

Right, now that I've finally worked out this website, I'll ask my question! I am having an absolute nightmare with NFS on AIX. I have used it many times, and I know what I'm doing, however I cannot fathom what is going on here. I have 2 LPARs, sitting on the same physical host. They are... (12 Replies)
Discussion started by: tmooredba
12 Replies

2. Shell Programming and Scripting

Bash question: working with an array of previously set variable strings

while i've used arrays to work with variables, i've never used them to loop through a set of strings and wanted to ask the community for some feedback or assistance. let me be specific. here's my code: # URL port Variables port2195=`nc -z $url2195 2195` port2196=`nc -z $url2196 2196`... (5 Replies)
Discussion started by: hungryd
5 Replies

3. Shell Programming and Scripting

Change the permission to previously used in unix ( chmod )

I have changed the premission of a file to 777. Now I would like to change permission to previously used ( UNDO ). Is there any command ?:confused: (3 Replies)
Discussion started by: frintocf
3 Replies

4. Shell Programming and Scripting

search the pattern in a file and replace with variable already defined previously in csh

I want to replace a certain pattern with the variable already defined. e.g. set path_verilog = /home/priya/bin/verilogfile my file contents are : verilog new verilog is defined here verilog_path_comes I am using the below command sed 's/verilog_path_comes/'$path_verilog'/g' <filename>... (2 Replies)
Discussion started by: nehashine
2 Replies

5. Linux

Previously run command.

Hi, In HP-UNIX I used to use ! before the command and type a portion of the comnand then if that command was previously run the whole line used to appear. Eg : wc -l samplefile.txt Next if I type !wc And Tab the previously run command would appear on the command prompt. How to achive this... (2 Replies)
Discussion started by: preethgideon
2 Replies

6. UNIX for Dummies Questions & Answers

go to previously visited directory

Is there a way to go back to the previously visited directory? say im in /dir1 then went to /dir2 and wanted to go back to /dir1. besides from aliasing every directory i have, i was wondering if there's a way to maybe alias a command to go to the previously visited directory just to make it more... (8 Replies)
Discussion started by: swag:þ
8 Replies

7. UNIX for Dummies Questions & Answers

How to find the details of the previously running process with PID

OS: Unix or Linux I (only) know the pid of the process which was running earlier (say 5 hrs back) but it is not running now. Is there a way I could find the details of that process? (atleast the name of the process). Please let me know. (2 Replies)
Discussion started by: vijay.d
2 Replies

8. UNIX for Advanced & Expert Users

how to erase files from a tape used previously on Windows operating system

hi all Please may you help. I want to put my unix application backup files using tar cv8 * from a specific folder e.g /u1/sage With new tapes SONY 4mm-DL 90m i can do it with no problem at all. Now I have run out of tapes and I need to use the same kind but they were once used to back... (5 Replies)
Discussion started by: isaac
5 Replies
Login or Register to Ask a Question