LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2020, 06:28 AM   #16
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002

What are you listing there? Did you mount that disk?
And did you unmount it before the copy? If not, there is a chance that the original directory content, before the copy, is still in the file system cache.
 
Old 08-31-2020, 09:36 AM   #17
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,505

Rep: Reputation: Disabled
You appear to be copying slice2 of the first disk to slice2 of the second disk, is it actually there(?).

Where are you looking for your files(?).

Also, check under /dev on your first disk.

Last edited by fatmac; 08-31-2020 at 09:38 AM.
 
Old 08-31-2020, 10:54 AM   #18
verndog
Member
 
Registered: Oct 2007
Posts: 279

Rep: Reputation: 68
You could use "status=progress", to see what's being written. Also you didn't say what the final result of "records in/records out" info.
 
Old 08-31-2020, 11:03 AM   #19
E_BOURSEAU
LQ Newbie
 
Registered: Aug 2020
Distribution: Solaris
Posts: 7

Original Poster
Rep: Reputation: Disabled
outch !
More I read yours remarks more I'm not sure of what I'm doing ...
Goal : duplicate source disk (c0t0d0) to destination disk (c0t9d0); these are same type of disk.

So I summarize here information and what i did.
I follow Solaris admin guide.
I restarted from the beginning to be sure.

1°) Destination disk is formatted and inserted into the SUN's slot. Partitions are identical on both disks (I used format).
2°) I constructed a new ufs fs on c0t9d0s2. (I used s2 because I understood, it represents the whole disk; is that true ?)
3°) I labelled destination disk.
4°) Vfstab still only mention source disk (see 1.png)
5°) I created u09 as mounting point. (see 2.png)
6°) I modified Vfstab but I'm wondering about mount point for new slices(see 3.png)
could c0t0d0s3 has same mounting point than c0t9d0s3 or should i write /usr for source disk and /u09/usr for destination disk ?
The goal is still to remove source disk form slot0 and insert destination disk to its place.

Let's close all the ? before launching dd command.
Thank you.
EB
Attached Thumbnails
Click image for larger version

Name:	1.PNG
Views:	14
Size:	9.3 KB
ID:	33993   Click image for larger version

Name:	2.PNG
Views:	13
Size:	3.7 KB
ID:	33994   Click image for larger version

Name:	3.PNG
Views:	12
Size:	14.7 KB
ID:	33995  
 
Old 08-31-2020, 11:11 AM   #20
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
you must not use the same mount point twice (or more times), that cannot work. use /var2 /usr2 or something similar.
you can use dd on slices (like /dev/rdsk/c0t9d0s2), but in that case that slice must not be mounted.
you can use cp or rsync (if you have) on directories - on mounted filesystem.
But you must not umount /var and /usr on a running OS, that will most probably cause a dead system.
 
Old 08-31-2020, 02:08 PM   #21
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,505

Rep: Reputation: Disabled
You are trying to copy one disk to the other, therefore, use the disk designation, not slices.

https://docs.oracle.com/cd/E19253-01...904/index.html

https://docs.oracle.com/cd/E36784_01...871/dd-1m.html

http://ibgwww.colorado.edu/~lessem/p...aris/dd.1.html
 
Old 08-31-2020, 02:41 PM   #22
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by berndbausch View Post
Sorry for this question, but is /dev/rdsk/c0t9d0s2 a device file?

If yes, and if the command succeeds successfully, the two disk partitions should have the same content.
How do you check that the destination disk is empty?
That's an older UNIX device naming convention, especially on Sun/Solaris/SVR4.2 systems: controller, target (as in SCSI target), disk (?), and slice (i.e., partition). If memory serves slice 2 means "entire disk" (as did the "c" partition on DEC UNIX/Tru64). I can't recall ever seeing anything other than "d0" in a Solaris disk device name.

I'd always hoped Linux would adopt it and leave disk letters behind but we got UUIDs instead. Oh, well...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do we get my UNIT(service) name in unit.sevice Boobalan M Linux - Software 6 01-23-2018 05:03 AM
shell getopts: opt w/ optional parameter is taking next opt as its parameter! GrapefruiTgirl Programming 22 10-27-2010 06:00 AM
Storage unit and IO unit salmanucit Linux - General 2 06-17-2008 11:11 PM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
comand to check if program is installed or not? awlad Linux - Newbie 10 05-18-2003 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration