Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smitty mkcd fails with DVD-R : Cannot send SCSI cmd via ioctl 1

Status
Not open for further replies.

kat115

Programmer
Feb 6, 2004
57
0
0
FR
Hi
I have a new p570 box running AIX5.2 ML05
I'm trying to create a mksysb on the DVD (using DVD-R or DVD-RW) but it fails with the folowing error :

Running cdrecord ...
Cdrecord 1.9 (powerpc-ibm-aix4.3.3.0) Copyright (C) 1995-2000 Jörg Schilling
scsidev: '0,0'
scsibus: 0 target: 0 lun: 0
Using libscg version 'schily-0.1'
/usr/bin/cdrecord: Invalid argument. Cannot send SCSI cmd via ioctl
burn_cd: Command error.
0512-322 mkcd: An error has occurred
writing the CD or DVD image to the CD or DVD device.

If you would like to attempt to write to another CD or DVD, replace
the current CD or DVD with a new writable CD or DVD. Press the <enter> key when
ready...
If you would like to stop the command and cleanup, Press 'q' to quit...


Can anyone help me to find out what's happening and how to create my mksysb backup?
Thank you very much
 
What media are you using?
You have to use DVD-RAM disks on these drives unfortunately.
DVD+R / DVD-R do not work.
I had to same problem on a couple of our P5's.
The box should have come with 1 free disk with the CD's & stuff.


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
Hi
I tried with Imation DVD-R
I also bought a 9.7 IBM DVD-RAM (double sided, the one in a box looking similar to a tape..) : i broke the box and removed the DVD that was inside (double side) but got the same error.

Unfortunately we got only DVD test disks with the p570 box :(
What media do you use? Maybe I can try with the same that you use?

Thank you very much for your help

 
I use Verbatim or Maxell 4.6GB single sided re-writable type 2 disks.
(I also have to remove them from those cartridges)
Can you write to a normal CD-RW?
That should indicate whether your software is okay.
By the way, you can also try an HMC backup (as that has the same drive but obviously uses the native linux software to burn)


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
Hi
Thanks a lot! I'll try with Verbatim.

My software? I'm using smitty mkcd which seems to use cdrecord ?
No It didn't work with DVD-RW either. And I can't use HMC backup since I have no HMC (my server is single partition).
thanks again

 
Yip, mkcd does indeed use cdrecord.
Till you get a DVD RAM, perhaps you can try and write a small portion of data to a normal 750MB CD


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
Hi,

On a p5 you are probably using a slimline IDE DVDRAM drive. You can't use cdrecord on these drives, the only mksysb's you can make are UDFS (UniversalDiskFileSystem)

Check out man page for mkcd - use -U flag. A DVD-RAM disk 4.7GB single sided (non-cartridge type) is needed.

You could probably make a RRFS image file and simply dd it to the drive with a DVD-RAM disk loaded, but I wouldn't wait up for it to come home - takes ages to finish!

HTH, p5wizard
 
Hi
Now I have my Verbatim 4.7GB DVD.
So could you please tell me how to use them?
I shoudn't use cdrecord? But cdrecord is used by mkcd, isn't it?
I'm sorry, it's my first time with this type of backup (i really miss my old mksysb on tape !!), so please could you help me again?
thank you very much.


ps : my p570 dvd recorder is indeed a slimline drive
 
I got some problems for burning the DVD-RAM, IBM gave me the recommanded DVD part number as the below -
4.7GB single-sided Type II 18P7250, 19P0484 - also a FRU
19P0862 (5-pack of 19P0484

hope it useful!


Frank
 
Please have a look at the man page - info on mkcd -U is all there...

I think the command is:

mkcd -d /dev/cdX -U

if you already have an mksysb image file and want to 'burn' this to a DVD-RAM disk, then it is

mkcd -d /dev/cdX -m /mksysb/image/path/name -U

substitute cdX for your DVD-RAM device cd0 or cd1 or ...

Note: on slimline-IDE, only UDFS backups are possible! You can find that info in the 'Readme' document which should be in your software box.

Gr.
 
hi
first of all, thank you very much!!
It worked with mkcd -d /dev/cd0 -U and verbatim dvd

i had a look at man pages and did read the readme files. :)

I still have two question :
1) it was very slow (took more than 3 hours)... It seems to be using dd, is there any way to go faster?

2) how can i verify that the dvd is usable? I tried to mount it (mount -o ro /cdrom /mnt) but it told me that the dvd was not formatted.


Thanx again so much.
 
I'm not able to verify this, but I'm guessing you can mount a UDFS with

mount -v udfs /dev/cdX /dvdram

substitute cdX for cd0, cd1, ...

Have a look inside the mkcd script, the -U code should contain this info also - mkcd script uses udfcreate to create an empty UDFS filesystem and mounts this for copying the boot and mksysb image to the UDFS FS.

You can also use

udfcheck -d /dev/cdX

to verify the structure of your UDFS FS after the mkcd has finished. As to the time it took to create the backup, I guess you'll have to live with that, unless you can unmount some rootvg filesystems and reduce the size of your mksysb image. Backup non-system rootvg filesystems using other tools (tsm, netbackup, whatever).
Another reason to keep rootvg as "thin" as possible.

gr.
 
Hi
Thanks a lot for your answer.
I'll try this commands and take a look at the mkcd script...
I'll also try to boot from the dvd and see what happens...hopping it will boot.
Thank you very much for your help.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top