cp question

cp question

Post by Mike Delan » Sat, 14 Apr 2001 15:24:28





: i've got a working solaris 5.4 system on a sparc 5, 80MB,
: and want to upgrade to solaris 5.6, but very carefully
: my motto has become, if it ain't broke, don't break it

  I think you mean Solaris 2.4 and 2.6.

: the present disk, disk 3, is partitioned into 5 main parts,
: /,     /dev/dsk/c0t3d0s0, 2,077,239 kb
: /home,                 7,   255,859
: /prt0,                 4, 1,951,188
: /prt1,                 5, 1,951,188
: /prt1,                 6, 1,951,188
: mostly through laziness, fear of repartitioning,
: and the fact that i've never been able to get
: the DAT DDS-2 tape drive to work right with the dump routine
:
: the 'new' disk is a 2 GB *, formatable, etc
: called /dev/dsk/c0t2d0s... or disk 2
:
: what i want to do is partition the 'new' disk2,
: copy disk3's / directory onto it with correctly changed links
: set the 'new' one as startup using eeprom boot-device=disk2
: so i can boot off disk 2 and have a still working system

While I don't know what you mean by 'links' in this contex,
you could partition disk2, newfs the partitions and then
use ufsdump | ufsrestore to directly clone the filesystems.
You'll need to run installboot on the new root filesystem,
as well as edit the new vfstab to point to the right
devices files for the filesystems you copied to disk2.

: then i'll boot off the cd containing the 5.6 installer
: update the new disk2 / partition to 5.6,
: and see what wonders lie in store for me
: when i reboot off of the newly upgraded disk2.  

If you're just going to do a new install on disk2, why bother
copying the filesystem onto it first?  Just let Solaris install
to disk2, leaving disk3 alone.  Once you've got the 2.6 install
up and running, you can then mount the /home, and /prt[0-2]
filesystems from disk3.  You'll still have the existing 2.4
installation on slice 0 of disk3 waiting for you if you feel
the need to boot the machine under 2.4.

--

"...Microsoft follows standards.  In much the same manner that fish follow
migrating caribou." "Now I have this image in my mind of a fish embracing and
extending a caribou." -- Paul Tomblin and Christian Bauernfeind in the SDM

 
 
 

cp question

Post by whine » Fri, 27 Apr 2001 03:00:04



Quote:> : whiner said something similar to:
> : i've got a working solaris 5.4 system on a sparc 5, 80MB,
> : and want to upgrade to solaris 5.6, but very carefully
> : my motto has become, if it ain't broke, don't break it
>   I think you mean Solaris 2.4 and 2.6.

thanks for responding, my box'o bits says
   UNIX(r) System V Release 4.0 (name)
when i telnet to it, and
  Last login: some date some:time from someComputer.
  Sun Microsystems Inc.   SunOS 5.4       Generic July 1994
when i log in, and
  SunOS sameName 5.4 Generic_numbers sun4m sparc
when i uname -a it

Quote:> : the present disk, disk 3, is partitioned into 5 main parts,
> : /,     /dev/dsk/c0t3d0s0, 2,077,239 kb

blah, blah, blah

Quote:> : the 'new' disk is a 2 GB *, formatable, etc
> : called /dev/dsk/c0t2d0s... or disk 2
> :
> : what i want to do is partition the 'new' disk2,
> : copy disk3's / directory onto it with correctly changed links
> : set the 'new' one as startup using eeprom boot-device=disk2
> : so i can boot off disk 2 and have a still working system
> While I don't know what you mean by 'links' in this context,
> you could partition disk2, newfs the partitions and then
> use ufsdump | ufsrestore to directly clone the filesystems.

what i want to do is magically make all the links work
without having to actually find them and change them

Quote:> You'll need to run installboot on the new root filesystem,
> as well as edit the new vfstab to point to the right
> devices files for the filesystems you copied to disk2.

> : then i'll boot off the cd containing the 5.6 installer
> : update the new disk2 / partition to 5.6,
> : and see what wonders lie in store for me
> : when i reboot off of the newly upgraded disk2.  

> If you're just going to do a new install on disk2, why bother
> copying the filesystem onto it first?  Just let Solaris install
> to disk2, leaving disk3 alone.  Once you've got the 2.6 install
> up and running, you can then mount the /home, and /prt[0-2]
> filesystems from disk3.  You'll still have the existing 2.4
> installation on slice 0 of disk3 waiting for you if you feel
> the need to boot the machine under 2.4.

my disk is set up a little, um, differently
and there are some things in / that should be somewhere else
and files that should be there that are somewhere else,
hence the links, and right now it works
I put 7 on the new (well, newer) disk
and it went nearly brain-dead, worked
but had no memory of program locations or its former life

my worry is that eventually 'they' will be after me
to upgrade to version 6 or higher for security reasons
and it'll*up leaving me weeks of link tinkering
just to get it to work again

thanks again

______________________________________________________________________
Posted Via Uncensored-News.Com - Still Only $9.95 - http://www.veryComputer.com/
   With Seven Servers In California And Texas - The Worlds Uncensored News Source

 
 
 

cp question

Post by Mathew Kirsc » Fri, 27 Apr 2001 04:14:11



> what i want to do is partition the 'new' disk2,
> copy disk3's / directory onto it with correctly changed links
> set the 'new' one as startup using eeprom boot-device=disk2
> so i can boot off disk 2 and have a still working system

> then i'll boot off the cd containing the 5.6 installer
> update the new disk2 / partition to 5.6,
> and see what wonders lie in store for me
> when i reboot off of the newly upgraded disk2.

> so what are the options i need to make this copy
> so that i redirect all the links back to disk 3
> when i move them to disk 2?

Why not just start fresh with Solaris 2.6 on disk3? I'm not even sure you can
upgrade Solaris 2.4 to Solaris 2.6. I know you can't upgrade any Solaris older
than 2.5.1 with Solaris 7 or 8.
 
 
 

1. VxVM vxplex cp QUESTION

Hello,
We are using Veritas Volume Manager 3.1.1. on solaris 5.7.
I have got the following volume tesvol1 on the concatplex, and the new plex
stripeplex. I want to copy the CONCAT plex onto the STRIPE plex.

  testserver# vxprint -htr tesvol1 stripeplex
  Disk group: rootdg

  RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
  RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
  V  NAME         RVG          KSTATE   STATE    LENGTH   READPOL   PREFPLEX
UTYPE
  PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID
MODE
  SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE
MODE
  SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM
MODE

  dm rootdisk     c0t0d0s2     sliced   2015     39847248 -

  pl stripeplex   -            DISABLED -        40960    STRIPE    2/128
RW
  sd testdisk-05  stripeplex   rootdisk 27593263 20480    0/0       c0t0d0
ENA
  sd testdisk-06  stripeplex   rootdisk 27613743 20480    1/0       c0t0d0
ENA

  v  tesvol1      -            ENABLED  ACTIVE   40960    ROUND     -
fsgen
  pl concatplex   tesvol1      ENABLED  ACTIVE   40960    CONCAT    -
RW
  sd testdisk-07  concatplex   rootdisk 27634223 20480    0         c0t0d0
ENA
  sd testdisk-08  concatplex   rootdisk 27654703 20480    20480     c0t0d0
ENA

According to the vxplex man pages, the volume can NOT be enabled to perform
the cp (copy) operation.

Literally: 'The volumen cannot be enabled, and the named plexes must not be
associated.'

When I try to do it, I get:

  testserver# vxvol stop tesvol1
  testserver# vxplex cp tesvol1 stripeplex
  vxvm:vxplex: ERROR: Volume tesvol1 is not enabled, cannot copy

When I enable the volume again, I can do the copy:

  testserver# vxvol start tesvol1
  testserver#  vxplex cp tesvol1 stripeplex

Is the vxplex man page wrong or am I missing something?

Thank for your help,

Yago

2. ID/Password and audit logs

3. Dumb cp question

4. Visual debugging tools with gcc

5. Simple? cp question

6. Sed question -- pattern matching/replacement

7. CP/M or CP/M-86 emulators in Linux?

8. COMMERCIAL: Metrowerks CodeWarrior development tools for Linux

9. cp -r & cp -R

10. What is defferent "cp -pR " and "cp -pRP" ?

11. cp -r versus cp -R

12. CP, CPIO Newbie Question

13. cp command question.