Use "request system snapshot" command to BACKUP in SRX

在許多Juniper設備基本操作手冊中都會提到可以使用 'request system snapshot' 指令來備份現有組態及OS,不過在SRX上似乎只能搭配USB使用,不然的話會遇到錯誤訊息如下:

root@SRX1# run request system snapshot
error: usb (/dev/da1) media missing or invalid

好吧 來試試看,插入USB隨身碟之後再試試看:

[edit]
root@SRX1# umass1: Unigen Corporation PQS1000B1, rev 2.00/11.00, addr 4
da1 at umass-sim1 bus 1 target 0 lun 0
da1: Removable Direct Access SCSI-0 device 
da1: 40.000MB/s transfers
da1: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)

[edit]
root@SRX1# run request system snapshot  
WARNING: Recovery partition was not found on source media, creating now...
Clearing current label...
Partitioning usb media (/dev/da1) ...
error: Not enough space to copy /altroot (/dev/da1s1a) partition.

...殘念 空間不足...再試試看用2G USB,終於成功!


umass1: vendor 0x0930 USB Flash Memory, rev 2.00/1.00, addr 4
da1 at umass-sim1 bus 1 target 0 lun 0
da1: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device 
da1: 40.000MB/s transfers
da1: 1909MB (3911616 512 byte sectors: 255H 63S/T 243C)


root@SRX1# run request system snapshot    
Clearing current label...
Partitioning usb media (/dev/da1) ...
Partitions on snapshot:

  Partition  Mountpoint  Size    Snapshot argument
      s1a    /altroot    579M    none
      s2a    /           587M    none
      s3e    /config     38M     none
      s3f    /var        594M    none
      s4a    /recovery/software 64M none
      s4e    /recovery/state 4.7M none
Copying '/dev/da0s1a' to '/dev/da1s1a' .. (this may take a few minutes)
Copying '/dev/da0s2a' to '/dev/da1s2a' .. (this may take a few minutes)
Copying '/dev/da0s3e' to '/dev/da1s3e' .. (this may take a few minutes)
Copying '/dev/da0s3f' to '/dev/da1s3f' .. (this may take a few minutes)
Copying '/dev/da0s4e' to '/dev/da1s4e' .. (this may take a few minutes)
Copying '/dev/da0s4a' to '/dev/da1s4a' .. (this may take a few minutes)
The following filesystems were archived: /altroot / /config /var /recovery/state /recovery/software

root@SRX1# run show system snapshot
Information for snapshot on       usb (/dev/da1s1a) (backup)
Creation date: Aug 28 12:18:19 2012
JUNOS version on snapshot:
  junos  : 10.4R6.5-domestic
Information for snapshot on       usb (/dev/da1s2a) (primary)
Creation date: Aug 28 12:19:53 2012
JUNOS version on snapshot:
  junos  : 12.1R1.9-domestic

如果想要用GUI的話,可以參考這篇文章:

Configuring a Boot Device for Backup with the J-Web Interface


http://www.juniper.net/techpubs/software/junos-security/junos-security96/junos-security-admin-guide/configure-boot-devices.html


Comments

Popular posts from this blog

TCP/IP 明確擁塞通知 (ECN)

L2TPv3 Enables Layer 2 Services for IP Networks

Q-in-Q(Dot1Q Tunnel) Sample Configuration