You create an XFS file system by using the command:
# mkfs -t xfs -L /xfs1 -I logdev=/dev/cdd1 /dev/sdhl
You create the mount point /xfs1 and want to mount the file system on its mount point, before adding an entry for the file system to /etc/fstab.
Which two commands can you use to do this?
A.
mount /dev/sdh1 /xfs1
B.
mount LABEL=/xfs1 /xfs1
C.
mount -t xfs -o logdev=dev/sdd1 /dev/sdh1 /xfs1
D.
mount LABEL=/xfs1 -o logdev=/dev/sdd1 /xfs1
E.
mount LABEL=/xfs1 -o logdev=/dev/sdd1
F.
mount -t xfs LABEL=/xfs1 /xfs1
C,F but not 100% sure
A and C
An XFS file system can be mounted with no extra options, for example:
# mount /dev/device /mount/point
C D
o To mount the XFS file system so that it uses the external journal, specify
the -o logdev=device option to the mount command.
C D
[root@ole6 ~]# mkfs -t xfs -L /xfs1 -l logdev=/dev/sdd2 /dev/sdd1
meta-data=/dev/sdd1 isize=256 agcount=4, agsize=65262 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=261048, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =/dev/sdd2 bsize=4096 blocks=263064, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@ole6 ~]#
[root@ole6 ~]#
[root@ole6 ~]# mkdir /xfs1
[root@ole6 ~]# mount /dev/sdd1 /xfs1
mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog – try
dmesg | tail or so
[root@ole6 ~]# mount -t xfs /dev/sdd1 /xfs1
mount: wrong fs type, bad option, bad superblock on /dev/sdd1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog – try
dmesg | tail or so
[root@ole6 ~]# mount -t xfs -o logdev=/dev/sdd2 /dev/sdd1 /xfs1
[root@ole6 ~]# umount /xfs1
[root@ole6 ~]# mount LABEL=/xfs1 -o logdev=/dev/sdd2 /xfs1
[root@ole6 ~]# umount /xfs1